Repository navigation
Drop Tracked Files Deleted From Disk From docker_lint.py Targets - #2684
Conversation
`git ls-files --cached` still lists a tracked file deleted from the working tree, so a file-argument linter was handed a missing path, and a deleted extension-less script failed shebang discovery outright. `ls_files` now drops any listed path absent from disk, which covers target discovery, shebang discovery, and the snapshot alike. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`ls_files` already drops a tracked path absent from disk, so the snapshot's own existence check could no longer skip anything. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2684 +/- ##
===========================================
- Coverage 59.58% 59.58% -0.01%
===========================================
Files 16 16
Lines 8317 8316 -1
===========================================
- Hits 4956 4955 -1
Misses 3361 3361
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
The focused change is covered by regression tests, with no unresolved issue requiring a change.
0 open findings
What changed in this PR
This PR fixes Docker lint target discovery for tracked files deleted from the working tree, building on the earlier tracked-file snapshot change.
Changes:
- Exclude missing paths from lint targets and snapshot staging.
- Add regression tests for deleted Markdown files and extensionless shell scripts.
| File | Description |
|---|---|
scripts/docker_lint.py |
Filters missing paths during discovery and removes the redundant snapshot check. |
tests/test_docker_lint.py |
Tests both affected discovery paths. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…ain (#2683) ## Summary Promotes develop to main. It carries five changes: - #2673 Adds the removal of the `push:` block to the Docker delta list in `docs/reusable-workflows.md` "Adopting the Release Chain". - #2675 Mounts a snapshot of tracked files, rather than the live checkout, into `docker_lint.py` lint containers, so git-ignored files and build output never reach a linter. - #2684 Drops tracked files deleted from disk from `docker_lint.py`'s lint targets, answering this pull request's review finding. - #2678 Reads an absolute-URL thread link in `pr_review.py`'s overview sections. - #2661 Stops calling closed issues #699 and #700 open in `docs/fleet-map.md`. Fixes #1497 Fixes #1090 Fixes #1185 Fixes #2676 Fixes #2659 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
Fixes a Copilot finding on promotion #2683 against
scripts/docker_lint.py.git ls-files --cachedstill lists a tracked file that has been deleted from the working tree, so:CommandFailed, failing the whole run.ls_filesnow drops any listed path absent from disk, which covers target discovery, shebang discovery, and the snapshot.stage_snapshot's own existence check could no longer skip anything, so it is removed.Verification
ls_filesfilter reverted, both fail, and so does the existingtest_snapshot_skips_a_tracked_file_deleted_from_disk. At head, all 37 tests intests/test_docker_lint.pypass.local-strict-review: round 1 raised one introduced design finding (the redundant snapshot check), fixed in the second commit. Round 2 raised none. Both passes are recorded.🤖 Generated with Claude Code