Skip to content

ci(macos-advisory): build the library test executable in one job and run it in another (#8391) - #16077

Merged
EffortlessSteven merged 8 commits into
mainfrom
claude/project-thread-hnx77f
Nov 26, 2026
Merged

EffortlessSteven merged 8 commits into
mainfrom
claude/project-thread-hnx77f

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

macOS Advisory builds the ripr library 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

  • swarm-only CI, runner, routing, source-of-truth, or agent-operating surface

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-hnx77f
Stack 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 ripr test 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 leg lib-build runs cargo test -p ripr --lib --no-run, copies the executable Cargo names, and uploads it (one-day artifact). New job macos-advisory-lib-tests downloads it and runs it from crates/ripr with CARGO_MANIFEST_DIR, CARGO and the .cargo/config.toml temp directory set. It also fetches the fallible-literal fixture dependencies every other test lane fetches.
  • Evidence rules: a missing log, status or executable fails the job, and so does a run whose last test result: line does not account for every test the first running N tests line started. Tests print nested result lines, so "at least one passed" was not enough. Test outcomes stay advisory.
  • The clippy and build steps may each run 37 of their job's unchanged 40 minutes (they were 34).
  • policy/ci-lane-whitelist.toml, the two repo-policy contract tests, docs/CI.md, changelog fragment.

Scope Classification

  • One architectural seam

Proof

Limits

  • The build is one rustc that 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 precommit was not run locally (it does not finish in this container); hosted qualification covers it.

https://claude.ai/code/session_01SvmPmoWbVm1GnYhvf9h8XC


Generated by Claude Code

…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
@EffortlessSteven EffortlessSteven self-assigned this Nov 22, 2026
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 146 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: e9947fca-5907-4f01-9fa7-7b1a8bec8e70
Commits

Reviewing files that changed from the base of the PR and between e7eff2a and f69d26d.

Files selected for processing: 7

  • .github/workflows/macos-advisory.yml
  • changelog.d/8391-macos-advisory-build-run-split.md
  • docs/CI.md
  • policy/ci-lane-whitelist.toml
  • policy/workflow_allowlist.txt
  • tools/repo-policy/tests/rust_only_routing.rs
  • tools/repo-policy/tests/workflow_contracts/workflow_action_pins.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

…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
EffortlessSteven marked this pull request as ready for review November 22, 2026 09:17

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Executable line, 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 tests line 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 a040dc563e produced 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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

Comment thread .github/workflows/macos-advisory.yml Resolved
Comment thread .github/workflows/macos-advisory.yml Resolved
Comment thread .github/workflows/macos-advisory.yml Resolved
…tion check (#8391)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmoWbVm1GnYhvf9h8XC

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

EffortlessSteven pushed a commit that referenced this pull request Nov 22, 2026
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

EffortlessSteven commented Nov 23, 2026 •

Copy link
Copy Markdown
Member Author

Qualification readback for f69d26d7bb7b3f983f8c44a32ddf74a162f63d97: run 45036345620 admitted the then-current merge preview a1950aa9 and both shards plus verifier passed. The Rust gates job stopped during strict workspace Clippy from a runner shutdown (exit 143, not a Clippy diagnostic). The required aggregate is red. The earlier same-head run 45014153239 stopped at final admission binding, so its green Rust jobs cannot fill this gap. The split macOS logs at 6ec91001 and d9d5f6ea are useful historical evidence; their short-lived test binaries are no longer listed and neither is current integrated #16149. The blocker is one fresh exact integration qualification, then native queue; #16149's own macOS run remains separate after this lands. No run dispatched.

Separate scheduled-main observation: on 3c5dd25e, macOS advisory 45336749367 passed Clippy, but the library test step hit its 34-minute limit still in compilation; the log shows orphan rustc and cargo terminated in cleanup and no native test result. This is precise evidence of the existing combined lane's compile-time boundary, not a failing library assertion and not qualification of this PR or #16149. Do not join it to the old head's receipts.

Copy link
Copy Markdown
Member Author

Qualification readback for f69d26d7bb7b3f983f8c44a32ddf74a162f63d97: the fresh required Result passed, with Rust gates, both hosted shards and shard verification successful. This supersedes the earlier runner-shutdown result for this head. All three inline review threads are resolved. The admitted PR preview was 42456122734141c91078d74e025f96d1d92f1d69 on 5233842be7ecf6dd0ce88d5ce089a716fe8c7a6c. main was 13 commits ahead at 3f546f6a6c654a2e284fbda00ef4e4a3c906d235; none of the seven changed paths overlapped. This supports the existing owner’s next protected-queue check, not qualification of a new merge group. No queue ref was visible and none was created here.

Native macOS on current #16149 remains separate; these are hosted PR gates for the workflow split, not a macOS timing or product pass.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants