Skip to content

CI red on main: test-macos-shard (1), test-macos #1455

Closed

Description

@JacobStephens2

The latest push CI on main failed more than 30 minutes ago.

Failing commit: 1df25aeaa42cc42a4739bc564ba3e60a3ace7c51
Run: https://github.com/JacobStephens2/thirdshift/actions/runs/40552542970

Failed jobs: test-macos-shard (1), test-macos

test-macos-shard (1)

Recognizable failing test lines (up to 50):

2026-10-27T17:44:10.0758140Z         FAIL [  10.376s] (132/803) thirdshift::experiments timed_out_trials_keep_partial_usage_and_exportable_session_ancestry
2026-10-27T17:44:10.0799260Z     test timed_out_trials_keep_partial_usage_and_exportable_session_ancestry ... FAILED
2026-10-27T17:44:10.0917570Z     test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 83 filtered out; finished in 10.35s
2026-10-27T17:52:17.6949210Z         FAIL [  10.376s] (132/803) thirdshift::experiments timed_out_trials_keep_partial_usage_and_exportable_session_ancestry

test-macos

Recognizable failing test lines (up to 50):

No failing test names recognized in this job's logs.

Activity

  1. added
    bug
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Oct 27, 2026
  2. JacobStephens2 commented on Oct 27, 2026

    @JacobStephens2
    OwnerAuthor

    Triage Notes

    What we've established so far:

    • Tested the supplied checkout at 1df25aeaa42cc42a4739bc564ba3e60a3ace7c51, exactly the failing commit. This environment is Linux, with rustc 1.99.1 (58cf8f9c3 2026-10-13); a macOS runner is not available in this session.
    • Read the failed job log from gh run view 40552542970 --log-failed. The reported failure is tests/experiments.rs:400: partial usage input_tokens was Null, expected 11. The test-macos job failed because its shard failed.
    • Ran cargo test --test experiments timed_out_trials_keep_partial_usage_and_exportable_session_ancestry -- --exact --nocapture: passed, 1 test, 11.09 seconds after compilation.
    • Repeated the same unmodified test in four isolated processes sharing one CPU to probe startup contention. All four passed, in 31.49–31.65 seconds each. The exact stress command was:
    python3 - <<'PY'
    import os, subprocess
    os.sched_setaffinity(0, {min(os.sched_getaffinity(0))})
    command = ['target/debug/deps/experiments-9f87d2bf596e9e73', '--exact', 'timed_out_trials_keep_partial_usage_and_exportable_session_ancestry', '--nocapture']
    runs = [subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) for _ in range(4)]
    try:
        for index, run in enumerate(runs, 1):
            output, _ = run.communicate(timeout=120)
            print(f'RUN {index}: exit={run.returncode}\n{output}', flush=True)
    finally:
        for run in runs:
            if run.poll() is None:
                run.kill()
            run.wait()
    raise SystemExit(any(run.returncode for run in runs))
    PY
    • The test starts a real nested Trial, emits partial usage through the fake Harness, then sleeps beyond the one-second Trial timeout. That timeout also covers preparation before the Harness starts. A startup race is one hypothesis; loss of emitted evidence during timeout cleanup is another. The five passing runs do not distinguish or confirm either explanation for the failed macOS run.
    • Could not reproduce the exact missing-usage assertion. No source or test files were changed, and no PR was opened.

    What we still need from you (@JacobStephens2):

    • A failing unattended reproduction on macOS (including runner image/macOS version and whether it requires shard-level concurrency), or access to a macOS environment where the focused command above fails.
    • If it recurs, redacted failed-Trial artifacts before the fixture is deleted: each attempt's request.json, retained session/*.logs.jsonl and session/*.spans.jsonl, trace-context.json, plus captured stderr/result evidence. These would establish whether the fake Harness emitted the partial message before timeout and whether that usage reached the retained spans. The existing assertion output alone lacks that distinction, so changing the deadline or production cleanup would currently be a guess.
  3. added
    needs-info
    and removed
    in-progress
    on Oct 27, 2026
  4. JacobStephens2 commented on Oct 27, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Reproduced on macOS 26. The test fails deterministically on a Mac, even run alone. The cause: macOS scans each freshly copied evals/builds/<commit>/thirdshift on its first exec, for about 0.85s, and runs those scans one at a time. Each Trial paid that cost inside its 1s timeout, so the fake agent often hadn't printed its partial usage before the timeout fired. Linux doesn't do this scan, which is why it couldn't be reproduced there.

    Fix in #1457: the fixture runs each copied build once at setup time.

  5. added
    ready-for-human
    and removed
    needs-info
    on Oct 27, 2026
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

    bugready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions