Repository navigation
Conversation
Add the removal of the `push:` trigger block, its paths filter included, to the Docker delta list in "Adopting the Release Chain", so a Docker repo following the section no longer keeps a push arm that cuts an image release on a bot merge. The PyPI paragraph is unchanged. Closes on promotion: #1497 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…2675) ## Summary `scripts/docker_lint.py` bound the live `--root` checkout read-only into every third-party lint container. Read-only stops a container writing back, not reading, so a git-ignored file on disk, such as a local secrets file beside a tracked placeholder, was readable inside each image. The wrapper now copies the tracked and unignored files into a temporary snapshot and binds that instead. Target discovery stays on the host against the real `--root`, so `git ls-files` still has its `.git`. The snapshot is staged under the checkout's own git directory, since the system temporary directory sits outside Docker Desktop for Linux's default file sharing, and the lookup reuses `local_review.git_dir()`. It carries an empty `.git` so actionlint still finds its project, copies a symlink as a link without following it, and skips a tracked path missing from disk. It is removed when the run ends, and a `SIGTERM` handler turns a termination into an exit so a run stopped by `timeout` or a harness removes it too. editorconfig-checker walks the mounted tree, so git-ignored build output such as `.artifacts/` no longer reaches it either. That closes #1185 as a side effect. The doc surfaces that described a checkout mount now describe the snapshot: `GOVERNANCE.md` "Running the Linters Locally (Known-Working Invocations)", `scripts/README.md` "`docker_lint.py`", and the `comment-and-doc-style` Skill's "Docker lint authorization", with its generated copies rebuilt. ## Verification - New tests: a git-ignored file and a git-ignored directory never reach the mounted tree, a symlink is copied as a link, a deleted tracked file is skipped, and the snapshot is gone after the run. Reverting the fix (passing `root` rather than the snapshot to `container_command`) fails all four. - A real run of all seven linters against this branch passes. - With a git-ignored CRLF file under `.artifacts/`, editorconfig-checker fails on the old wrapper and passes on this one. - The local gate set in `OPERATIONS.md` passes. - `timeout -s TERM` during the lint phase leaves no snapshot behind, and the same run with the handler registration removed leaves one. ## Local review findings still open The `local-strict-review` edit budget for the first push was spent with one finding open: - `introduced`: `tests/test_docker_lint.py` drives `exit_on_sigterm` directly, so nothing tests that `main()` registers it. Removing the registration line leaves the suite green. Closes on promotion: #1090, #1185 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Updates** * Docker lint containers now use a temporary, read-only snapshot containing tracked and unignored files. Git-ignored files stay on the host, and the snapshot is cleaned up when linting ends, including after an interrupt or termination. * Updated guidance to reflect the snapshot behavior. Approval requirements and restrictions on unconstrained Docker runs remain unchanged. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…2678) ## Summary - Widen `DISCUSSION_LINK` in `scripts/pr_review.py` so an open-findings entry linking its thread by an absolute pull request URL ending in `#discussion_r<id>` reads as linked, keeping the fragment-relative form. - The URL's pull request is not compared with the one being read. An id linking a thread this pull request does not carry is still counted unthreaded by `open_entry_ids` against the thread ids, so the widening hides no finding. - Add two tests with a constructed `example-owner/example-repo` URL: every entry linked absolutely prints no `FINDINGS WITH NO THREAD` block, and an absolutely linked id no thread carries is still counted. Both fail with the fix reverted. Closes on promotion: #2676 ## Verification - `python3 -m unittest discover -s tests -p 'test_*.py'`: 2411 tests, OK. - Fix reverted: both new tests fail. - `ruff format --check`, `ruff check`, `mypy`, `spec/validate.py`: clean. - `local-strict-review` pass recorded on the pushed content. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Removes the sentence in docs/fleet-map.md that described #699 and #700 as open issues, and the two link definitions only it used. Both issues are closed as completed. Closes on promotion: #2659 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 5.5 <[email protected]>
|
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❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2683 +/- ##
==========================================
+ Coverage 59.34% 59.58% +0.23%
==========================================
Files 16 16
Lines 8282 8316 +34
==========================================
+ Hits 4915 4955 +40
+ Misses 3367 3361 -6
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.
🟡 Changes recommended
Two unresolved docker_lint.py issues affect snapshot cleanup and deleted-file batching.
1 open finding
What changed in this PR
Promotes four fixes from develop to main, covering Docker lint isolation, review-link parsing, and documentation updates.
Changes:
- Mounts sanitized tracked-file snapshots for Docker linting.
- Supports absolute review-thread URLs.
- Updates workflow guidance and removes stale issue references.
| File | Summary |
|---|---|
tests/test_pr_review.py |
Tests absolute thread links. |
tests/test_docker_lint.py |
Tests snapshot isolation and cleanup. |
scripts/README.md |
Documents snapshot mounts. |
scripts/pr_review.py |
Accepts absolute thread URLs. |
scripts/docker_lint.py |
Stages and cleans tracked-file snapshots. |
GOVERNANCE.md |
Documents snapshot-based linting. |
docs/reusable-workflows.md |
Documents Docker trigger removal. |
docs/fleet-map.md |
Removes stale issue references. |
.github/skills/comment-and-doc-style/SKILL.md |
Updates lint guidance. |
.claude-plugin/fleet-skills/skills/comment-and-doc-style/SKILL.md |
Updates generated guidance. |
.claude-plugin/fleet-skills/.source-digests/comment-and-doc-style |
Updates the source digest. |
.agents/skills/comment-and-doc-style/SKILL.md |
Updates canonical skill guidance. |
🧠 Review effort: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
## Summary Fixes a Copilot finding on promotion #2683 against `scripts/docker_lint.py`. `git ls-files --cached` still lists a tracked file that has been deleted from the working tree, so: - a file-argument linter (markdownlint, cspell, shellcheck, shfmt, PSScriptAnalyzer) was handed a missing path and failed, and - a deleted extension-less tracked script made shebang discovery raise `CommandFailed`, failing the whole run. `ls_files` now 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 - Two new tests: a deleted tracked file is not a markdownlint target, and a deleted extension-less script does not fail shellcheck discovery. With the `ls_files` filter reverted, both fail, and so does the existing `test_snapshot_skips_a_tracked_file_deleted_from_disk`. At head, all 37 tests in `tests/test_docker_lint.py` pass. - ruff check, ruff format, mypy, and the prose gate are clean. - `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](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>

Summary
Promotes develop to main. It carries five changes:
push:block to the Docker delta list indocs/reusable-workflows.md"Adopting the Release Chain".docker_lint.pylint containers, so git-ignored files and build output never reach a linter.docker_lint.py's lint targets, answering this pull request's review finding.pr_review.py's overview sections.docs/fleet-map.md.Fixes #1497
Fixes #1090
Fixes #1185
Fixes #2676
Fixes #2659
🤖 Generated with Claude Code