Skip to content

Timing tests: convert 4 wall-clock offenders to the CPU helper (Part of #8423) - #8735

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8423-20261120T0306Z
Nov 20, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8423-20261120T0306Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8423

What

Converts 4 of the 7 remaining WALL_CLOCK_OFFENDERS to tests/_timing.py (assert_cpu_below: CPU time, fastest of three, limit stated once) and drops their list entries: test_cics_macro_level, test_vectorized_math_probe_4108, test_secrets_shunt_4987 (uses REDOS_LIMIT_S), test_translator_pic_runs_7169 (time check via the helper; the tracemalloc peak stays a single run). Same limits as before (2.0 s, 5 s, 1.0 s, 0.5 s).

Current offender list (3 left, the sweep's end)

File Why it is not converted here
tests/cobol_mainframe/test_pic_run_lengths_7169.py first test converts the same way; the second bounds a subprocess scan at 300 s wall (thread_time does not count children), needs a different guard
tests/core_engine/test_prefetch.py asserts stop() returns promptly while a worker thread is parked: CPU time would not see a hang; needs a join with timeout
tests/security_auditing/test_redos_poison.py a monotonic stall watchdog for worker processes, not a speed assertion; likely an allowlist entry with a reason

Class

Test that asserts on a raw wall-clock difference. None of the 7 files is tied to a burned-estate program.

Checklist: partial [c:07091220] -- 3 offenders left (pic_run_lengths, prefetch, redos_poison)

Sibling gaps

The three rows above.

Lessons for agents

None new.

🤖 Generated with Claude Code

#8423)

cics_macro_level, vectorized_math_probe, secrets_shunt and translator_pic_runs
now assert through tests/_timing.py; their WALL_CLOCK_OFFENDERS entries are gone.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 20, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 20, 2026 03:32
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 20, 2026 03:42
@squid-shepherd
squid-shepherd Bot merged commit cd2d0c5 into main Nov 20, 2026
59 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8423-20261120T0306Z branch November 20, 2026 04:23
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant