Repository navigation
ci: shard SSH tests, remove duplicate runs, and warm Windows caches - #23286
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe CI workflow adds Windows cache warmup and updates SSH E2E spec assignment. The SSH isolation job uses four shards, with watcher-isolation and terminal-parking tests on shard 1. New tests check warmup configuration, spec ownership, and shard coverage. The change also removes a comment about the SSH job name. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The cache warmup and SSH shard assignments have no identified issue requiring a change before merge. Pending CI runs remain normal validation. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The changes affect how CI tests run and how Windows caches are prepared, not product-facing behavior. No new public application entrypoint was established, but the hosted cache behavior and four-runner execution have not yet been verified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
ℹ️ No critical issues. One question worth confirming before merge; details inline.
Reviewed changes
- SSH Docker lane sharded four ways —
ssh-docker-watcher-isolationnow runs a[1,2,3,4]matrix withfail-fast: false. The 25 specs inrun-ssh-docker-e2e.mjsare split with--shard=${{ matrix.shard }}/4(one worker per VM), while the watcher-isolation and parking/startup suites run once on shard 1 and trace artifacts are namespaced by shard. - Dedicated SSH specs removed from the changed-spec job — all 30 specs owned by the three SSH runners are now excluded from
changed-e2e, and each owner lane triggers on a test-only edit viacontains(inputs.test_files, <spec>). The exclusion list (30 owned + 3 specs with their own lanes) and the jobiflist are consistent, and every SSH-source-mapped spec frompr.ymlis inside the excluded set, so the watcher lane is the single owner. - Windows cache warming — a new
warm-windowsmatrix job onwindows-2022andwindows-11-arminstalls Node dependencies through the same action and runtime (native-runtime: node, default Node version) asbun-profile-tests.persistence, then probes the compiled modules withensure-native-runtime.mjs --check-only. Image set, scope, runtime, and cache key all match the persistence consumer. - Contract tests —
ssh-docker-ci-sharding.test.mjsasserts owner completeness against the runner files, the shard configuration, and a real four-way Playwright--sharddiscovery partition; the warmup contract test asserts Windows image/runtime parity. All focused contract suites pass locally (9 files, 100 tests), including the existingpr-e2e-gate-contract, routing, and release-dispatch contracts, whose expectations still hold because the job id is unchanged.
ℹ️ Nitpicks
docs/reference/ci-runner-efficiency.mdis the rolling record for CI-efficiency changes (with hosted numbers). Once the four SSH shards and the Windows probes have real CI timings, a short entry there would keep that record complete.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
|
||
| ssh-docker-watcher-isolation: | ||
| name: ssh docker watcher isolation | ||
| name: ssh docker watcher isolation (${{ matrix.shard }}/4) |
There was a problem hiding this comment.
The job's display name changed from ssh docker watcher isolation to a matrix-suffixed name, and the comment in run-ssh-docker-e2e.mjs that warned about exactly this was deleted in the same PR. Since branch protection is configured outside the repo, it cannot be checked here.
Technical details
# Confirm the renamed job is not a required status check
## Affected sites
- `.github/workflows/e2e.yml:320` — `name:` gained a `(${{ matrix.shard }}/4)` suffix, so the check context is now `ssh docker watcher isolation (1/4)` … `(4/4)`, not the old `ssh docker watcher isolation`.
- `config/scripts/run-ssh-docker-e2e.mjs` — deleted comment: renaming "changes the GitHub check name and can break required-check config, so the name understates the job on purpose."
## Required outcome
- Either confirm `ssh docker watcher isolation` is not configured as a required status check for `main` (the `e2e`/watcher lanes are advisory in `pr.yml` — `verify.needs` omits `e2e`), or keep a check context that still matches the configured requirement.
## Open questions for the human
- Is this lane referenced in branch-protection required checks? If so, the matrix-suffixed names would never satisfy the old required name and would block merges.
ELI5
SSH-related PRs spent over half an hour in one test job while another job repeated the same tests. Windows ARM also spent nine minutes installing dependencies after cache misses. This spreads SSH tests across four machines, removes duplicate execution, and prepares reusable Windows caches on main.
What Changed
Why
Separate machines isolate destructive SSH fixtures without introducing competing Electron workers. Explicit ownership checks prevent deduplication from dropping coverage. Reusing the existing install action preserves exact ABI, architecture, image, and source cache keys.
Linked Issue
None; requested directly. No issue created.
Visual Proof
N/A — CI scheduling and caching only.
Testing
Review
No product behavior or test assertions changed. Headed Electron execution remains on isolated CI displays. Existing timeouts and retries are unchanged.
Agent skill upstream boundary
Checklist
Validation notes
The first manual E2E dispatch failed at checkout because an abbreviated SHA was interpreted as a branch; the successful validation used the full immutable head SHA. No test failure was rerun to obtain green.
GitHub branch and rules APIs report no required status-check contexts on main, so matrix suffixes do not leave an old required check unsatisfied. Native and download caches become shared across PRs when this workflow runs on main; pre-merge native restore was validated within the PR cache scope.