Repository navigation
ci(macos-advisory): build the library test executable in one job and run it in another (#8391) - #16077
Conversation
…run it in another (#8391) The ripr library tests cannot fit one 40-minute macOS job: the test build takes about 30 minutes (dependencies are one minute of it, so a cache does not help) and the tests about 14. The first scheduled run after the lane was split (44991515890) failed the library job at its step deadline, as expected. lib-build now compiles the test executable and hands it over as an artifact; macos-advisory-lib-tests runs that executable from the package directory with CARGO_MANIFEST_DIR set, as Cargo would. The job limit and the evidence rules are unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoWbVm1GnYhvf9h8XC
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 16 minutes. View limit details
|
…8391) The first trial built the library test executable in 28 minutes, but the hosted log colors the word Executable, so the line-anchored pattern found nothing and the job reported no executable. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoWbVm1GnYhvf9h8XC
…the Cargo temp directory (#8391) The second trial's build passed the 34-minute step deadline; the first took 28 minutes. The build job only builds, so its step may run to 37 of the unchanged 40 minutes. The test job now sets the temp directory the way .cargo/config.toml [env] does for tests Cargo starts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoWbVm1GnYhvf9h8XC
…he other lanes fetch (#8391) The first complete native run failed one seam-inventory test on the environment gap its own message names; every other test lane runs this fetch. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoWbVm1GnYhvf9h8XC
… started test (#8391) Tests print nested test result lines, so a run cut short after one of them could have read as evidence. The lane entry names the build command the lane now runs. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoWbVm1GnYhvf9h8XC
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Subject: head 6cf7e355d8e163e1b0f5e00f3628a33c60463b58, the complete diff against e7eff2ae65 (workflow, lane policy entry, two contract tests, docs, changelog).
Inspected:
- Build leg: the executable path comes from Cargo's own
Executableline, confirmed against the hosted colored log; a missing log, status or executable fails the job. - Test job: runs after the matrix with
!cancelled()and the lane's own condition, so a failed build surfaces as a failed artifact fetch, not a skip. The environment matches what Cargo sets for the test binary: package directory,CARGO_MANIFEST_DIR,CARGO, and the temp directory from.cargo/config.toml. - Evidence rule: the first
running N testsline must equal passed + failed + ignored of the last result line. Checked against the real 21,106-test log and three cut-short shapes. - Contract tests and
check-workflows(run block size, action pin counts, job ids) pass locally. - Hosted run 45002983559 on
a040dc563eproduced a complete native result (21,079 passed, 23 failed, filed as #16104).
Not established on this head: a hosted run of the last two commits (one fetch step, the stricter result check); a dispatch is queued. The 37-minute build step can still be exceeded on a slow night, stated in the PR body. No automated reviewer has reviewed this head (CodeRabbit and Gemini were rate limited).
Generated by Claude Code
…tion check (#8391) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoWbVm1GnYhvf9h8XC
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Subject: head dee38703b897197181ee02cd0723ae22cb4f1ddb. Since the review of 6cf7e355d8 the only change is the rationale text of the macOS entry in policy/workflow_allowlist.txt (Devin's finding); check-workflows passes on it. The earlier inspection of the workflow, lane policy entry, contract tests and docs carries over unchanged.
The three Devin threads are answered and resolved: one repaired, two accepted as stated (the test job also waits for clippy, about 7 minutes of wall time; the handed-over executable is kept one day).
Not established on this head: a hosted macOS run of the commits after a040dc563e; the dispatch on 6cf7e355d8, which has the same workflow file as this head, is queued. CodeRabbit and Gemini were rate limited, so their review is missing.
Generated by Claude Code
…test job (#8391) The test job compiles nothing, so its Cargo home lacked the workspace's locked serde_json that one owner-pin test resolves offline (#16104). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoWbVm1GnYhvf9h8XC
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Subject: head 6ec910018bde14ebfb21916b25adc6fdcb929b0b. Since the review of dee38703b8 the only change is one cargo fetch --locked step for the workspace in the library test job, because that job compiles nothing and one owner-pin test resolves the workspace's locked serde_json 1.0.154 offline (reported from #16104, consistent with Cargo.lock). check-workflows passes. The earlier inspection carries over unchanged, and no review thread is open.
Not established on this head: a hosted macOS run of the commits after a040dc563e; a dispatch on this head is started. CodeRabbit and Gemini were rate limited, so their review is missing.
Generated by Claude Code
…he build (#8391) Clippy hit its 34-minute step deadline on a slow runner in run 45007528494. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoWbVm1GnYhvf9h8XC
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Subject: head f69d26d7bb7b3f983f8c44a32ddf74a162f63d97. Since the review of 6ec910018b the only change is the clippy step deadline, 34 to 37 minutes inside the unchanged 40-minute job limit, with the matching comment and docs/CI.md text. check-workflows passes. The earlier inspection carries over unchanged, and no review thread is open.
Hosted run 45007528494 on 6ec910018b exercised every other line of this workflow: build 33 minutes, library tests 21,080 passed and 22 failed under the stricter result check, and both environment-gap failures cleared. Clippy timed out at 34 minutes in that run, which is the reason for this change; clippy at 37 minutes has not been run.
CodeRabbit and Gemini were rate limited, so their review is missing.
Generated by Claude Code
The dispatches on d9d5f6e proved the fix; the lane itself is #16077's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoZMC5G2yepsLm5mr2
|
Qualification readback for Separate scheduled-main observation: on |
|
Qualification readback for Native macOS on current #16149 remains separate; these are hosted PR gates for the workflow split, not a macOS timing or product pass. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Final judgment for head f69d26d. The required PR qualification passed on this exact head: Ripr Rust Small Result success (2026-11-26 10:00 UTC), Admit PR Candidate accepted the source review recorded on this head on 2026-11-22, and both hosted test shards and their verifier ran on it. The earlier run, on 2026-11-22, ended when its runner received a shutdown signal during the workspace Clippy step (exit code 143); nothing in the head changed since. The head has no conflict, it has no open review thread, and no finding arrived after the request.
Reviewed again on this head before this marker: the macOS advisory lane builds the ripr library test executable in one job and runs it in a second job that downloads it, because the build (about 30 minutes) and the tests (about 14) did not fit one 40-minute job. The build job takes the executable's path from Cargo's own Executable unittests src/lib.rs (…) line and stops when it built none. The test job starts the executable from the package directory with CARGO_MANIFEST_DIR and the temp directory set as Cargo sets them, and its summary now requires the run to account for every test it started (passed + failed + ignored equals the first running N tests), where it earlier required one passed test. Outcomes stay advisory. The lane whitelist, the workflow allowlist note and the action-pin counts follow the second job. No product code changes.
This head is now enqueued for the queue's qualification of the actual merge composition. The queue result and the landed commit are read back separately.
Requested by Steven · project thread
Summary
macOS Advisory builds the
riprlibrary test executable in one job and runs it in another, so the library tests can reach a result inside the unchanged 40-minute job limit.Swarm / Source Boundary
Source-of-truth Links
Governing issue or accepted claim: #8391
Acceptance delta (one sentence): The macOS library tests run from an executable built by a separate job, so neither the 30-minute build nor the 14-minute test run has to share a 40-minute job with the other.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication):
claude/project-thread-hnx77fStack parent or prerequisite PR (if any): none (#15941 has merged)
Proposed replacement of PR (if any; not yet accepted): none
Why
#15941 split clippy and the library tests into two jobs. Clippy now gets a result (25 to 30 minutes). The library job cannot: in run 44952411009 dependencies compiled in one minute, the
riprtest build took 30, and the tests had run 17,132 of 20,887 in 9 minutes when the job ended. The first scheduled run on main after #15941 (44991515890) failed the library job at its step deadline, as that PR said it would.Scope
.github/workflows/macos-advisory.yml: matrix leglib-buildrunscargo test -p ripr --lib --no-run, copies the executable Cargo names, and uploads it (one-day artifact). New jobmacos-advisory-lib-testsdownloads it and runs it fromcrates/riprwithCARGO_MANIFEST_DIR,CARGOand the.cargo/config.tomltemp directory set. It also fetches the fallible-literal fixture dependencies every other test lane fetches.test result:line does not account for every test the firstrunning N testsline started. Tests print nested result lines, so "at least one passed" was not enough. Test outcomes stay advisory.policy/ci-lane-whitelist.toml, the tworepo-policycontract tests,docs/CI.md, changelog fragment.Scope Classification
Proof
check-workflowspass;repo-policyrust_only_routing(15) andworkflow_contracts(33) pass. The new evidence rule was run against the real hosted log (admits) and against three cut-short shapes (refuses).a040dc563e: build 24 minutes, executable handed over (109 MB), library tests finished in 518 s: 21,079 passed, 23 failed, 4 ignored. This is the first native macOS library result. The 23 failures are filed as macOS: 23 native library test failures on the first complete macos-15 run (non-UTF-8 names, process owner EPERM, resource cost) #16104.33eaf270c4built in 28 minutes but the pattern missed the executable in a colored log (fixed);d56fdabccfpassed the old 34-minute build deadline.6ec910018b(the workflow of this head except the clippy deadline): build 33 minutes, tests 21,080 passed, 22 failed, 4 ignored under the stricter result check. The two environment-gap failures cleared after the workspace and fallible-literal fetches (the workspace gap was reported by the macOS: 23 native library test failures on the first complete macos-15 run (non-UTF-8 names, process owner EPERM, resource cost) #16104 thread); one pilot timing test failed that passed before. Clippy hit its 34-minute step deadline in that run, so the clippy step now has the same 37 minutes as the build step. Clippy at 37 minutes has not been run.Limits
rustcthat needs about 14 GB (measured on Linux) on a hosted runner with about 7 GB. Builds took 24, 28, 31, 33 and 36 minutes and one exceeded 34 under the old deadline; clippy took 18 to over 34. A night slower than 37 minutes fails that job as missing evidence, so the lane will still miss on slow nights. A durable fix is a larger runner or a smaller unit-test crate, and neither is in this PR.cargo xtask precommitwas not run locally (it does not finish in this container); hosted qualification covers it.https://claude.ai/code/session_01SvmPmoWbVm1GnYhvf9h8XC
Generated by Claude Code