Skip to content

Benchmark tests: two robustness fixes from #197 reviews #198

Closed

Description

@ayhammouda

Two test-robustness fixes found in the final reviews of #197 (agentic harness). Neither affects the harness's behaviour, and CI is green without them. Both make a test fail in a setting CI does not use today. They land in PR 4 (sandbox, proxy, run script, air-gap runbook).

  1. The signal-warning tests assume SIGHUP is not ignored. tests/benchmarks/test_agentic_run.py around lines 458 and 488 hard-codes "SIGTERM, SIGHUP" in the expected warning line. When the test process inherits SIGHUP as SIG_IGN (under nohup or some service managers), run.py correctly skips SIGHUP and the line names SIGTERM only, so both tests fail. Fable reproduced this under nohup. Fix: work out the expected names in the test from signal.getsignal, or set and restore the dispositions explicitly. Found by Codex and Fable.
  2. The HTTP-date Retry-After test reads the wall clock twice. test_parse_retry_after_accepts_an_http_date formats now + 30 s (which drops sub-seconds), and parse_retry_after then reads the clock again. A pause of about a second between the two reads drops the result to 28 or below, so the test fails. Fix: pin the clock that parse_retry_after uses during the test. Found by CodeRabbit.

Refs #197.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions