Skip to content

ci: save macOS queue capacity by sharing complete Clippy coverage - #5004

Merged
zackees merged 2 commits into
masterfrom
ci/macos-speed-dedup-analysis
Nov 17, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/macos-speed-dedup-analysis

Conversation

@zackees

@zackees zackees commented Nov 17, 2026

Copy link
Copy Markdown
Member

Refs #4999

What and why

The macOS Rust Tests queue job spends a median 165 s repeating Clippy and formatting already assigned to required queue jobs. Hosted macOS capacity is the bottleneck. Keep every native Rust test, doctest and Tier 2 assertion on macOS, but leave queue formatting to Fast Gate and macOS arm64 Clippy to its required cross leg.

Before skipping native Clippy, expand the linked macOS arm64 cross leg from production libraries/binaries to --workspace --all-targets, including test targets and the C oracle. Dylint and lint-only client/release scopes retain their coverage. The skip requires merge_group, explicit cumulative cross_lint == 'true' and neither measurement-only mode. Other events and absent/false scope keep native analysis. CI Gate independently requires successful replacement jobs; missing, skipped, pending, failed or canceled work cannot pass.

Measured eight successful jobs per lane through the jobs API and downloaded two logs per lane. Rust Tests queue n=5 median 625 s (PR n=3: 667 s); Tier 2 queue 1082 s (PR 1051 s). Rust compile/link was 288/294 s; Cargo category execution 202/151 s. These macOS jobs use Cargo, not nextest. The slowest groups were Application 85/60 s, Core 66/61 s, Utilities 40/21 s. Tier 2 already uses CTest -j 3; configure/build consumed 553/581 s, four suites 232/224 s, native-core contract 112/114 s.

Expected saving is 165 s (2.75 native runner minutes) per selected macOS Rust Tests queue job, pending hosted before/after validation. Tier 2 and other events save 0 s from this change. Some analysis moves to the existing Linux cross runner; this is not a measured end-to-end gate speedup. The independent aggregate build branch #4996 is not stacked or duplicated. No runner, routing, backpressure, Linux Tier 2, MQ variable, C test, public header, websocket plugin or Rust test-binary change; no new workflow files.

RED → GREEN

  • RED c11468396: uv run --no-project ci/test_macos_analysis.py failed three subcases: both missing native-analysis guards and incomplete replacement Clippy scope.
  • GREEN 7fe087331: the five issue regressions pass, covering event/scope/measurement combinations, complete replacement target coverage, native runtime selection, and gate rejection of unsuccessful replacements. The 35 local-gate, 12 merge-queue and 23 CI-gate tests also pass.
  • Expanded real macOS arm64 cross Clippy passed with verdict replay off (86.92 s initial compile, recorded warm confirmation exit 0).
  • Full SOLDR_PORCELAIN=0 ./lint ran once and passed, exit 0: == lane lint: ok (96.7s). The report parser calls the verdict unknown but the process status and explicit lane verdict pass. The first start was refused once by the verification-ratio guard; the guard's permitted identical retry was the sole actual full-lint execution.
  • One read-only clud-review reviewer found no issues. Native macOS execution and production after timings remain unverified locally. No new Rust tests; test cost requirements for new Rust cases do not apply.
  • Real app: N/A, CI analysis placement only.

Checklist

  • Base is master; independent of the unpublished native aggregate branch.
  • Issue ci: avoid duplicate macOS merge-queue analysis on scarce native runners #4999 is open, Ready and assigned; one live claim names this slot and branch.
  • Local RED then separate GREEN commit; no remote RED run required for this focused CI change.
  • No user-visible behavior change, so no features-ledger line is required.
  • No native-coverage opt-in label applies: no native implementation changed; existing queue selection and full release validation remain.
  • No compiler-warning changes or intentional C behavior differences.

./push completed successfully: client lint 57.4 s, client checks, all six
Clippy/Dylint targets, 8,880 workspace tests (six skipped), 920 feature tests,
doctests and Windows GNU test linking passed. Final head
302d991fe7a9350573d9b374505efd393624c090 carries 19 Ci-Attestation records and
a GitHub-verified valid signature; its tree matches the reviewed GREEN tree.
Optional Swift formatting could not attest (exit 75); this change selects no
Swift files. CI trust-surface fallback checks remain required.

The automatic PR-create command was deferred by an external command adapter
so the branch push and PR creation remain separate GitHub mutations; every
other gh command passed through the existing guard. Final admission check was
open with headroom 1.

…efs #4999)

Ci-Attestation: {"at":1794953134,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":80,"stamp":"9e6b4521ce13e3039b6a664999d981e0","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953134,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":80,"stamp":"af919e4069d191328d49dbe530f5ada1","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953134,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":80,"stamp":"db8ff059c972a5c6ee902a1d3999200a","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953134,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":80,"stamp":"017eba47ea436c3b48c96a389c1387f6","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953051,"gate":"general/all/client-lint","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"5237ede5f856b817a882df78652b51bd","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953134,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":80,"stamp":"f2735cbfccdd6f9c8869ed5b05d68176","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953052,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"262a26dc0b7c246f9a0fcfdadcf4e333","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953052,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"83e719203adde8aa5fd5aee49a58faec","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953052,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"bde0bd7cb79a55c668c067a2f9f90ef4","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953052,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"40538a56990df75a0afba7032f8b31a7","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953051,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"a36f33ba4056a8614e52c290b4535eee","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953052,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"e2b3c7db60e69b5bee66d46bc1a5988f","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953052,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"4ffbc4ce5cca1808cd63c013e041566a","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953052,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"6edd07462be06a67fdda61c0ad739337","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953052,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"ca9b5e96ab1d564545c396adabb29a60","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953052,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"e6bc6f4c80f775c7a00f94eb6bae10ce","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953051,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"3d025e6b18294bb4b291dee63feab7b2","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953051,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"ae0717c7f5ed7d1994f55b2030f35b1b5d66eb412388fc40b7dbb04a85591f2a","lane":"client-lint","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":57,"stamp":"e26dc0e9c2183a2a58333f84d11a0675","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}
Ci-Attestation: {"at":1794953762,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"30d2ee62e5544f34be4ae8e951abad8e156ad5b59407b5ea5e6ab7933bd71563","lane":"client-test-x86_64-unknown-linux-gnu","parents":["c114683962a8ef6a4b50124ababe988a8c849e7b"],"secs":627,"stamp":"d7dcf4e33357f485b8709efbe6b63ad6","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"61e2548740fcf4616c10848d21e65c6683957346","coverage":"all-tracked-applicable-files","diff":[".github/workflows/build-project.yaml","ci/local_gate.py","ci/test_local_gate.py","ci/test_macos_analysis.py","docs/ci-tooling.md"],"head":"3807e9b7e69c3dc4a598b10e7d6304021ccda974","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"1d2259d8fbdcbf0e85df9b12eb25bd9fcc5d32221e1e11532d99aa866cdb2aa5","tree":"bb1d3302c5ce223bfecc3a5d0eb64bc3bc2fce63"}}
@zackees zackees added pool-active Pool worker owns this PR; automated rebases must skip it and removed pool-active Pool worker owns this PR; automated rebases must skip it labels Nov 17, 2026
@zackees
zackees enabled auto-merge November 17, 2026 22:18
@zackees
zackees added this pull request to the merge queue Nov 17, 2026
Merged via the queue into master with commit 657a064 Nov 17, 2026
40 checks passed
@zackees
zackees deleted the ci/macos-speed-dedup-analysis branch November 17, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant