Skip to content

fix(ci, e2e): every job runs a pinned Helm, first-install runs under Helm 3 and Helm 4, and the Gateway API release is one pin (#1580, #1581, #1583, #1543) - #1593

Merged
bpalermo merged 3 commits into
mainfrom
fix/e2e-helm-gateway-pins
Oct 9, 2026

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Three e2e/CI pins in one change, because they touch the same workflow, the same composite actions and the same harnesses. An agent wrote this.

Base: 77f9e8b7.

Helm (#1580)

Before: the e2e jobs ran the runner image's Helm (3.22.0 on image ubuntu24/20261004.327), and ci.yaml's proxy-pin job ran azure/setup-helm with no version:, which installs the latest release.

Now:

  • e2e/helm-version.sh pins one Helm 3 release (v3.22.0), one Helm 4 release (v4.2.0) and HELM_DEFAULT_MAJOR (3).
  • .github/actions/setup-helm reads that file, installs the release through azure/setup-helm (SHA-pinned, the only use in the tree), and fails if the helm on PATH is not the pinned one. A caller names a major (3, 4 or nothing), never a version.
  • run-e2e-script, run-conformance and proxy-pin use it.

Which major is the default, and why: Helm 3. It is the major every nightly suite has run on, so this change pins without changing what any existing job tests. None of the kind harnesses runs on a pull request, so a move to Helm 4 here would be unproven for eight suites at once. Helm 4 is covered where it can be: the rules_helm toolchain renders every chart template test with Helm 4.2.0 (verified: bazel run @helm//:helm -- version --short prints v4.2.0), the pin test holds HELM_V4_VERSION equal to that toolchain, and first-install runs under both majors. Moving the default is one line in the pin file, to be proven by a workflow_dispatch of e2e.yaml on the branch that does it.

first-install under both majors (#1543)

The nightly first-install job is a matrix over helm: ["3", "4"], passed as helm-major to run-e2e-script and from there to setup-helm. e2e/first-install.sh has run under both since #1567. The diagnostics artifact is now one per leg (first-install-e2e-logs-helm3, -helm4).

Diagnostics (#1581)

helm_list_all_flags (in e2e/helm-version.sh) gives -A -a under Helm 3 and -A under Helm 4. The workflow's diagnostics and e2e/first-install.sh both use it, in place of the case the script had and the list -A -a the workflow had.

Gateway API (#1583)

e2e/gateway-api-version.sh holds GWAPI_VERSION. The nine harnesses that each assigned it now source the file. e2e.yaml keeps one copy (GATEWAY_API_VERSION, a workflow cannot source a shell file), held equal by the test, as is go.mod's sigs.k8s.io/gateway-api.

Tests

//e2e:helm_pin_test and //e2e:gateway_api_pin_test, in the style of kind_pin_test and go_pin_test. Both were red against the unchanged tree:

  • helm_pin_test: ci.yaml:470 uses azure/setup-helm directly; run-conformance, run-e2e-script and proxy-pin run helm with whatever the runner ships; e2e.yaml:564 and first-install.sh:173 spell helm list -a; the first-install job has no matrix.
  • gateway_api_pin_test: each of the nine harnesses assigns GWAPI_VERSION and does not source the pin file.

Mutation check, on a copy of the files the tests read: 42 mutations, each one failing the test with the expected message. They cover the pin values, helm_pin_version and helm_list_all_flags, the action (no version, a literal version, a tag ref, a download URL of its own, not reading the pin file), each caller losing its setup-helm step or running helm before it, a helm list -a in the workflow or in a harness, the matrix (one major, none, helm-major not passed), and for Gateway API a pin, go.mod or the workflow copy moved alone, a harness that assigns or stops sourcing, and a literal release in a URL.

kind_pin_test changes by one pattern: it took setup-helm's . "$GITHUB_ACTION_PATH/../../../e2e/helm-version.sh" for an action that runs an ./e2e/ harness. The two mutations that remove setup-kind from run-e2e-script and run-conformance still fail it.

Local: bazel run //bazel/actionlint clean; bazel test //e2e/... //scripts/... //bazel/actionlint:all 31 pass; the lint build over //e2e/... //scripts/... //bazel/actionlint/... //:all clean; make format-check clean; scripts/check-shell-lint.sh OK; ShellCheck over the run: blocks of the new action clean.

What this pull request does not prove

e2e.yaml runs nightly and on workflow_dispatch only. Unproven until its next run:

Exercised by this pull request's own run: setup-helm with the default major, in proxy-pin, including its PATH check; the two pin tests; actionlint.

Files others are editing

  • .github/workflows/ci.yaml: lines 469-470 only (the proxy-pin job's Helm step).
  • scripts/BUILD.bazel: not touched.
  • .github/workflows/publish-verify.yaml: not touched.

Closes #1580
Closes #1581
Closes #1583
Closes #1543

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…Helm 3 and Helm 4, and the Gateway API release is one pin (#1580, #1581, #1583, #1543)

Helm (#1580): e2e/helm-version.sh pins one Helm 3 release (v3.22.0, what the
runner image ships today), one Helm 4 release (v4.2.0, the rules_helm
toolchain's) and the default major, 3. .github/actions/setup-helm installs
from that file, checks the helm on PATH is the pinned one, and is the only
user of azure/setup-helm. run-e2e-script, run-conformance and ci.yaml's
proxy-pin job go through it; before, the e2e jobs ran the runner's Helm and
proxy-pin ran azure/setup-helm's `latest`.

first-install (#1543): the nightly job is a matrix over Helm 3 and Helm 4.

Diagnostics (#1581): `helm list` takes its flags from helm_list_all_flags
(-A -a under Helm 3, -A under Helm 4), in the workflow's diagnostics and in
e2e/first-install.sh.

Gateway API (#1583): e2e/gateway-api-version.sh, sourced by the nine
harnesses that each assigned GWAPI_VERSION. e2e.yaml keeps one copy, held
equal, as is go.mod's sigs.k8s.io/gateway-api.

Tests: //e2e:helm_pin_test and //e2e:gateway_api_pin_test, in the style of
kind_pin_test and go_pin_test. kind_pin_test no longer takes an action that
sources a pin file by a ../ path for one that runs a harness.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
Copilot AI balanced review requested due to automatic review settings October 9, 2026 21:34
@bpalermo bpalermo added the ci CI workflows, test selection and build tooling label Oct 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The cross-cutting workflow and Helm 4 paths depend on nightly execution that has not yet run in CI.

0 open findings

What changed in this PR

Centralizes Helm and Gateway API versions across CI/e2e while adding dual Helm-major coverage.

Changes:

  • Adds pinned Helm 3/4 installation through a composite action.
  • Runs first-install under both Helm majors with compatible diagnostics.
  • Centralizes Gateway API pins and adds drift tests/documentation.
File Description
AGENTS.md Documents new pinning requirements.
BUILD.bazel Extends CI-definition test inputs.
.github/​actions/​setup-helm/​action.yml Installs and verifies pinned Helm.
.github/​actions/​run-e2e-script/​action.yml Sets up the selected Helm major.
.github/​actions/​run-conformance/​action.yml Adds pinned Helm setup.
.github/​workflows/​ci.yaml Uses the shared Helm action.
.github/​workflows/​e2e.yaml Adds the Helm matrix and compatible diagnostics.
docs/​runbook.md Documents pin update procedures.
e2e/​BUILD.bazel Registers new pin tests.
e2e/​README.md Documents shared pins.
e2e/​authz.sh Sources the Gateway API pin.
e2e/​eastwest-quic.sh Sources the Gateway API pin.
e2e/​first-install.sh Uses shared Helm flags and Gateway API pin.
e2e/​gateway-api-version.sh Defines the Gateway API pin.
e2e/​gateway_api_pin_test.sh Detects Gateway API version drift.
e2e/​helm-version.sh Defines Helm versions and compatibility helpers.
e2e/​helm_pin_test.sh Enforces pinned Helm usage.
e2e/​kind_pin_test.sh Avoids a false harness-path match.
e2e/​l4routes.sh Sources the Gateway API pin.
e2e/​multicluster_config.sh Sources the Gateway API pin.
e2e/​multicluster_replicator.sh Sources the Gateway API pin.
e2e/​multicluster_waypoint.sh Sources the Gateway API pin.
e2e/​uds-csi.sh Sources the Gateway API pin.
e2e/​uds.sh Sources the Gateway API pin.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI balanced review requested due to automatic review settings October 9, 2026 22:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The broad CI changes depend on nightly-only Helm 4 and e2e execution paths that remain unverified in this run.

0 open findings

🧠 Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 9, 2026 22:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Several broad nightly and Helm 4 execution paths remain unverified in CI and warrant final human validation.

0 open findings

🧠 Review effort: Balanced

@bpalermo
bpalermo merged commit e2f4e23 into main Oct 9, 2026
31 checks passed
@bpalermo
bpalermo deleted the fix/e2e-helm-gateway-pins branch October 9, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI workflows, test selection and build tooling

Projects

None yet

2 participants