Skip to content

main's CI goes red and stays red while Runs keep merging #1315

Closed

Description

@JacobStephens2

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

  1. PRs into main run 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 to main, unless a PR carries test:macos. Agent PRs never carry it. Platform-only failures (path canonicalization, binaries outside /usr/bin, posix_spawn behaviour) pass PR CI and first fail on main.
  2. Nothing reacts to a red main. Spec, Ticket and Pickup Runs merge on their own PR's checks. A red push run on main doesn't block later merges, and no Run is assigned to fix it. Failures pile up until a human notices.
  3. macOS shards stop at the first failure. Each fix uncovered the next failure, so one red main took four rounds to clear (Fix macOS test failures on main #1281).
  4. 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 main and 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) on main, so one run lists every failure.
  • Widen the macOS gate with cheap path/spawn-sensitive modules, or label PRs test:macos when 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

  1. added
    needs-triage
    on Oct 25, 2026
  2. JacobStephens2 commented on Oct 25, 2026

    @JacobStephens2
    OwnerAuthor

    #1316 fixed the eval test, and main then failed on macOS in proxy::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's O_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.

  3. JacobStephens2 commented on Oct 25, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    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-triage for 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.

  4. added
    bug
    on Oct 25, 2026
  5. JacobStephens2 commented on Oct 25, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Recommendation on the two open questions.

    1. Don't hold self-merges while main is red. On 2026-10-25, main stayed 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.

    2. 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 one CI red on main Ticket, labelled ready-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.

  6. JacobStephens2 commented on Oct 25, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    The Day shift agreed with the recommendation (2026-10-25). Self-merges aren't held while main is red. Pickup filing a "CI red on main" Ticket is #1342's job, and #1325 turns fail-fast off on main. Closing.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions