Skip to content

Move full PR verification to Linux and keep main CI green #1919

Open

Description

@zerob13

What needs tracking?

Pull request CI waits on the macOS pool while Linux and Windows runners sit idle, and main rarely finishes its own check. This issue tracks moving full workspace verification to Linux, keeping only macOS-native coverage on the Macs, and making every main push produce a result.

Measurements

From the 200 most recent PR check runs; the busy day is 2026-11-19.

2026-11-19
verify jobs 81
Queue time before a Mac picked the job up median 11 min, p90 52 min, max 108 min
verify run time when it passed median 29 min
Mac minutes used 1788, of which 425 (24%) on jobs that were cancelled or failed
Peak concurrent verify jobs 3
  • Only macos-2, macos-5 and macos-6 have taken jobs since 2026-10-30. Their logs report two host names (colabdeMac-mini for macos-2, colabdeMac-mini-2 for both macos-5 and macos-6). macos-3, macos-4, macos-7 and macos-8 last ran a job on 2026-10-30.
  • verify step medians: build and Clippy 6.8 min, workspace tests 14.2 min (156 test executables, 4391 tests), actual CLI profile 2.9 min, release-stamped CLI 2.4 min, Node bindings 1.3 min.
  • Build time depends on the compiler cache: 15 of 78 builds finished in under 2 minutes, 54 took more than 5. One full build stores about 30 GiB, and the logs show evictions of 63 GiB in one pass and 255 "cached action is missing blob" warnings in a single job.
  • Six test targets account for 58% of test time: cli_flow 360 s, transport_flow 185 s, storage_flow 114 s, modality_flow 86 s, model_catalog_flow 54 s, migration_flow 48 s.
  • Linux has no workspace coverage on pull requests today; Windows runs dim-cli --lib only.

main

Of 20 full main push runs since 2026-11-19, 5 passed, 8 were cancelled by the next merge and 7 failed:

Failures Cause State
4 acp-registry on linux-runner-005: rustup could not write to root-owned /usr/local/rustup Fixed on the runner; run 44666231831 passed there afterwards
2 staged_update::tui_update::update_now_stops_an_idle_daemon_and_restarts_or_refuses_a_busy_or_old_one never showed Update now within 300 s (44544822669, 44577712528; one of them also had the acp-registry failure) Open; 2 failures in 18 runs since #1865, both on macos-6
1 minimal_execution::a_foreground_result_past_the_limit_keeps_the_earliest_bytes: bash: child setpgid: Operation not permitted (44472956502) Open; seen once
1 The self-hosted runner lost communication with the server (44489912325) Runner infrastructure

Plan

  1. main completes and is visible. Stop a later push from cancelling the build and test jobs of an earlier one, and show the result as a badge in the README. Running all 14 full pushes of 2026-11-19 to completion would have cost about 55 more Mac minutes (3% of that day).
  2. Trial: full verification on Linux. Run the existing verify steps on the self-hosted Linux x64 runners beside macOS, without gating, to learn the run time and which tests need host support (bubblewrap, PTY, /proc). ci: support Linux and macOS verification #1754 is the earlier attempt; it closed on two fixable review points (an invalid action pin, and the four macOS-only dim-ocr library tests left out of the macOS selection).
  3. Switch. Pull requests require full Linux verification plus the macOS-native tests; main keeps full macOS verification. The macOS-native selection must be checked against the code instead of listed by hand. Update docs/architecture/build.md and docs/release/README.md with the change.
  4. Later, measured separately: fewer test executables per crate (less linking, smaller cache), running only the crates a change affects, a compiler cache shared between runners, and the release-stamped rebuild only where the update code changed.

References or acceptance criteria

  • A push to main is not cancelled by the next one, and the README shows the latest main result.
  • The Linux trial reports its run time and every test that fails or silently skips on the Linux runners.
  • Pull requests pass ci-ok without waiting for a full macOS workspace run, and the macOS-native tests still run on every Rust change.
  • The two open test failures above are fixed or tracked in their own issues.
  • The CI and build documentation describe the platform split.

Automatic notification of a failed main run is out of scope for now.

Activity

  1. self-assigned this
    on Nov 20, 2026
  2. eric8810 commented on Nov 20, 2026

    @eric8810
    Collaborator

    Adding measurements from the #1921 Linux trial run (44684351971, job 136115097609 on node-1-runner) and tracking the non-overlapping follow-up items separately:

    #1921 Linux trial observations (node-1-runner: 32 vCPU, 93 GiB RAM)

    • Speedup: Across 153 common test targets, total target time dropped from 2442s (macOS, 136096924994) to 970s (Linux, 2.52× faster; wall time 5m37s vs 16m33s), with migration_flow 7.9× faster and goal_product_flow 7.5× faster, and ~0.1m queue time — even though run-rust-test.mjs (3 processes × --test-threads=3) only used 9 of 32 vCPUs.
    • Only 3 failure categories on Linux:
      1. bubblewrap (bwrap) is not installed on node-1, causing xtask::scenario_eval isolated-run tests to fail.
      2. 22 Apple Vision OCR tests in dim-modality (ocr_descriptors + 21 cases in modality_flow) expect macOS 12+ Apple Silicon.
      3. 1 assertion mismatch in transport_flow::timeline_export::timeline_export_reads_a_live_product_home_and_its_copies.

    Linked follow-up issues (split out so #1919 stays focused on the Linux migration + main greenness)

  3. added
    roadmap
    P2
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2roadmap

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions