Repository navigation
ci: prevent renaming or reusing config proto tags - #5275
Draft
PranjalC100 wants to merge 2 commits into
Draft
PranjalC100 wants to merge 2 commits into
PranjalC100 wants to merge 2 commits into
Conversation
Released GCSFuse versions keep sending config proto tags in the mount config payload, so a tag must keep its name and type. #5100 reused tag 130 for a renamed flag and CI passed: the same PR regenerates cfg/config.proto, and format-test only checks that it matches params.yaml. format-test now runs buf breaking (buf v1.50.0, already used by go generate) on PRs to compare the regenerated cfg/config.proto with the base branch's copy. It fails if a tag is renamed, changes type, is deleted without being reserved, or is removed from the reserved list. To rename a param, add its old tag to retired-params and give it a new tag. Fixes b/573055940
Contributor
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5275 +/- ##
==========================================
- Coverage 85.13% 85.13% -0.01%
==========================================
Files 181 181
Lines 19875 19875
==========================================
- Hits 16921 16920 -1
- Misses 2953 2954 +1
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The server decodes every GCSFuse version with master's config.proto, so PRs into v4+ release branches now also compare the regenerated cfg/config.proto with master's: every tag must have master's name and type, or be reserved on master. Document that a flag cherry-picked from master to a release branch keeps its master proto-tag, and that any newer master tags it skips go into retired-params on the release branch. The build and cve-patching skills now cover the config-gen errors seen after a rebase or cherry-pick and how to fix them.
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.
Description
Released GCSFuse versions keep sending config proto tags in the mount config payload, and the server decodes every version with master's
config.proto. So a tag must keep its name and type on every branch. #5100 reused tag 130 for a renamed flag (metrics_use_new_names→metrics_enable_new_metrics_schema) and CI passed: the same PR regeneratescfg/config.proto, andformat-testonly checks that it matchesparams.yaml.This adds two
format-teststeps that runbuf breaking(buf v1.50.0, already used bygo generate) on PRs:retired-params.To rename a param, add its old tag to
retired-paramsand give it a new tag. A flag cherry-picked from master to a release branch keeps its master tag. If that skips newer master tags, add them toretired-paramson the release branch (noted inparams.yamlandparser.go). Thebuildandcve-patchingskills now cover these errors after a rebase or cherry-pick and how to fix them.Link to the issue in case of a bug fix.
b/573055940 (Prevent renaming flags to keep the same tag)
Testing details
v4.0_release, against a master with 21 newer flags: cherry-picking flag 185 with 164–184 inretired-paramspasses; renumbering it to 164 fails; un-retiring a skipped tag later fails.cfgandconfig-gentests pass.Any backward incompatible change? If so, please explain.
No. Renaming or retyping a param now needs a new tag.