chore(tombstone-library): generate Rakefile for release builds - #453
Merged
Conversation
aandreassa
approved these changes
Aug 11, 2026
torreypayne
force-pushed
the
fix/tombstone-library-rakefile
branch
from
August 12, 2026 21:34
12ce49f to
e37bb10
Compare
aandreassa
approved these changes
Aug 12, 2026
Contributor
|
All chores! LGTM |
torreypayne
force-pushed
the
fix/tombstone-library-rakefile
branch
from
August 12, 2026 21:36
e37bb10 to
f3ea0eb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 aRakefile, leading to errors when releasing the tombstoned version of the package.Context & Failure Mode
During the recent tombstoning of the
stackdrivergem (googleapis/google-cloud-ruby#34614), automated release packaging viarelease-please(triggered on tagstackdriver/v1.0.0) failed in the release CI/CD workflow with:Because release packaging automation relies on executing
bundle exec rake buildto compile the.gemartifact prior to RubyGems publication, the absence of aRakefileinvokingbundler/gem_tasksaborted the release pipeline. We had to manually push a follow-up patch PR (googleapis/google-cloud-ruby#34652) to restore a minimalRakefile, which caused release tag collisions and required manual changelog fixes.Changes
toys/tombstone-library/.data/rakefile-template.erbcontaining the standard license header,require "bundler/setup", andrequire "bundler/gem_tasks".generate_filesintoys/tombstone-library/.toys.rbto generateRakefileautomatically when tombstoning any library.Downstream Reference
Tested and validated downstream against the Apigee Registry tombstone draft PR: googleapis/google-cloud-ruby#36233.