Skip to content

test_a_fast_run_logs_its_duration_but_stays_quiet_in_the_session flakes on a slow Windows runner #808

Closed

Description

@fdaviddpt

Failed on pytest (windows-latest, 3.10), job 108485346624, on PR #807. That PR only touches markdown and jit-context index files, so it cannot have caused this.

AssertionError: a fast run must not surface a duration line in the session itself
assert '=== SESSION-START ===' not in '=== REMEMBE...'

The test assumes the real session-start hook finishes under the default 5s threshold, then asserts no duration line is surfaced. On a loaded windows-latest runner a real run can take longer than 5s, and the hook then correctly surfaces the line. The test's premise ("a fast run") is not controlled; it depends on the runner's wall clock. The same shape as #794, where a test relied on timing it did not pin.

Fix: make the premise deterministic. Set the threshold high (e.g. thresholds.session_start_warn_seconds = 600) for the "stays quiet" case, or inject the measured duration. The positive case already covers the loud path. Keep a positive control asserting the duration is still logged.

[AI-generated]

Activity

  1. added
    priority:low
    filed-by-loop
    lane-diagnostics
    on Sep 26, 2026
  2. self-assigned this
    on Sep 26, 2026
  3. added a commit that references this issue on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

filed-by-looplane-diagnosticspriority:low

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions