Skip to content

OSWorld2 proxy: a start that runs out of time reports "docker inspect was not asked" instead of "did not answer" #837

Description

@harenome

Priority

P3

Components

  • catalogue (OSWorld2 proxy, app/nullius/catalogue/benchmarks/osworld2/proxy.py)

Evidence

test_osworld2_proxy fails under load:

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.

Dependencies and related

Activity

  1. added
    bug
    P3
    on Dec 4, 2026
  2. added theissue type on Dec 4, 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

    P3bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions