Skip to content

Timing tests: one shared CPU-clock helper and a check that refuses raw wall-clock asserts (class sweep) #8423

Closed

Description

@squid-protocol

What keeps happening

Five of the 21 red-main issues from Nov 8–12 were a test that judges elapsed time on a loaded runner. Each was fixed on its own, a different way:

Red main Fix How it was fixed
#8097 #8098 linearity tests: shared retrying doubling-ratio helper
#8132 #8133 assert_linear meta-test on a fake clock
#8210 #8211 HLASM ReDoS asserts take the fastest of three runs
#8218 #8219 Smoke shard-plan growth test uses synthetic durations
#8096 #8099, #8128 proof_sweep retries a slow det case once

A sixth of the same kind failed a PR on Nov 11: the OCaml profile's regex took 1.16 s against the fixed 1.0 s limit in tests/extraction/languages/_strict_harness.py (run 43061953131).

To do (the whole class)

Not in scope: the per-test time ratchet (tests/tools/time_ratchet.py) already re-measures once and scales to each test's baseline.

Activity

  1. added
    priority: high
    scope:infra
    on Nov 13, 2026
  2. squid-protocol commented on Nov 16, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-11-20T05:23Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

  3. squid-protocol commented on Nov 16, 2026

    @squid-protocol
    OwnerAuthor

    #8523 merged: a partial slice of [c:e628cc47] "One helper for "this must be fast": CPU time (time.thread_time / process_time), fastest of three, with the limit stated once. The ReDoS harnesses (_strict_harness.py, _extraction_harness.py) a"; left: the gate and offender list (items 2-3) and the other offenders remain (promoter-bot)

  4. added 2 commits that reference this issue on Nov 16, 2026
  5. squid-protocol commented on Nov 17, 2026

    @squid-protocol
    OwnerAuthor

    #8548 merged: a partial slice of [c:e628cc47] "One helper for "this must be fast": CPU time (time.thread_time / process_time), fastest of three, with the limit stated once. The ReDoS harnesses (_strict_harness.py, _extraction_harness.py) a"; left: gate hardened and offender list inventoried (items 2-3); the 27 listed offenders still need converting to tests/_timing.py. (promoter-bot)

  6. squid-protocol commented on Nov 17, 2026

    @squid-protocol
    OwnerAuthor

    #8580 merged: a partial slice of [c:e628cc47] "One helper for "this must be fast": CPU time (time.thread_time / process_time), fastest of three, with the limit stated once. The ReDoS harnesses (_strict_harness.py, _extraction_harness.py) a"; left: 24 other listed offenders in WALL_CLOCK_OFFENDERS still use raw wall-clock differences (see Sibling gaps). (promoter-bot)

  7. squid-protocol commented on Nov 19, 2026

    @squid-protocol
    OwnerAuthor

    #8696 merged: a partial slice of [c:07091220] "List every current offender in this issue so the sweep has an end."; left: 12 listed offenders remain in WALL_CLOCK_OFFENDERS (list below), plus the sibling gaps (promoter-bot)

  8. squid-protocol commented on Nov 20, 2026

    @squid-protocol
    OwnerAuthor

    #8711 merged: a partial slice of [c:07091220] "List every current offender in this issue so the sweep has an end."; left: the other offenders in WALL_CLOCK_OFFENDERS remain for later slices. (promoter-bot)

  9. squid-protocol commented on Nov 20, 2026

    @squid-protocol
    OwnerAuthor

    #8735 merged: a partial slice of [c:07091220] "List every current offender in this issue so the sweep has an end."; left: 3 offenders left (pic_run_lengths, prefetch, redos_poison) (promoter-bot)

  10. squid-protocol commented on Nov 20, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance met: helper (#8597), gate (#8660), and the last offenders converted/allowlisted with reasons (#8740); the shrink-only list is empty and every remaining raw-clock use is in WALL_CLOCK_ALLOWED with a stated reason.

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

    claim:melekpriority: highscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions