You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI red on main: test-macos-shard (1), test-macos #1455
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, subprocessos.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.
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.
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.
Activity
JacobStephens2 commentedon Oct 27, 2026
Triage Notes
What we've established so far:
1df25aeaa42cc42a4739bc564ba3e60a3ace7c51, exactly the failing commit. This environment is Linux, withrustc 1.99.1 (58cf8f9c3 2026-10-13); a macOS runner is not available in this session.gh run view 40552542970 --log-failed. The reported failure istests/experiments.rs:400: partial usageinput_tokenswasNull, expected11. Thetest-macosjob failed because its shard failed.cargo test --test experiments timed_out_trials_keep_partial_usage_and_exportable_session_ancestry -- --exact --nocapture: passed, 1 test, 11.09 seconds after compilation.What we still need from you (@JacobStephens2):
request.json, retainedsession/*.logs.jsonlandsession/*.spans.jsonl,trace-context.json, plus captured stderr/result evidence. These would establish whether the fake Harness emitted thepartialmessage 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.JacobStephens2 commentedon Oct 27, 2026
Reproduced on macOS 26. The test fails deterministically on a Mac, even run alone. The cause: macOS scans each freshly copied
evals/builds/<commit>/thirdshifton 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.
Warm copied Experiment builds before timed Trials on macOS (#1455)