Skip to content

ci: exercise branch checks on gke runners - #5867

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

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

Conversation

@TaylorMutch

@TaylorMutch TaylorMutch commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Exercise Linux Branch Checks on GKE ARC runners with isolated persistent Cargo caches. Trusted repository branches use the trial runners; fork PRs retain hosted runners. Parallelize gateway core-feature checks while preserving all four configurations.

Related Issue

Closes #5866

Changes

  • Route trusted Linux checks to ARC, including native ARM lint/tests. Reuse preloaded Nix shells and shared memcached sccache.

  • Use separate exclusive 200 GiB SSDs for cached lanes. Keep checkouts and credentials ephemeral and skip GitHub Cargo archive restore/save on those workers.

  • Run ARM crypto verification after lint, in parallel with the workspace test job; other platforms retain their previous placement.

  • Split gateway core checks into base-kubernetes and docker-podman matrix lanes, each with its own disk and eight reserved runner CPUs (plus two for Docker). Keep all four original --all-targets --no-default-features commands and hosted fallback for forks.

  • Disable matrix fail-fast so both lanes complete, and retain the Branch Checks workflow gate requiring all jobs to pass. Update Actionlint and CI diagnostics documentation.

  • Add the opt-in manual input compare_linux_combined, which runs Linux-only combined lint/crypto/test jobs alongside unchanged separate controls. Trial workers have separate SSDs and matching per-architecture resources (AMD64 eight reserved runner CPUs, ARM64 twelve). Ordinary PRs skip the combined jobs.

Release Notes

Testing

  • Actionlint, YAML parsing, repository Markdownlint, and diff checks pass.
  • Verified the four gateway commands execute exactly once across the two lanes; unrelated workflow jobs are unchanged.
  • Terraform validates and deployed add-ons report no drift. Gateway changes add only two scale sets, two SSD claims, and cache ingress rules; existing workers are unchanged.
  • Existing images pass native architecture, GitHub CLI, GNU strings, offline Nix-shell, and Landlock ABI 4 verification. Cache persistence across runner replacement and nodes, and ReadWriteOncePod exclusivity, were checked live.
  • Previous full Branch Checks baseline succeeds: https://github.com/ai-openshell/openshell/actions/runs/45056854413. ARM lint+crypto takes 8m07s and ARM workspace tests 9m35s, each with one second queue time. This does not yet meet the overall non-macOS target; the sequential gateway core job takes 14m26s.
  • Empty-target gateway lanes both pass: https://github.com/ai-openshell/openshell/actions/runs/45097088840. base-kubernetes takes 7m23s, docker-podman 7m18s; each queues for one second. The combined first-queued-to-last-complete window is 7m24s versus the previous 14m26s sequential execution. All four configurations run exactly once and all 31 gateway tests pass. Replacement pods see 6.6/6.9 GiB cached targets.
  • Same-commit warm comparison succeeds on replacement pods: base-kubernetes takes 5m34s and docker-podman 5m05s, each queued for two seconds. The combined first-queued-to-last-complete window is 5m36s, approximately 61% shorter than the prior 14m26s sequential execution. All 31 tests pass again, and setup confirms the existing 6.6/6.9 GiB targets. Remaining non-gateway jobs are still running at this update.
Gateway lane Empty target execution Warm execution
No-driver + Kubernetes 7m23s 5m34s
Docker + Podman 7m18s 5m05s
Combined queued-to-last-complete 7m24s 5m36s

Warm Rust sccache hit rates are 95.24% / 95.65%, with zero read errors and two write errors per lane. Persistent targets provide direct local artifact reuse; sccache remains best effort.

The first full run has an ARM workspace failure in connect_store_serves_probes_while_the_database_is_unreachable: /readyz returns 200 where 503 is expected; 9925/9926 root tests pass. The ARM job definition is unchanged by this branch update. The unchanged full ARM workspace job passes on the warm rerun. The failure did not reproduce; its root cause is not established.

Earlier x86 persistent-cache measurements improve lint from 14m48s to 8m04s and tests from 17m30s to 10m40s in one pair of runs. GitHub target-archive trials consumed about 3.8 GiB and lost entries during testing, motivating persistent disks. Cross-run comparisons are observational; the gateway trial combines parallelization, persistent targets, and stronger CPU reservations. No Nix sandbox or trust settings are changed, and no test coverage is removed.

Linux combined-job comparison

  • Actionlint, YAML parsing, Markdownlint, and command-preservation checks pass. Combined jobs contain every Clippy/crypto/workspace command exactly once; existing control jobs are unchanged. No macOS combined job and no architecture lint coverage reduction.
  • Trial workers deployed with separate 200 GiB SSDs; AMD64 controls and combined workers match at eight reserved/limited runner CPUs, ARM64 at twelve. Images/memory settings match within each architecture.
  • Run the opt-in manual comparison twice on the same branch SHA. The first pass seeds the new combined targets; the warm pass is the primary comparison against warmed parallel controls. Report latency (later control finish vs combined finish), queue time, and total runner minutes separately.

The automatic PR run was canceled before manual dispatch to prevent it competing for the single-worker control lanes. The experiment uses the same branch-head source for control and combined jobs rather than comparing different PR merge snapshots. Ordinary PR validation will be rerun afterward. The single-distribution policy is unchanged; both CPU architectures retain Clippy for this controlled experiment.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • CI guidance and monitoring skill are updated

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>

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