Skip to content

Give live usage-limit stop tests 5s before the agent continues - #1441

Merged
JacobStephens2 merged 1 commit into
mainfrom
fix-ci
Oct 27, 2026
Merged

JacobStephens2 merged 1 commit into
mainfrom
fix-ci

Conversation

@JacobStephens2

Copy link
Copy Markdown
Owner

Closes #1439.

main went red in CI run 40507532942 (41e0175) on experiments::a_baseline_built_before_this_change_pauses_at_its_live_warning, macOS shard 4 only. The test gave the monitor 0.3s to stop the warned Trial, and a loaded runner missed it.

  • tests/experiments.rs: sleep 0.3 to sleep 5 after the Baseline's allowed_warning.
  • tests/trial.rs: sleep 0.5 to sleep 5 in both Codex native-warning tests, which had the same shape.

Passing runs are no slower: the monitor kills the agent during the sleep (the experiments test finishes in 4.2s locally). With Monitor::check and the plan_limit_reached stop in src/session/recording.rs disabled, all three tests fail.

The experiments Baseline warning test allowed 0.3s and the two Codex
native-warning Trial tests 0.5s between the warning and the marker that
proves the agent kept working. A loaded macOS runner missed that window in
CI run 40507532942. Each test still fails with the live limit check removed.
@JacobStephens2
JacobStephens2 merged commit 662f223 into main Oct 27, 2026
7 checks passed
@JacobStephens2
JacobStephens2 deleted the fix-ci branch October 27, 2026 14:03
This was referenced Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Live usage-limit stop tests give the monitor 0.3-0.5s and flake on loaded macOS runners

1 participant