Repository navigation
Timing tests: convert 4 wall-clock offenders to the CPU helper (Part of #8423) - #8735
Merged
Merged
Conversation
#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]>
Contributor
|
No description provided. |
2 of 3 tasks
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8423
What
Converts 4 of the 7 remaining
WALL_CLOCK_OFFENDERStotests/_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(usesREDOS_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)
tests/cobol_mainframe/test_pic_run_lengths_7169.pythread_timedoes not count children), needs a different guardtests/core_engine/test_prefetch.pystop()returns promptly while a worker thread is parked: CPU time would not see a hang; needs a join with timeouttests/security_auditing/test_redos_poison.pymonotonicstall watchdog for worker processes, not a speed assertion; likely an allowlist entry with a reasonClass
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