Skip to content

tests: wall-clock gate resolves aliased imports and scans helpers (Part of #8423) - #8548

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8423-20261117T0222Z
Nov 17, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8423-20261117T0222Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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-only WALL_CLOCK_OFFENDERS). This slice closes its holes:

  • detects import time as t and from time import perf_counter [as pc] (was literal time.X() only);
  • scans every tests/**/*.py helper, not just test_*.py (skips tests/_timing.py, tests/tools/, tests/extraction/tools/ scripts, golden fixtures);
  • detector now a pure wall_clock_calls() with a synthetic-text self-test;
  • rule documented in .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.py all clear. No engine change, no golden bless.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 16, 2026 21:24
…detector self-test (Part of #8423)

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 17, 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 17, 2026 02:26
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 02:26
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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