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
OSWorld2 proxy: a start that runs out of time reports "docker inspect was not asked" instead of "did not answer" #837
FAIL: test_a_proxy_that_stops_or_never_answers_is_an_error_and_is_removed
AssertionError: 'did not answer' not found in 'docker inspect was not asked: the time given for it ran out'
_docker rounds the time left to 0.1 s. With 0 to 50 ms left it rounds to 0 and refuses the call.
_ready sees time still left and re-raises that refusal, not "the proxy ... did not answer in its start's N s".
Same in a real run, in the last 50 ms of the 300 s start.
With 51 to 100 ms left, the call gets 0.1 s, overrunning the start.
_ready connects with a full 1 s and sleeps 0.2 s however little time is left.
test_a_start_with_slow_answers_ends_within_its_time_however_docker_answers already accepts both messages.
Reproduction
Module on one CPU shared with 3 busy loops, nice -n 10: 3 of 25 runs failed. Unloaded: 0 of 30; with a 2-core hog unpinned: 0 of 30.
Expected
A start that runs out of time says the proxy did not answer in its start's time.
Acceptance
_docker refuses a call only once no time is left, and gives it no more than is left.
_ready connects and sleeps within the time left.
A test with subprocess.run mocked covers 40 ms left, the deadline and past it.
Activity