Repository navigation
ci: one .github/actions/setup-bazel for every non-release job - #1262
Merged
Merged
Conversation
This was referenced Oct 5, 2026
bpalermo
marked this pull request as ready for review
October 5, 2026 14:16
bpalermo
force-pushed
the
upgrade/setup-bazel-action
branch
from
October 5, 2026 15:30
97ca5b9 to
e420bde
Compare
The bazel-contrib/setup-bazel block was repeated at 16 call sites (ci.yaml x9, main.yaml x2, e2e.yaml, pages.yaml, proxy.yml x2, quay-smoke.yaml). Diffed, they are one configuration with two roles: which workspace keys the repository cache (root-1 on MODULE.bazel/.lock + go.mod/go.sum, or proxy-1 on proxy/MODULE.bazel/.lock) and whether the job is its workflow's one cache saver (ci/main `diff`, the proxy `test` matrix) or restores only. Those become the wrapper's two inputs, `workspace` (default root) and `cache-save` (default false); the #1001 rationale that was copied into every call site's comments lives once, in the action. setup-bazel's cache key is setup-bazel-<cache-version>-<os>-<arch> plus the hashed files, nothing call-site specific, so every job restores the same entries it did before. The release and signing workflows (publish.yaml, proxy-release.yml, publish-verify.yaml) keep their explicit copies. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
force-pushed
the
upgrade/setup-bazel-action
branch
from
October 5, 2026 16:02
e420bde to
8073972
Compare
This was referenced Oct 5, 2026
bpalermo
added a commit
that referenced
this pull request
Oct 6, 2026
The `gateway-http` and `mesh-http` jobs repeated the same 16 steps, and the "Check formatting" block was duplicated between ci.yaml's `format` and proxy.yml's `lint`. Both now live in composite actions, in the style of run-e2e-script/setup-kind (#1261/#1262). - .github/actions/run-conformance holds the pinned Go (#1283), the images artifact, setup-kind with the cluster, cloud-provider-kind (opt-in), the Gateway API + aether CRDs, `helm install` (suite `--set` values plus the shared image overrides), readiness, the gateway-api checkout, the suite run, the report upload, diagnostics and cleanup. Inputs cover what differs: profile, suite, cluster name, gateway-api version, helm values, readiness script, report file and artifact, logs dir and artifact, diagnostics, logs-when, soft. - Kept as before: job ids, `if:`/`only=` dispatch, timeouts (90m), report-failure's needs, the artifact names (gateway-http- and mesh-http-conformance-report, conformance-logs, mesh-conformance-logs) and the report file names. Also kept: each suite's diagnostics, and mesh-http collecting and uploading its logs on every run (`logs-when: always`) while gateway-http does so only on failure. - The suite step now prints `go version` first, as evidence of the toolchain. - .github/actions/format-check: the //:format.check run plus the language-set assertion (#853), with the expected languages as input (ci.yaml: Starlark, Go, Shell, Protocol Buffer; proxy.yml: Starlark, Shell). An empty input fails instead of asserting nothing. - //e2e:kind_pin_test check 7 now also covers composite actions: one that drives kind must use setup-kind. A job that calls run-conformance no longer has a kind command of its own. //e2e:go_pin_test scans only an action's `runs:` block, because input descriptions mention `go test`. Both were seen red with setup-go/setup-kind removed from run-conformance. - publish-verify.yaml: correct the stale comment that named main.yaml's `diff` as the only root repository-cache saver (ci.yaml's `diff` saves too). This edit was taken because #1291 changes that file at the same time. e2e.yaml: 824 -> 582 lines (800 on main before #1283). Closes #1286 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
added a commit
that referenced
this pull request
Oct 6, 2026
The `gateway-http` and `mesh-http` jobs repeated the same 16 steps, and the "Check formatting" block was duplicated between ci.yaml's `format` and proxy.yml's `lint`. Both now live in composite actions, in the style of run-e2e-script/setup-kind (#1261/#1262). - .github/actions/run-conformance holds the pinned Go (#1283), the images artifact, setup-kind with the cluster, cloud-provider-kind (opt-in), the Gateway API + aether CRDs, `helm install` (suite `--set` values plus the shared image overrides), readiness, the gateway-api checkout, the suite run, the report upload, diagnostics and cleanup. Inputs cover what differs: profile, suite, cluster name, gateway-api version, helm values, readiness script, report file and artifact, logs dir and artifact, diagnostics, logs-when, soft. - Kept as before: job ids, `if:`/`only=` dispatch, timeouts (90m), report-failure's needs, the artifact names (gateway-http- and mesh-http-conformance-report, conformance-logs, mesh-conformance-logs) and the report file names. Also kept: each suite's diagnostics, and mesh-http collecting and uploading its logs on every run (`logs-when: always`) while gateway-http does so only on failure. - The suite step now prints `go version` first, as evidence of the toolchain. - .github/actions/format-check: the //:format.check run plus the language-set assertion (#853), with the expected languages as input (ci.yaml: Starlark, Go, Shell, Protocol Buffer; proxy.yml: Starlark, Shell). An empty input fails instead of asserting nothing. - //e2e:kind_pin_test check 7 now also covers composite actions: one that drives kind must use setup-kind. A job that calls run-conformance no longer has a kind command of its own. //e2e:go_pin_test scans only an action's `runs:` block, because input descriptions mention `go test`. Both were seen red with setup-go/setup-kind removed from run-conformance. - publish-verify.yaml: correct the stale comment that named main.yaml's `diff` as the only root repository-cache saver (ci.yaml's `diff` saves too). This edit was taken because #1291 changes that file at the same time. e2e.yaml: 824 -> 582 lines (800 on main before #1283). Closes #1286 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
added a commit
that referenced
this pull request
Oct 6, 2026
The `gateway-http` and `mesh-http` jobs repeated the same 16 steps, and the "Check formatting" block was duplicated between ci.yaml's `format` and proxy.yml's `lint`. Both now live in composite actions, in the style of run-e2e-script/setup-kind (#1261/#1262). - .github/actions/run-conformance holds the pinned Go (#1283), the images artifact, setup-kind with the cluster, cloud-provider-kind (opt-in), the Gateway API + aether CRDs, `helm install` (suite `--set` values plus the shared image overrides), readiness, the gateway-api checkout, the suite run, the report upload, diagnostics and cleanup. Inputs cover what differs: profile, suite, cluster name, gateway-api version, helm values, readiness script, report file and artifact, logs dir and artifact, diagnostics, logs-when, soft. - Kept as before: job ids, `if:`/`only=` dispatch, timeouts (90m), report-failure's needs, the artifact names (gateway-http- and mesh-http-conformance-report, conformance-logs, mesh-conformance-logs) and the report file names. Also kept: each suite's diagnostics, and mesh-http collecting and uploading its logs on every run (`logs-when: always`) while gateway-http does so only on failure. - The suite step now prints `go version` first, as evidence of the toolchain. - .github/actions/format-check: the //:format.check run plus the language-set assertion (#853), with the expected languages as input (ci.yaml: Starlark, Go, Shell, Protocol Buffer; proxy.yml: Starlark, Shell). An empty input fails instead of asserting nothing. - //e2e:kind_pin_test check 7 now also covers composite actions: one that drives kind must use setup-kind. A job that calls run-conformance no longer has a kind command of its own. //e2e:go_pin_test scans only an action's `runs:` block, because input descriptions mention `go test`. Both were seen red with setup-go/setup-kind removed from run-conformance. - publish-verify.yaml: correct the stale comment that named main.yaml's `diff` as the only root repository-cache saver (ci.yaml's `diff` saves too). This edit was taken because #1291 changes that file at the same time. e2e.yaml: 824 -> 582 lines (800 on main before #1283). Closes #1286 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
added a commit
that referenced
this pull request
Oct 6, 2026
The `gateway-http` and `mesh-http` jobs repeated the same 16 steps, and the "Check formatting" block was duplicated between ci.yaml's `format` and proxy.yml's `lint`. Both now live in composite actions, in the style of run-e2e-script/setup-kind (#1261/#1262). - .github/actions/run-conformance holds the pinned Go (#1283), the images artifact, setup-kind with the cluster, cloud-provider-kind (opt-in), the Gateway API + aether CRDs, `helm install` (suite `--set` values plus the shared image overrides), readiness, the gateway-api checkout, the suite run, the report upload, diagnostics and cleanup. Inputs cover what differs: profile, suite, cluster name, gateway-api version, helm values, readiness script, report file and artifact, logs dir and artifact, diagnostics, logs-when, soft. - Kept as before: job ids, `if:`/`only=` dispatch, timeouts (90m), report-failure's needs, the artifact names (gateway-http- and mesh-http-conformance-report, conformance-logs, mesh-conformance-logs) and the report file names. Also kept: each suite's diagnostics, and mesh-http collecting and uploading its logs on every run (`logs-when: always`) while gateway-http does so only on failure. - The suite step now prints `go version` first, as evidence of the toolchain. - .github/actions/format-check: the //:format.check run plus the language-set assertion (#853), with the expected languages as input (ci.yaml: Starlark, Go, Shell, Protocol Buffer; proxy.yml: Starlark, Shell). An empty input fails instead of asserting nothing. - //e2e:kind_pin_test check 7 now also covers composite actions: one that drives kind must use setup-kind. A job that calls run-conformance no longer has a kind command of its own. //e2e:go_pin_test scans only an action's `runs:` block, because input descriptions mention `go test`. Both were seen red with setup-go/setup-kind removed from run-conformance. - publish-verify.yaml: correct the stale comment that named main.yaml's `diff` as the only root repository-cache saver (ci.yaml's `diff` saves too). This edit was taken because #1291 changes that file at the same time. e2e.yaml: 824 -> 582 lines (800 on main before #1283). Closes #1286 Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
Stack 3/3 (#1259 → #1261 → #1262).
The diff that justifies it
I compared all 20
bazel-contrib/setup-bazel@c5acdfb… # 0.19.0call sites with comments stripped. There are three configurations:cache-versionrepository-cachecache-saveroot-1MODULE.bazel,.lock,go.mod,go.sumfalsetest, e2e.yamlbuild, pages.yaml, proxy.ymlshell, quay-smoke.yaml, plus publish.yaml, proxy-release.ymlsign, publish-verify.yamlroot-1true)diff, main.yamldiffproxy-1proxy/MODULE.bazel,.locktrue)test, proxy-release.ymlbuild-pushAll of them use
bazelisk-cache: true. The only variation is two deliberate roles from #1001:So these become two inputs of
.github/actions/setup-bazel:workspace(rootby default, orproxy) andcache-save(falseby default). The #1001 rationale, which had been copied into the comments at every call site, now lives once in the action. The 16 call sites outside the release and signing workflows use it.publish.yaml,proxy-release.ymlandpublish-verify.yamlkeep their explicit copies, as decided. The action's header says they must stay equal to it.Cache entries are unchanged. setup-bazel 0.19.0 builds its key as
setup-bazel-<cache-version>-<platform>-<arch>plus the hash of the listed files (config.js). Nothing in the key depends on the call site, so every job restores and saves exactly the entries it did before.Note: this PR edits
proxy.yml, which is in that workflow's own path filter, so the Envoytestmatrix runs here. That exercisesworkspace: proxywith the saver role on both architectures.Proof
actionlintreports no new findings compared withmainon every workflow, and the action'srun:body passes ShellCheck.//e2e:kind_pin_testand//website:site_testpass. The runbook's "CI: external repository fetches" section now points at the action.e2e.yamlwas dispatched on it: https://github.com/bpalermo/aether/actions/runs/37323288665. Itsbuildjob runs this wrapper.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr