Repository navigation
ci: exercise branch checks on gke runners - #5867
Draft
TaylorMutch wants to merge 10 commits into
Draft
TaylorMutch wants to merge 10 commits into
TaylorMutch wants to merge 10 commits into
Conversation
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>
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" |
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. rust-sdk — No explicit risk acceptance foundThe exhaustive
Review details
Advisory review; publication gates are unchanged. |
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
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.
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-kubernetesanddocker-podmanmatrix lanes, each with its own disk and eight reserved runner CPUs (plus two for Docker). Keep all four original--all-targets --no-default-featurescommands 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
ReadWriteOncePodexclusivity, were checked live.base-kubernetestakes 7m23s,docker-podman7m18s; 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.base-kubernetestakes 5m34s anddocker-podman5m05s, 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.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:/readyzreturns 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
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