Repository navigation
tests: SARIF suppression tests call the real phase (Part of #8434) - #8619
Merged
Merged
Conversation
…#8434) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
This was referenced Nov 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8434 (slice 2 of 4).
What
test_sarif_ignored_paths_sanitizationandtest_sarif_ignored_rules_purgingintests/core_engine/test_galaxyscope.pycopied the Phase 10.5 suppression loop inline and asserted on their own copy, so they could not fail when the engine regressed. Both now callOrchestrator._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_purgerunsexecute_pipeline, which is real. Slice 1 (test_cicd_policy_enforcement_gates) landed in #8605.Mutation check
Reverted after each run.
file_data["equations"] = {}ingalaxyscope.py:test_sarif_ignored_paths_sanitizationfails (1 failed, 2 passed).file_data["is_ml_threat"] = Falseingalaxyscope.py:test_sarif_ignored_rules_purgingfails (1 failed, 2 passed).-k sarif).Class / Sibling gaps
Class: tests in
test_galaxyscope.pythat 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 andtest_sarif_sanitization_purgetests 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 --fastand--ratchets(test-only change). Pinnedruff format --checkpassed on the changed file.pytest -k sarifpassed.🤖 Generated with Claude Code