Repository navigation
tests: wall-clock gate resolves aliased imports and scans helpers (Part of #8423) - #8548
Merged
Merged
Conversation
…detector self-test (Part of #8423) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
This was referenced Nov 17, 2026
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: partial [c:e628cc47] -- gate hardened and offender list inventoried (items 2-3); the 27 listed offenders still need converting to
tests/_timing.py.Summary
The gate from #8537 already existed (
test_no_raw_wall_clock_timing_8423.py, shrink-onlyWALL_CLOCK_OFFENDERS). This slice closes its holes:import time as tandfrom time import perf_counter [as pc](was literaltime.X()only);tests/**/*.pyhelper, not justtest_*.py(skipstests/_timing.py,tests/tools/,tests/extraction/tools/scripts, golden fixtures);wall_clock_calls()with a synthetic-text self-test;.claude/rules/test-writing.md.The widened scan found no new offenders; the list is unchanged (27 files).
Class
A test judging elapsed time from a raw wall-clock difference. Siblings fixed here: aliased imports, helper files. Sibling gaps: none beyond the 27 listed offenders (burned-estate programs: none need them).
Offender inventory (item 3)
cobol_mainframe: test_pic_run_lengths_7169, test_translator_pic_runs_7169. core_engine: test_api_db_sink_probe_4108, test_cics_macro_level, test_dense_source_7501, test_dense_source_7504, test_embedded_credentials_probe_4108, test_global_env_mutation_probe_4108, test_prefetch, test_stego_imports_probe_4108, test_vectorized_math_probe_4108. extraction/languages: test_c_kernel_vocab_8016, test_calls_out_{haskell_juxtaposition,rust_matches_depth,rust_select_arms}6454, test_csharp_strict, test_elixir{heredoc,sigil,string}imports_6572, test_go{raw_string,semicolon}imports_6572, test_hlasm_macro_uses, test_hlasm_strict, test_perl_heredoc_imports_6572. security_auditing: test_redos_poison, test_secrets_shunt_4987, test_tls_bypass{dotnet_ps_wget,java}_6239.
Remaining slices
Convert offenders to
cpu_best_of/assert_cpu_below, by directory (extraction/languages 14, core_engine 9, security_auditing 4, cobol_mainframe 2), deleting each list entry.Tests / gates
Both test files pass (11) from an unrelated cwd; ruff check/format clean;
audit_check.pyall clear. No engine change, no golden bless.🤖 Generated with Claude Code