Skip to content

fix(review): exclude deleted files and record scanner failures per file (#1140) - #2204

Merged
dan-petty merged 1 commit into
mainfrom
fix/1140-scanner-failed-manifest
Oct 25, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/1140-scanner-failed-manifest

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

  • Exclude deleted files from review pages and scanner targets.
  • Record scanner failures per file when a scanner audits multiple manifests or containers.
  • Report multi-file scanner status as ran; N of M files failed: <reason>.
  • Keep findings from valid files in the review report.
  • Mark only the failed file as failed in the coverage matrix.

Fail to Pass

Replay of the added tests against origin/main failed before this change:

$ devops ci fail-to-pass --base origin/main
  failed on base: tests.ai.review.test_runner::test_branch_review_excludes_deleted_files_from_pages_and_targets (AssertionError: assert 'deleted.yaml' not in ['deleted.yaml', 'keep.yaml'])
  failed on base: tests.test_review_static_analyzers::test_manifest_scan_with_twenty_one_files_and_two_failures_records_fractional_status (AssertionError: assert 'failed' == 'ran; 2 of 21 files failed')
  failed on base: tests.test_review_static_analyzers::test_two_manifest_scan_where_one_fails_admits_good_findings_and_records_per_file_status (AssertionError: assert 'failed' == 'ran; 1 of 2 files failed')
3 failed on base (3 failed and 30 passed in tests/ai/review/test_runner.py, tests/test_review_static_analyzers.py; 0 errored).

Closes #1140

…le (#1140)

Exclude deleted files from review pages and static scanner targets.
Record scanner failures per file instead of marking the whole tool failed.
Aggregate multi-file scanner status as "ran; N of M files failed".
Retain valid findings from successful files in the review report.

Closes #1140
@dan-petty
dan-petty marked this pull request as ready for review October 24, 2026 23:41
@dan-petty
dan-petty merged commit cdc5070 into main Oct 25, 2026
17 checks passed
@dan-petty
dan-petty deleted the fix/1140-scanner-failed-manifest branch October 25, 2026 00:55
dan-petty pushed a commit that referenced this pull request Oct 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.5.0](v0.4.3...v0.5.0)
(2026-10-25)


### Features

* **config:** devops config unset removes a key, and an unknown key's
error names the line and that command
([#2207](#2207))
([217e05b](217e05b)),
closes [#2201](#2201)
* **k8s:** devops k8s volume move copies a local-path claim to a volume
on another node and rebinds it, with argo cd paused and each step
checked ([#2199](#2199))
([8efee07](8efee07)),
closes [#2186](#2186)


### Bug Fixes

* **review:** exclude deleted files and record scanner failures per file
([#1140](#1140))
([#2204](#2204))
([cdc5070](cdc5070))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant