Skip to content

feat(e2e): let the managed-cluster matrix cover only opted-in clusters - #1166

Merged
rh-amarin merged 1 commit into
mainfrom
claude/release-check-hyp0-failure-f0270b
Nov 24, 2026
Merged

rh-amarin merged 1 commit into
mainfrom
claude/release-check-hyp0-failure-f0270b

Conversation

@rh-amarin

Copy link
Copy Markdown
Collaborator

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:

  • the environment/experimental suite fails Phase P2 on every run;
  • the provider/ibm suite 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> for TestMatrix. When it is set:

  1. Only registered clusters that advertise <label> are covered (the opted-in fleet).
  2. Capabilities are enumerated from those clusters only. <label> itself gets no suite, because every covered cluster carries it.
  3. Every suite places by [<capability>, <label>], so no gateway lands on a cluster that did not opt in.
  4. The matrix fails if no cluster opts in, instead of passing with zero suites.

Unset keeps today's whole-fleet behaviour.

  • tests/e2e/matrix_test.go: enumeration moved into buildMatrixFleet.
  • 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.
  • Live TestMatrix not run here; it needs a registered fleet. It runs in the hyp0 gate once both PRs land.

🤖 Generated with Claude Code

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>
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

HyperShell environment destroyed

This ephemeral OpenShift environment has been destroyed. Comment /pr-extend to redeploy it.

@mergify

mergify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

This pull request is merged.

@rh-amarin
rh-amarin added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit b5b5f36 Nov 24, 2026
44 of 45 checks passed
@rh-amarin
rh-amarin deleted the claude/release-check-hyp0-failure-f0270b branch November 24, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant