Skip to content

test(e2e): ✅ serialize shared-state e2e specs for parallel nodes (CI-4) - #103

Merged
konih merged 1 commit into
mainfrom
worktree-ci-4-e2e-serial-shared-state
Jul 10, 2026
Merged

konih merged 1 commit into
mainfrom
worktree-ci-4-e2e-serial-shared-state

Conversation

@konih

@konih konih commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes CI-4: nightly full-pyramid e2e (kustomize) red 3/3 since CI-1 (#100) + CI-3 (#101) unblocked it (runs 29114368981 → 29115407083 attempts 1+2, 29115477497).

The nightly runs the suite with 3 parallel ginkgo processes (run-e2e.sh default; the PR gate pins KURATOR_E2E_NODES=1, which is why PR e2e stayed green). Two specs mutate cross-process shared state:

Spec Shared mutation Observed failure
recovers QueueManagerConnection readiness after secret rotation corrupts namespace-wide mq-credentials Secret; deletes/recreates shared e2e-qm1 QMC siblings time out on QMC readiness (29115477497, 2 victims); its own delete denied 2m by referential webhook while sibling Queues reference the QMC (29115407083 ×2)
v1alpha1 to v1beta1 CRD upgrade upgradeMKuratorCRDs() re-applies cluster-wide CRD bundle mid-spec victim of the above; hazard class kept from racing parallel CR applies

Fix

Mark both Serial — ginkgo runs them alone on process 1 after all parallel specs (and their DeferCleanups) finish. Same pattern the suite already uses for the Manager smoke and mq-auth containers. No spec logic changed.

Gates

  • go vet -tags e2e ./test/e2e/ ✅
  • task verify ✅ · task lint ✅ · task test:run ✅ 91.0% (floor 90)
  • PR e2e (kustomize) (1-node) exercises both specs incl. the Serial path
  • Real proof after merge: dispatch Nightly (3-node) and confirm e2e (kustomize) green

Follow-up filed (separate slice)

listConnectionDependents double-lists every dependent (same objects read via both v1alpha1 and v1beta1 lists), producing Queue "e2e-orders-n1", Queue "e2e-orders-n1" in deny messages — cosmetic dedup fix for the validation package.

The nightly full-pyramid e2e runs with 3 ginkgo processes (run-e2e.sh
default; the PR gate pins KURATOR_E2E_NODES=1) and failed 3/3 attempts
once the CI-1/CI-3 fixes let it reach the test phase. Two specs mutate
state shared across processes:

- "recovers QueueManagerConnection readiness after secret rotation"
  corrupts the namespace-wide mq-credentials Secret and deletes the
  shared e2e-qm1 QueueManagerConnection. Siblings then time out waiting
  for QMC readiness (runs 29115477497), and its own delete is denied by
  the referential webhook while sibling Queues still reference the
  connection (runs 29115407083 attempts 1+2).
- "v1alpha1 to v1beta1 CRD upgrade" re-applies the cluster-wide CRD
  bundle mid-spec.

Mark both Serial so they run alone on process 1 after all parallel
specs and their cleanups complete — the pattern already used by the
Manager smoke and mq-auth containers.
@konih
konih merged commit 005dd10 into main Jul 10, 2026
14 checks passed
@konih
konih deleted the worktree-ci-4-e2e-serial-shared-state branch July 11, 2026 07:40
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