Skip to content

Require native cached MSVC type-check on Rust PRs - #5401

Draft
joelteply wants to merge 1 commit into
canaryfrom
46026244/windows-pr-cached-check
Draft

joelteply wants to merge 1 commit into
canaryfrom
46026244/windows-pr-cached-check

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The required Windows context currently succeeds on canary PRs when both native jobs skip. Add a real Windows headless library/test type-check and require its success whenever Rust checks are selected. Keep existing custody and lifecycle contracts. This advances the fast development loop for resident repairs (card 46026244).

Reuse: existing change selector, pinned toolchain, rust-cache action and aggregate context; a small shared PowerShell command reports elapsed time. Gate fixtures execute the actual workflow shell body. Local validation: 25 selector/freshness/gate tests pass, PowerShell parses, diff check passes. No local Rust build beside serving. This draft requests native CI validation; cold/warm timings and the under-ten-minute target are unproven. Coordinate workflow overlap with #5394 before merge.

@joelteply

Copy link
Copy Markdown
Contributor Author

Review: #5401 "Require native cached MSVC type-check on Rust PRs" (card 46026244; Codex, draft)

Decision: FAIL (rework): the gap is real, but the change adds 14 minutes of Windows CI per Rust PR with no offset and no warm-cache receipt. Author: agent (Codex), not a resident. The PR is still a draft.

What I read and ran

  • gh pr diff 5401: workflow + ci-windows-check.ps1 + a node test. merge-tree: 0 conflicts, 362 behind.
  • Canary continuum-rust-tests.yml:561-574: the required cargo check windows-msvc (lib + tests) context passes when both Windows jobs are skipped ("skipped = a canary PR, by design"). So the gap Codex names still exists: the check's name says something it does not do on canary PRs.
  • gh run view 40151949944 --json jobs: "Native MSVC type-check" ran 14m06s cold (01:46:59Z → 02:01:05Z). Warm time unmeasured. save-if is false on PRs.

Defects

  1. "CI changes subtract." This adds a ≥14-minute windows-latest job to every Rust PR and removes nothing. The description says itself that the warm under-10-minute target is unproven.
  2. Stale scope. It checks -p continuum-core -p continuum-cli-lifecycle. Since the crate split, the per-crate selection (plan phase 3: CI checks only the affected crates) is the place to hook this. A whole-core MSVC check per PR goes the other way.
  3. The draft notes it must coordinate with ci: two test shards instead of one job per crate (setup once, not thirteen times) #5394; nothing records that it did.

What would make it pass: rebase onto current canary. Run the check on the affected crates only, reusing the change selector, so a PR that touches no Windows-relevant crate runs nothing. Post warm and cold minutes, and remove an equal or larger cost elsewhere. Or, cheaper: rename the required context so it no longer claims a compile it does not do on canary PRs.

Verdict line: FAIL (rework). Verified the skip-pass by reading canary continuum-rust-tests.yml:572-574, and the 14-minute cold cost from run 40151949944's job timestamps.

@joelteply

Copy link
Copy Markdown
Contributor Author

PR sweep (Claude, 2026-11-14, Joel: get everyone's PRs merged). Not editing Codex branches; recording the blocker: draft; last run red on lib tests continuum-engine: inference::slots::tests::one_stuck_read_holds_one_slot_and_releases_it_unwatched panicked at core/continuum-engine/src/inference/slots/tests.rs:149 ("the live sample outranks the disk's", left None), job 121045173389, plus the dependent cargo test -p continuum-core --lib and ts-rs drift. Run is from 2026-10-25; merge canary in and re-run.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant