Skip to content

CI: full-suite negative control; a blind CodeQL scan fails (Part of #7155) - #7171

Merged
squid-protocol merged 8 commits into
mainfrom
feat/full-suite-control
Oct 30, 2026
Merged

squid-protocol merged 8 commits into
mainfrom
feat/full-suite-control

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7155, part of #7153. Follow-up to #7154.

What this does

full-suite gets a negative control. It was the last required gate with no failure proof. tests/tools/test_full_suite_control.py runs the required check's own shell from smoke-test.yml, so the test can't drift from it. It covers:

  • A part that failed, was cancelled, or reported nothing fails the check, even with a skip proof set
  • Skipped parts fail without a proof that the tree is green
  • The three ways to pass still work
  • The summary always reports, and a failing pytest fails its part (no pipe, || true or continue-on-error)

A blind CodeQL scan now fails. Before this, a PR scan that saw nothing read as clean, even under enforcement, which is the failure #7153 was about. Under --enforce, a scan with under half of main's results now fails and says why.

The unproven count goes from 20 to 19, and every required gate now has a failure proof.

Do the controls fail when something is broken?

Yes. Each sabotage was applied temporarily and isn't in this PR:

Sabotage Result
In smoke-test.yml, skipped always passes 3 tests failed
In smoke-test.yml, the check becomes true 15 tests failed
In smoke-test.yml, pytest ... || true 1 test failed
blind() returns False 2 tests failed

On real data, the 425-versus-405 scan isn't flagged as blind.

What this doesn't prove

  • That the suite is thorough. A plan can still narrow or skip it on a PR, and it reads green. That's for the weekly control PR (Pipeline controls: planted defects prove each gate can still go red #7155 part 2).
  • A PR that legitimately deletes over half the code would trip the blind check. That's unlikely, and failing is the safer side.
  • If main's analysis can't be fetched, the step still passes without checking. That fail-open path remains.

Cost

No new workflow or job. These run in full-suite in under a second.

Checks

  • Related tests (-k 'codeql or gate_controls or full_suite_control or workflow or classifier or critical_path'): 276 passed. Not the full suite locally.

🤖 Generated with Claude Code

squid-protocol and others added 8 commits October 30, 2026 10:53
A PR's analysis held no results (#6719: 0, main 405), so the check read 'No new alerts'
whatever the PR did. Diff-informed analysis goes off, and a report-only step compares the
PR's results with main's latest analysis in the files it changed. main is scanned daily.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner 2026-10-30: enforce errors and warnings only. Notes and the rules proven false here
are still reported. A result is new only if the file gained that rule, and code moved from
elsewhere on main doesn't count, so a shifted hash can't fail a PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Runs the required check's own shell from smoke-test.yml over every result, and pins that a
failing pytest fails its part. Required gates now all have a failure proof.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
No new results from a scan that saw nothing is how this gate went unnoticed for weeks. Under
--enforce, a PR scan with under half of main's results now fails instead of reading clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol
squid-protocol merged commit b5564ee into main Oct 30, 2026
34 checks passed
@squid-protocol
squid-protocol deleted the feat/full-suite-control branch October 30, 2026 18:37
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

squid-protocol added a commit that referenced this pull request Nov 4, 2026
…) (#7695)

On a Windows runner bash is the WSL launcher (shutil.which finds it; it drops the
step's env and keeps CRLF's \r). #7171 and the solver-check filter test ran a
workflow's bash step through subprocess, passed ubuntu-only PR CI, and turned the
Full Suite Gate red on main. An AST gate now requires a sys.platform / os.name /
platform.system() check in any tracked test file that spawns bash, sh or a .sh
script. Flags both pre-fix files; passes the 7 files that spawn a shell today.

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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