Repository navigation
feat(e2e): let the managed-cluster matrix cover only opted-in clusters - #1166
Merged
Merged
Conversation
The hyp0 release gate runs TestMatrix, which places one suite per fleet capability on any cluster advertising it. hyp0-spoke3 (hypc-ibm-106) is an experimental spoke with personal-fork images and a KubeVirt sandbox runtime that also advertises provider/ibm, so the environment/experimental suite failed every run and the provider/ibm suite failed whenever it landed there. E2E_MATRIX_REQUIRED_CAPABILITY=<label> now limits the matrix to registered clusters that advertise <label>: only their capabilities are enumerated, the label gets no suite of its own, and every suite places by [<capability>, <label>]. The matrix fails if no cluster opts in. Unset keeps today's whole-fleet behaviour. Spec: E2E-CORE-30.05. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
HyperShell environment destroyedThis ephemeral OpenShift environment has been destroyed. Comment |
|
This pull request is merged. |
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.
Why
The hyp0 release gate keeps failing in TestMatrix. The matrix runs one suite per fleet capability and places each suite's gateways on any registered cluster that advertises it.
hyp0-spoke3 is an experimental spoke (personal-fork images, KubeVirt sandboxes) that also advertises
provider/ibm. So:environment/experimentalsuite fails Phase P2 on every run;provider/ibmsuite fails P2.1 sandbox-lifecycle whenever it lands there.The fleet needs a way to keep such a cluster registered and placeable by users without making it fail the release gate.
What
New env var
E2E_MATRIX_REQUIRED_CAPABILITY=<label>forTestMatrix. When it is set:<label>are covered (the opted-in fleet).<label>itself gets no suite, because every covered cluster carries it.[<capability>, <label>], so no gateway lands on a cluster that did not opt in.Unset keeps today's whole-fleet behaviour.
tests/e2e/matrix_test.go: enumeration moved intobuildMatrixFleet.tests/e2e/phases.go,tests/e2e/suite.go: the required label is carried into the placement selector.tests/e2e/matrix_fleet_test.go: unit tests with a hyp0-shaped fleet.specs/platform/e2e-testing.spec.md: "Opt-in fleet" rule and scenario E2E-CORE-30.05.The opt-in label must differ from
runtime/release-check, which stays hub-only because it pins TestE2E to the hub.Related
The gitops side (labels on hyp0's hub, spoke1 and spoke2, and the variable on the gate's TestMatrix call) is https://github.com/openshift-online/hypershell-gitops/pull/2772. Merge this PR first.
Testing
go -C tests/e2e test . -run 'BuildMatrixFleet|Placement|GatewayCreate|Landed': 12 pass.make lint-e2e,make check-spec-ids, and the pre-commit and pre-push policy checks pass.TestMatrixnot run here; it needs a registered fleet. It runs in the hyp0 gate once both PRs land.🤖 Generated with Claude Code