Skip to content

Timing tests: convert the Haskell juxtaposition ReDoS tests to assert_cpu_below (Part of #8423) - #8711

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8423 (slice 3 of 4). Converts the two time.perf_counter() difference assertions in tests/extraction/languages/test_calls_out_haskell_juxtaposition_6454.py (test_continuation_join_is_redos_immune, test_prime_masking_is_redos_immune) to tests/_timing.assert_cpu_below, same 3.0 s bounds, payloads built outside the timed closure (pattern from #8707). Drops the file from WALL_CLOCK_OFFENDERS.

Class / Sibling gaps

Class: tests asserting "this is fast" with a raw wall-clock difference, which a loaded runner stretches (#8423). Members in this PR: both timing tests in the Haskell juxtaposition file (the file has no others). Sibling gaps: the remaining entries in WALL_CLOCK_OFFENDERS in tests/tools/test_no_raw_wall_clock_timing_8423.py are other files, handled by other slices (same mechanism, one file each, kept apart by the 5-file rule and to avoid conflicts on the shared frozenset); status: open, source: that list.

Checklist: partial [c:07091220] -- the other offenders in WALL_CLOCK_OFFENDERS remain for later slices.

Tests: the file (131 passed with the guard test), ruff format --check clean.

Cross-repo: none.

🤖 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:27
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (1235b0b) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 19, 2026 23:44
auto-merge was automatically disabled November 19, 2026 23:44

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 19, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels 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 23:48
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 19, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 23:50
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 20, 2026
@squid-shepherd
squid-shepherd Bot merged commit bfe571b into main Nov 20, 2026
65 of 84 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8423-20261119T2217Z branch November 20, 2026 01:06
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