hack/stabilization-changes: Allow local changes without branching #1039
+27
−66
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 we have a GitHub token, we checkout a branch and create a pull request for each promotion. When we don't have a token, we used to just log the changes that needed to happen. With this commit, a token-less call will now edit the local files to perform all appropriate promotions. That allows this script (which understands about tombstones and filters and other promotion criteria) to be used to backfill channels when we expand filters (e.g. allowing 4.(y-1) in fast-4.y after 4.y GAs, or allowing 4.(y-1) in stable-4.y after we feel comfortable with the fast behavior. That should make things like 8da5782 (#947)'s accidental promotion of the tombstoned 4.7.10 and similar less likely. More on that in 4c53c7b (#1035).
Drop the old backfill script from 2a02325 (#549), now that this new functionality makes it obsolete.