Repository navigation
tests: 6572 import-scan linearity tests use the CPU-clock helper (Part of #8423) - #8597
Merged
Merged
Conversation
…t of #8423) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
2 of 3 tasks
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
Checklist: done [c:e628cc47]
What
The shared CPU-clock helper (
tests/_timing.py), the ReDoS harnesses andlinear_assert.pyalready use it on main (#8523, #8548, #8580). This PR converts the next same-mechanism offenders (rawperf_counterdoubling-ratio linearity tests) tolinear_assert.assert_linearand removes 4 entries from the shrink-onlyWALL_CLOCK_OFFENDERSlist.Files:
test_elixir_{heredoc,sigil,string}_imports_6572.py,test_go_raw_string_imports_6572.py,test_no_raw_wall_clock_timing_8423.py.Class
Tests judging "fast"/"linear" on raw wall-clock differences. The helper's bound is 3.2x (was 6x in the Elixir tests); a real quadratic is ~4x so it still fails.
Sibling gaps
Still in
WALL_CLOCK_OFFENDERS(20):test_go_semicolon_imports_6572,test_c_kernel_vocab_8016(both fitassert_cpu_below), threetest_calls_out_*_6454, four intests/security_auditing/, nine intests/core_engine/, two intests/cobol_mainframe/. No burned-estate program needs any of them.Verification
Touched tests pass (80 passed) via plain
pytestfrom/tmp;ruff format --check,ruff check,audit_check.pyall clear.🤖 Generated with Claude Code