Skip to content

tests: 6572 import-scan linearity tests use the CPU-clock helper (Part of #8423) - #8597

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8423-20261118T1134Z
Nov 18, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8423-20261118T1134Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8423

Checklist: done [c:e628cc47]

What

The shared CPU-clock helper (tests/_timing.py), the ReDoS harnesses and linear_assert.py already use it on main (#8523, #8548, #8580). This PR converts the next same-mechanism offenders (raw perf_counter doubling-ratio linearity tests) to linear_assert.assert_linear and removes 4 entries from the shrink-only WALL_CLOCK_OFFENDERS list.

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 fit assert_cpu_below), three test_calls_out_*_6454, four in tests/security_auditing/, nine in tests/core_engine/, two in tests/cobol_mainframe/. No burned-estate program needs any of them.

Verification

Touched tests pass (80 passed) via plain pytest from /tmp; ruff format --check, ruff check, audit_check.py all clear.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 18, 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 18, 2026 11:39
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 18, 2026 11:39
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 3a8bd58 into main Nov 18, 2026
59 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8423-20261118T1134Z branch November 18, 2026 11:44
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