Skip to content

Fix CI on main: Experiment timeout tests outlast a busy macOS runner - #1560

Merged
JacobStephens2 merged 1 commit into
mainfrom
fix-ci-experiment-deadlines
Oct 28, 2026
Merged

JacobStephens2 merged 1 commit into
mainfrom
fix-ci-experiment-deadlines

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Main's CI went red on test-macos-shard (4) (run 40763918664). Two tests in tests/experiments failed:

  • a_timeout_is_failed_even_after_repository_changes_and_its_descendants_end failed with model Grader session failed.
  • code_graders::check_timeout_cleans_descendants_before_packet_and_remains_failed had Trials expected to succeed fail instead.

The tests passed --timeout 1. The Bar's timeout bounds the Trial sessions, but it also bounds code checks and the model Grader session. On a loaded macOS runner, the fake Grader's python3 and the fake Trial agent can each take more than a second.

This PR adds a SHORT_TIMEOUT of 4 seconds to the five tests that used 1 second. It also lengthens the sleeps those tests use to outlast the deadline:

  • the escaping descendant now writes after 7 s, and the test checks 4 s after the run;
  • the slow Grader now sleeps 10 s.

Fixes #1458. That issue's test, timed_out_trials_keep_partial_usage_and_exportable_session_ancestry, also used --timeout 1. On macOS the deadline could cut the fake agent off before it emitted its partial usage line, so input_tokens came back Null.

The PR has the test:macos label so the full macOS suite runs on it.

cargo nextest run --test experiments: 98 passed locally.

🤖 Generated with Claude Code

The Bar's timeout also bounds code checks and the model Grader session.
At one second, main's macOS shard timed out the fake Grader and the fake
Trials themselves (run 40763918664).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JacobStephens2 JacobStephens2 added the test:macos On a PR into main: run the full 4-shard macOS suite instead of the one-job macOS gate (#893) label Oct 28, 2026
@JacobStephens2
JacobStephens2 merged commit 8c18fff into main Oct 28, 2026
10 of 17 checks passed
@JacobStephens2
JacobStephens2 deleted the fix-ci-experiment-deadlines branch October 28, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:macos On a PR into main: run the full 4-shard macOS suite instead of the one-job macOS gate (#893)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant