Check all hypershift variants when the featuregate is not platform specific#2951
Check all hypershift variants when the featuregate is not platform specific#2951JoelSpeed wants to merge 1 commit into
Conversation
|
/verified by @JoelSpeed |
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@JoelSpeed: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
📝 WalkthroughWalkthroughThe feature gate test analyzer now falls back to all required Hypershift job variants when variant filtering returns no results. Existing Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)Error: build linters: unable to load custom analyzer "kubeapilinter": tools/_output/bin/kube-api-linter.so, plugin: not implemented Comment |
|
Hello @JoelSpeed! Some important instructions when contributing to openshift/api: |
PR Summary by QodoEnsure Hypershift promotion checks all variants for non-platform featuregates
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
tools/codegen/cmd/featuregate-test-analyzer.go (1)
746-753: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd a regression test for the Hypershift fallback.
The existing tests cover
filterVariants, but not the newlistTestResultForbehavior. Add coverage proving that a generic feature gate selects everyrequiredHypershiftJobVariantsentry, while a platform-specific gate selects only its matching variants before Sippy calls are made.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tools/codegen/cmd/featuregate-test-analyzer.go` around lines 746 - 753, Add regression coverage around listTestResultFor for Hypershift variant selection: verify a generic feature gate falls back to every requiredHypershiftJobVariants entry, while a platform-specific gate includes only matching variants. Stub or inspect Sippy calls to confirm the selected variants are used before requests are made, while preserving existing filterVariants tests.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@tools/codegen/cmd/featuregate-test-analyzer.go`:
- Around line 746-753: Add regression coverage around listTestResultFor for
Hypershift variant selection: verify a generic feature gate falls back to every
requiredHypershiftJobVariants entry, while a platform-specific gate includes
only matching variants. Stub or inspect Sippy calls to confirm the selected
variants are used before requests are made, while preserving existing
filterVariants tests.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: b9d83a8e-4c96-4de7-b3f8-96a5f6847053
📒 Files selected for processing (1)
tools/codegen/cmd/featuregate-test-analyzer.go
Code Review by Qodo
1.
|
|
Pipeline controller notification No second-stage tests were triggered for this PR. This can happen when:
Use |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: everettraven The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Pipeline controller notification No second-stage tests were triggered for this PR. This can happen when:
Use |
|
@JoelSpeed: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This now copies the logic directly below for self managed and ensures that we check all variants when the featuregate is otherwise not filtered to a specific platform