Repository navigation
Closed
Labels
Description
What happened
main's push CI has failed on every merge since at least #1289 (2026-10-25 01:12 New York), about 15 merges in a row, and Runs kept merging on top of it. Three tests were failing:
| Test | Platform | Introduced by | Cause |
|---|---|---|---|
session::recording::tests::recording_uses_the_input_session_prompt_for_skill_warnings |
macOS | #1296 | ran /bin/true, which macOS doesn't have |
evals::repository::tests::complete_trial_repository_preserves_reviewed_patch_inputs_and_custom_branches |
macOS | #1300 | compared a canonical path against a /var/... temp path (/var → /private/var) |
experiments::stop_and_resume_preserve_finished_trials_and_refuse_a_changed_bar |
Linux | race, surfaced on #1312 | fakes' append_record truncated then wrote the record, so an unlocked reader or a fake stopped mid-write saw an empty file |
Earlier the same day #1122 (#977) broke four other macOS tests the same way (/var symlink, ENOEXEC through /bin/sh), fixed in #1281.
Why main gets these
- PRs into
mainrun only the macOS gate (Run the full macOS suite on main and nightly, with a one-job macOS gate on PRs into main #893). The full macOS suite runs only on pushes tomain, unless a PR carriestest:macos. Agent PRs never carry it. Platform-only failures (path canonicalization, binaries outside/usr/bin,posix_spawnbehaviour) pass PR CI and first fail onmain. - Nothing reacts to a red
main. Spec, Ticket and Pickup Runs merge on their own PR's checks. A red push run onmaindoesn't block later merges, and no Run is assigned to fix it. Failures pile up until a human notices. - macOS shards stop at the first failure. Each fix uncovered the next failure, so one red
maintook four rounds to clear (Fix macOS test failures on main #1281). - Flaky fakes. Fake record files weren't replaced atomically. The Linux race passed on its own PR and failed after merge.
Options
- Have a Run, or the next Pickup, notice a red push run on
mainand open (or take) a "CI red on main" Ticket. Precedent: CI red on main: test-macos, test #275, CI red on issue-427: test-macos #559. - Hold self-merges while
main's latest push run is red, unless the PR fixes it. - Run the macOS shards with
--no-fail-fast(or--max-fail) onmain, so one run lists every failure. - Widen the macOS gate with cheap path/spawn-sensitive modules, or label PRs
test:macoswhen they touch spawning or temp paths. - Revisit consider dropping macos support #939 (drop macOS support), which would remove the largest class.
Fixed for now in #1316.
Activity
JacobStephens2 commentedon Oct 25, 2026
#1316 fixed the eval test, and
mainthen failed on macOS inproxy::tests::an_allowed_host_is_reached_through_the_proxy. This one was a product bug, not just a test problem. On macOS, accepted sockets inherit the listener'sO_NONBLOCK, so Trial proxy tunnels died at their first idle read. The test passed whenever the client won a race. That race is a fifth way these get through: a platform bug whose test only fails some of the time passes PR CI even with the full macOS suite. Fix: #1320.JacobStephens2 commentedon Oct 25, 2026
Triage: the reversible part is split out as #1325 (macOS shards on main run with fail-fast off, so one red run lists every failure). This issue stays
needs-triagefor the policy questions: whether to hold self-merges while main is red, and whether a Run should file or take a "CI red on main" Ticket (precedent #275, #559). See also #939.JacobStephens2 commentedon Oct 25, 2026
Recommendation on the two open questions.
Don't hold self-merges while
mainis red. On 2026-10-25,mainstayed red for about 15 merges, and none of those PRs caused the macOS failures except Make Recording own Interpretation construction #1296 and Complete Trial repository preparation under isolated Git policy #1300. A hold would have stopped every Run for hours, including the PR that fixes it, unless thirdshift could tell a fix PR apart, which it can't do reliably. The hold costs more than the red does.Do have the factory file the red. When
main's latest push run has been red for longer than one CI cycle, the next Pickup pass files oneCI red on mainTicket, labelledready-for-agent:It's reversible: it's just an issue the factory files and takes.
On agreement, (2) becomes a Ticket and this issue closes. #1325 covers the rest.
JacobStephens2 commentedon Oct 25, 2026
The Day shift agreed with the recommendation (2026-10-25). Self-merges aren't held while
mainis red. Pickup filing a "CI red on main" Ticket is #1342's job, and #1325 turns fail-fast off on main. Closing.