Skip to content

Clarify ToVersion as removal version for stable feature gates#15039

Closed
johnmichaelll238-cloud wants to merge 2 commits intoopen-telemetry:mainfrom
johnmichaelll238-cloud:fix-toversion-doc
Closed

Clarify ToVersion as removal version for stable feature gates#15039
johnmichaelll238-cloud wants to merge 2 commits intoopen-telemetry:mainfrom
johnmichaelll238-cloud:fix-toversion-doc

Conversation

@johnmichaelll238-cloud
Copy link
Copy Markdown

Fixes #11341

This PR clarifies the meaning of the ToVersion field in the godoc comments of Gate in the featuregate package.

Currently, the godoc was vague, saying it “returns version information when StageStable,” which caused confusion. In practice, ToVersion represents the version in which a feature gate in StageStable is scheduled to be removed. This update makes the intended behaviour explicit and aligns the documentation with the actual code behaviour.

No code changes were made—only documentation is updated.

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Mar 31, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: johnmichaelll238-cloud / name: John Michael (d73a667, f5dc621)

@dmathieu
Copy link
Copy Markdown
Member

Please sign the CLA.

@johnmichaelll238-cloud
Copy link
Copy Markdown
Author

Please sign the CLA.

OK. I did so just now. Thank you.

Comment thread featuregate/gate.go
Comment thread featuregate/gate.go
@dmathieu dmathieu added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Mar 31, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.22%. Comparing base (01b07fc) to head (d73a667).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15039   +/-   ##
=======================================
  Coverage   91.22%   91.22%           
=======================================
  Files         697      697           
  Lines       44627    44627           
=======================================
  Hits        40710    40710           
  Misses       2773     2773           
  Partials     1144     1144           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Add validation for ToVersion in feature gate stages
Comment thread featuregate/registry.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[featuregate] Clarify what ToVersion represents.

2 participants