Skip to content

chore(tombstone-library): generate Rakefile for release builds - #453

Merged
torreypayne merged 1 commit into
mainfrom
fix/tombstone-library-rakefile
Aug 12, 2026
Merged

chore(tombstone-library): generate Rakefile for release builds#453
torreypayne merged 1 commit into
mainfrom
fix/tombstone-library-rakefile

Conversation

@torreypayne

@torreypayne torreypayne commented Aug 11, 2026

Copy link
Copy Markdown
Member

When tombstoning a library using toys tombstone-library, all existing files in the gem directory are purged and replaced with a minimal tombstone skeleton (README.md, LICENSE.md, .gemspec, .yardopts, version.rb). However, the tool previously omitted a Rakefile, leading to errors when releasing the tombstoned version of the package.

Context & Failure Mode

During the recent tombstoning of the stackdriver gem (googleapis/google-cloud-ruby#34614), automated release packaging via release-please (triggered on tag stackdriver/v1.0.0) failed in the release CI/CD workflow with:

rake aborted!
Don't know how to build task 'build' (See the list of available tasks with `rake --tasks`)

Because release packaging automation relies on executing bundle exec rake build to compile the .gem artifact prior to RubyGems publication, the absence of a Rakefile invoking bundler/gem_tasks aborted the release pipeline. We had to manually push a follow-up patch PR (googleapis/google-cloud-ruby#34652) to restore a minimal Rakefile, which caused release tag collisions and required manual changelog fixes.

Changes

  • Adds toys/tombstone-library/.data/rakefile-template.erb containing the standard license header, require "bundler/setup", and require "bundler/gem_tasks".
  • Updates generate_files in toys/tombstone-library/.toys.rb to generate Rakefile automatically when tombstoning any library.

Downstream Reference

Tested and validated downstream against the Apigee Registry tombstone draft PR: googleapis/google-cloud-ruby#36233.

@torreypayne
torreypayne requested a review from a team as a code owner August 11, 2026 22:38
@torreypayne torreypayne changed the title fix(tombstone-library): generate Rakefile with bundler gem_tasks for release build fix(tombstone-library): generate Rakefile for release builds Aug 11, 2026
Comment thread toys/tombstone-library/.data/rakefile-template.erb Outdated
@torreypayne
torreypayne force-pushed the fix/tombstone-library-rakefile branch from 12ce49f to e37bb10 Compare August 12, 2026 21:34
@aandreassa

Copy link
Copy Markdown
Contributor

All chores! LGTM

@torreypayne
torreypayne force-pushed the fix/tombstone-library-rakefile branch from e37bb10 to f3ea0eb Compare August 12, 2026 21:36
@torreypayne torreypayne changed the title fix(tombstone-library): generate Rakefile for release builds chore(tombstone-library): generate Rakefile for release builds Aug 12, 2026
@torreypayne
torreypayne merged commit c743669 into main Aug 12, 2026
17 checks passed
@torreypayne
torreypayne deleted the fix/tombstone-library-rakefile branch August 12, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants