Skip to content

tests: SARIF suppression tests call the real phase (Part of #8434) - #8619

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

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8434-20261118T1629Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8434 (slice 2 of 4).

What

test_sarif_ignored_paths_sanitization and test_sarif_ignored_rules_purging in tests/core_engine/test_galaxyscope.py copied the Phase 10.5 suppression loop inline and asserted on their own copy, so they could not fail when the engine regressed. Both now call Orchestrator._apply_threat_suppression, the method the full and delta scans share. The stale "Phase 10.8 / lines 846-899" coverage-target text is dropped from the docstrings.

The Active Hemorrhage test (test_worker_amplifies_active_hemorrhage_post_hoc) already drives the real _process_file_worker, so it needed no change. test_sarif_sanitization_purge runs execute_pipeline, which is real. Slice 1 (test_cicd_policy_enforcement_gates) landed in #8605.

Mutation check

Reverted after each run.

  • Removed the path-exclusion file_data["equations"] = {} in galaxyscope.py: test_sarif_ignored_paths_sanitization fails (1 failed, 2 passed).
  • Removed file_data["is_ml_threat"] = False in galaxyscope.py: test_sarif_ignored_rules_purging fails (1 failed, 2 passed).
  • Unmutated: 3 passed (-k sarif).

Class / Sibling gaps

Class: tests in test_galaxyscope.py that re-implement an orchestrator phase inline and assert on the copy instead of calling the engine. Handled here: the two SARIF suppression tests. Already handled elsewhere: test_cicd_policy_enforcement_gates (#8605); the Active Hemorrhage and test_sarif_sanitization_purge tests were already real. Sibling gaps: none found in this file's SARIF/hemorrhage tests. Remaining slices (3 and 4 of #8434) cover other files and are outside this PR.

Gates

Not run: pr_gates --fast and --ratchets (test-only change). Pinned ruff format --check passed on the changed file. pytest -k sarif passed.

🤖 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.

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