Skip to content

ci: exercise branch checks on gke runners - #5867

Draft
TaylorMutch wants to merge 16 commits into
mainfrom
ci/5866-gke-branch-checks/TaylorMutch
Draft

TaylorMutch wants to merge 16 commits into
mainfrom
ci/5866-gke-branch-checks/TaylorMutch

Conversation

@TaylorMutch

@TaylorMutch TaylorMutch commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Run trusted Linux Branch Checks on native GKE ARC runners with isolated persistent Cargo caches. Parallelize gateway feature checks and give ARM build-mode verification its own cached worker. Preserve all architecture, feature, and dependency checks; fork PRs retain hosted runners.

Closes #5866

Changes

  • Route trusted AMD64 and ARM64 Rust lint/tests to dedicated single-worker scale sets. Each cached lane uses an exclusive 200 GiB Hyperdisk Balanced claim (ReadWriteOncePod, 6,000 IOPS, 250 MiB/s), shared memcached sccache, and preloaded Nix shells. Checkouts/credentials remain ephemeral; cached lanes skip GitHub Cargo archive restore/save.
  • Route trusted ARM build modes to openshell-ci-arm64-pd-build-modes, with its own cache and ready worker. Keep every Cargo build/check, telemetry positive/negative control, system-CA boundary check, and prover dependency check. Binary inspection honors ${CARGO_TARGET_DIR:-target}; other workers retain their default paths. Forks keep hosted ARM.
  • Run ARM crypto/backend verification after lint, parallel with workspace tests. Other platforms keep their previous placement.
  • Split gateway core checks into no-driver/Kubernetes and Docker/Podman lanes. Preserve all four --all-targets --no-default-features commands and disable matrix fail-fast.
  • Disable test debug information only for trusted AMD64 tests, preserving assertions and all tests. Use a separate test-debug0 target path; failed-test backtraces have less detail.
  • Add manual-only local_image_builds: build auditable native AMD64 binaries using the production Nix GNU/musl toolchains, verify the glibc 2.28 floor/static sandbox, and assemble/load/smoke-test gateway, sandbox, and supervisor images locally. Explicit DOCKER_PUSH=0 and DOCKER_OUTPUT=type=docker; no registry login, image publication, registry-cache export, or image artifact upload.
  • Update Actionlint labels, CI documentation, and monitoring guidance.

The companion infra repository provisions N4 system/general AMD64 nodes, C4 cached AMD64 nodes, and a single C4A pool for all self-hosted ARM workloads, including BuildKit. C4A uses us-central1-b because zone a lacked capacity. Three replacement nodes were verified Ready before the old T2A pool was retired. ARM lint/test/build-mode lanes each reserve 12 runner CPUs plus one for Docker, with the existing ARM64 image and resource limits. ARM caches were recreated without copies or snapshots; old disks are deleted. AMD64 workers were unchanged by the ARM migration. Infra commit e6d996b remains local to that repository. Python ARM and macOS remain GitHub-hosted.

Testing

  • Actionlint, repository Markdownlint, diff checks, Terraform formatting, and both affected workspace validations pass. Both Terraform workspaces report no drift.
  • YAML comparison verifies every unrelated job is unchanged and every build-mode command/coverage payload is preserved apart from cache-aware binary paths.
  • Live C4A checks verify native aarch64, Docker, and Landlock ABI 4. All three caches are bound; replacement workers are ready.
  • First population pass: all ordinary Linux checks pass in 7m49s, including queue/setup. New C4A build modes take 6m10s, lint/crypto 5m27s, and workspace tests 6m18s.
  • Same-source warm confirmation, source 1864fb2e15731c21a430b1d0d8ee4c7341e6a0bc: all ordinary Linux checks pass in 6m43s, including queue/setup. The longest job is now AMD64 tests at 6m42s plus one second queue. Duplicate automatic PR validation was canceled before measurement; workers were ready before dispatch.
  • Previously, native AMD64 image validation builds and locally loads all three real images and passes network-disabled --help smoke checks. GNU binaries pass glibc 2.28 verification; sandbox is fully static. The job takes 10m58s (cold binary builds 9m52s, image assembly/verification 23s), plus 17s queue. Nothing is published or uploaded. ARM images and release attestations are outside this trial.
