8000 Gates: an iterator's .skip(n) in Rust is not a test suppression by adeelahmad · Pull Request #95 · adeelahmad/aloop · GitHub
[go: up one dir, main page]

Skip to content

Gates: an iterator's .skip(n) in Rust is not a test suppression - #95

Merged
adeelahmad merged 1 commit into
masterfrom
claude/project-thread-qerfr9
Oct 20, 2026
Merged

adeelahmad merged 1 commit into
masterfrom
claude/project-thread-qerfr9

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Before: the Rust suppression grep in assert_no_suppression also matched .skip( and xit(, which are JS patterns. A Rust CLI's std::env::args().skip(1) was therefore refused as a "test-suppression pattern". This happened to one GREEN worker in each of live runs 46, 47 and 48, and each one cost a retry. Meanwhile #[ignore = "slow"], a real Rust suppression, was not caught because the grep looked only for the exact #[ignore].

After: Rust files are checked only for Rust's own attributes: #[ignore] (with or without a reason) and #[cfg(not(test))]. Python, Go and JS keep their patterns, including .skip( and xit(. Real suppressions are caught more strictly than before, and the iterator call no longer blocks.

How:

  • Changed the regex in plugin/bin/_gatelib.sh.
  • The final-gate persona names the same Rust patterns, as the contract test requires.
  • suppression-contract.test.py now runs assert_no_suppression on fixtures. It checks that .skip(1) passes, and that #[ignore], #[ignore = ".."], cfg(not(test)) and JS it.skip( are all refused. It was RED before the fix.
  • make ci is green locally (78/78).

Generated by Claude Code

Live runs 46-48: every GREEN self-check was refused once because the Rust
suppression grep matched args().skip(1), a JS pattern. Rust now checks its
own attributes only: #[ignore] (also #[ignore = "reason"], previously
missed) and #[cfg(not(test))].

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QxyVf3NgwsgRyYpBgDDTC
@adeelahmad
adeelahmad marked this pull request as ready for review October 20, 2026 09:02
@adeelahmad
adeelahmad merged commit 5c81e3f into master Oct 20, 2026
5 checks passed
adeelahmad pushed a commit that referenced this pull request Oct 20, 2026
adeelahmad pushed a commit that referenced this pull request Oct 20, 2026
adeelahmad pushed a commit that referenced this pull request Oct 20, 2026
adeelahmad pushed a commit that referenced this pull request Oct 20, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QxyVf3NgwsgRyYpBgDDTC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0