Skip to content

Timing tests: convert 4 wall-clock offenders in extraction/languages to the CPU helper (Part of #8423) - #8707

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8423-20261119T2213Z
Nov 19, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8423-20261119T2213Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Slice 2 of 4 for #8423: convert 4 of the 5 wall-clock offenders in tests/extraction/languages/ to assert_cpu_below (CPU time, best of 3) with the same bounds (1/3/5 s), and delete them from WALL_CLOCK_OFFENDERS.

Class

A test judges "this is fast" with a raw perf_counter/monotonic difference. Siblings: the other 7 entries in WALL_CLOCK_OFFENDERS (cobol_mainframe, core_engine, security_auditing) belong to the other slices.

Checklist: partial -- 4 of 12 offenders converted; the Haskell file here and 7 in other directories remain

Lessons for agents

None new.

Remaining slices

  • tests/extraction/languages/test_calls_out_haskell_juxtaposition_6454.py: two local import time blocks (lines ~355, ~383, 3.0 s bounds) become assert_cpu_below; delete its entry from WALL_CLOCK_OFFENDERS (cut here only for the 5-file cap).

Tests

  • The 4 converted files plus test_no_raw_wall_clock_timing_8423.py: all passed (plain pytest from /tmp).
  • ruff format --check and ruff check clean on changed files.

No engine code touched, so no golden bless.

🤖 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 19, 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 19, 2026 22:24
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 22:28
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 370d6cf into main Nov 19, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8423-20261119T2213Z branch November 19, 2026 23:38
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