Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatibility-versions-feature-gate-test has a bug currently where retroactively making code a GA feature to deprecate it is not handled #34396

Open
aaron-prindle opened this issue Feb 23, 2025 · 1 comment · May be fixed by #34397
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery.

Comments

@aaron-prindle
Copy link
Contributor

What happened:
I am seeing a new test failure with the compat version feature gate test:

https://testgrid.k8s.io/sig-testing-kind#compatibility-versions-feature-gate-test

FAIL: unexpected feature 'LegacySidecarContainers' found in /metrics, got=1

Occurred recently between these commits:
kubernetes/kubernetes@75909b8...fbdf890

I believe it is related to this PR:
kubernetes/kubernetes@f2f4634

Relevant snippet:

pkg/features/versioned_kube_features.go

LegacySidecarContainers: {
        {Version: version.MustParse("1.0"), Default: true, PreRelease: featuregate.GA},
        {Version: version.MustParse("1.33"), Default: false, PreRelease: featuregate.Deprecated},
    },

This feature gate is WAI and the test itself needs to handle the case where a pre-existing feature/codepath (that has no prior feature gate) becomes a deprecated gate. In this case there is a retroactive GA feature gate added as a "hack". This case is not accounted for currently in the test

What you expected to happen:
I expected test to pass

How to reproduce it (as minimally and precisely as possible):
See posted test grid logs and run for repro case

Please provide links to example occurrences, if any:

Anything else we need to know?:

@aaron-prindle aaron-prindle added the kind/bug Categorizes issue or PR as related to a bug. label Feb 23, 2025
@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Feb 23, 2025
@aaron-prindle
Copy link
Contributor Author

/sig api-machinery
/assign

@k8s-ci-robot k8s-ci-robot added sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery.
Projects
None yet
2 participants