Current warm job Execution Queue
AMD64 lint 2m51s 1s
AMD64 workspace/crypto tests 6m42s 1s
AMD64 build modes 5m24s 12s
PostgreSQL 5m00s 11s
Gateway core base/Kubernetes 3m09s 1s
Gateway core Docker/Podman 3m04s 1s
Gateway extended 5m02s 11s
C4A ARM64 lint/crypto 4m11s 1s
C4A ARM64 workspace tests 5m10s 1s
C4A ARM64 build modes 3m59s 1s

ARM build modes previously took 9m37s on the hosted worker in the prior N4/C4 trial, whose ordinary Linux window was 9m42s. The new warm build-mode job starts with a 7.2 GiB persistent target on a replacement worker; all telemetry marker and dependency checks pass again. Rust sccache reports 97.56% hits, zero read errors, and two write errors; cache writes remain best effort. No test assertions were weakened.

Five recent successful first-attempt PR runs targeting main had ordinary Linux windows of 21m30s–27m15s, median 22m51s (median example). The current 6m43s sample is approximately 71% shorter. This is an observational comparison across different commits, cache states, hardware, and workflow optimizations, not a hardware-only estimate or a CI latency guarantee.

Timing excludes macOS, advisory review, and optional image validation consistently. Remaining macOS work was canceled after requested Linux validation; the full workflow is not claimed as passing. Earlier image validation found a local Zig/Nix C++ linker mismatch; this trial uses the production Nix build path without changing the release publisher. An earlier AMD64 idle-runner Broker transport stall recovered after recycling that idle pod; its queue delay remains included in that earlier run's recorded timings.

Release Notes

CI-only trial; no product release note.

Checklist

  • Conventional Commits and DCO signoffs
  • CI guidance and related monitoring skill updated
  • No credentials or Terraform state committed

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 20, 2026
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Comment on lines +53 to +70
run: |
set -euo pipefail
# Pod environment is visible to the shell, not the workflow env context.
if [[ -z "${OPENSHELL_PERSISTENT_CACHE:-}" ]]; then
exit 0
fi
echo "enabled=true" >> "$GITHUB_OUTPUT"
test "$GITHUB_REPOSITORY" = ai-openshell/openshell
test "$OPENSHELL_PERSISTENT_CACHE" = /mnt/ci-cache
mountpoint -q "$OPENSHELL_PERSISTENT_CACHE"
cache_root="$OPENSHELL_PERSISTENT_CACHE/ai-openshell-openshell/$NIX_SHELL_HASH"
mkdir -p "$cache_root/target"
echo "CARGO_TARGET_DIR=$cache_root/target" >> "$GITHUB_ENV"
echo "Persistent cache lane: $OPENSHELL_CACHE_LANE"
echo "Runner pod: $RUNNER_NAME"
echo "Target directory: $cache_root/target"
du -sh "$cache_root/target"
df -h "$cache_root/target"
@github-actions

Copy link
Copy Markdown

Compatibility review (advisory)

New or updated breaking changes; see the full report for all findings.

1. rust-sdk — No explicit risk acceptance found

The exhaustive openshell_sdk::raw::proto::ProviderCredentialRefreshStrategy enum adds GithubAppInstallation to its seven baseline variants.

  • Impact: Existing SDK consumers matching all seven variants without a wildcard no longer compile, although existing gRPC client calls remain wire-compatible.
  • Action: Preserve the baseline enum in v0.1.10; defer its breaking expansion to a minor train with notice and wildcard-match migration guidance.
  • PR: ci: exercise branch checks on gke runners #5867
Review details
  • Execution: complete
  • Candidate: PR #5867 (5133d10c3d56c2fae5bba2d18b411a4b0818390f)
  • Baseline: a1c1e42640fc8c368e4a85e584ab324a33d0f91b (a1c1e42640fc8c368e4a85e584ab324a33d0f91b)
  • Reviewed: rust-sdk, python-sdk, api-behavior, cli, configuration, policy, helm, state

Advisory review; publication gates are unchanged.

Branch check run

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: exercise gke runners with branch checks

2 participants