Repository navigation
Give install-tools a JSON Report Mode a Program Can Read - #2259
Conversation
install-tools.sh --json and install-tools.ps1 -Json write the report as one object carrying the table's rows, each tool's own notes, and the mechanism that moves it, so a downstream reporter no longer has to parse the table. The flag applies only to the report and is refused beside any other action. Fixes #1645 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sion On a WSL distribution no apt upgrade moves docker, so its row reports the docker-desktop mechanism. A Windows row whose winget versions do not resolve to one reports installed as null rather than a joined list, its note naming them, and a note raised while a tool's state is read now files under it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The bash encoder drops bytes that are not UTF-8 through iconv rather than switching locale per string, and the PowerShell report escapes every non-ASCII character, so neither can emit text a UTF-8 reader rejects. The Windows README names docker-desktop and what source holds there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
glibc iconv passes some sequences that are not UTF-8, so the encoder now decodes UTF-8 itself, writes every non-ASCII character as an escape, and drops what does not decode, matching the Windows side's ASCII output with no external command. mechanism is defined, like source, as how the script manages a tool rather than where the installed copy came from. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (2)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe Linux and Windows installers add JSON report modes. Reports include tool versions, source and management details, statuses, and notes. Both installers restrict JSON mode to report actions. Documentation and tests describe and check the output. ChangesInstaller JSON reports
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: ⚪ Minimal · up to This change adds an optional JSON report mode and keeps the table output as the default. No merge-blocking issue was identified. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The inspected entrypoints keep JSON reporting separate from installation and configuration actions, and report content is encoded as data. No introduced security issue was established. Native Windows behavior, downstream consumers, and the target-branch comparison remain unverified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 9.09% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 22 functions across 2 files. (3 skipped: 3 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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 |
A distro jq reads binary with no note, so the README sentence saying the status and notes report what is actually installed was false. The WSL docker wording now names what the script does rather than what moves the copy. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2259 +/- ##
========================================
Coverage 56.84% 56.84%
========================================
Files 16 16
Lines 7519 7519
========================================
Hits 4274 4274
Misses 3245 3245
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:
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
## Summary Copilot's review of promotion PR #2254 raised a "previously missed" finding against #2259's install-tools JSON report. `add-host-tool`'s procedure says a change to report behavior must update `docs/host-setup.md` as well as the platform READMEs, and #2259 updated only the READMEs. `docs/host-setup.md` now has one paragraph saying: - the flags are `--report --json` on Linux and `-Report -Json` on Windows, and the JSON flag applies to no other action; - the output is one object with a `schema` number, the `platform`, a `tools` list, and a top-level `notes` list; - a change to what a field means raises `schema`. For the shared fields it links to the Linux README, and for its one added field and the values that differ it links to the Windows README. It doesn't restate them, so a third copy of the field list can't drift. ## Verification - `local-strict-review` checked each claim against both installers and both READMEs and found nothing. Its receipt is recorded. - `prose_lint --diff origin/develop`, `docker_lint.py` (markdownlint, cspell, editorconfig), and `spec/validate.py` are all clean. The full `unittest discover` run passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
…#2254) ## Summary Promotes develop to main, carrying the pull requests below. Each was already reviewed and merged into develop. - [#2253](#2253): Track Qodo's open-source login and state its star gate. - [#2259](#2259): Give install-tools a JSON report mode a program can read. Copilot could not review it, since Copilot code review has reached its weekly rate limit (#2261). CodeRabbit reviewed its head with no findings, and recorded local passes covered every push. - [#2263](#2263): Declare Python and Codecov on Blog's registry entry. - [#2265](#2265): Keep the fork iteration PR open and never merged in `upstream-contribution-workflow`, and let an unregistered fork under the owner host a handoff chain, with `handoff.py new --create-label` creating only the `handoff` label there. - [#2266](#2266): Bound `handoff.py`'s writes whatever the label state, refusing `new` and `link` against another owner's repository, or an unregistered non-fork, before the label is read. This answers Copilot's High finding on this promotion. - [#2267](#2267): State the install-tools JSON report in `docs/host-setup.md`, answering Copilot's previously-missed finding on #2259's report mode. - [#2269](#2269): Drop two false pointers from Blog's deploy-secret drift note, and recast every semicolon in the registry's driftNotes, answering Copilot's previously-missed finding on #2263's note. With the open-source login tracked, `qodo_open` double-counts that app's threaded findings and never clears them on PlexCleaner. That is a known, loud error, accepted for this promotion and tracked in #2252. Closes #1465 Closes #1645 Closes #2264 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Clarified which review commands to use when a reviewer posts a skip notice. * Updated reviewer evaluation guidance to reflect when CodeRabbit and Qodo findings are recorded, including Qodo’s repository eligibility requirements. * **Bug Fixes** * Updated Qodo reviewer tracking to recognize its current open-source app identity, improving how its reviews and findings are identified. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary
Addresses #1645.
install-tools.sh --jsonandinstall-tools.ps1 -Jsonwrite the report as one JSON object, so a scheduled reporter can read it without parsing the table.schema(1),platform, atoolslist, and a top-levelnoteslist for what belongs to no tool. Each tool row carriestool,installed,available,source,mechanism,status, and that tool's ownnotes. Windows rows also carryscope. A version that was not read isnull.mechanism: likesource, it names how the script manages the tool. On Linux it isapt,binary, ordocker-desktop(docker inside WSL). On Windows it iswinget.jqis one of the tools the script installs and glibciconv -cpasses some malformed sequences through. It drops bytes that do not decode. PowerShell uses-EscapeHandling EscapeNonAscii.developon a live host.Verification
tests/test_install_tools.py(new, 8 tests) drives each installer's own report functions with host reads stubbed. Every guard in the encoder and in the note slicing was mutated, and a test failed for each one.--jsonrun parses as valid ASCII JSON, and an unsupported locale adds no stderr noise.spec/validate.pyare all clean.install-tools.ps1 -Json | ConvertFrom-Jsonon a Windows host.Filed Along the Way (pre-existing)
install-tools.shexit 1 silently, so--json <tool>fails today.PATH, the managed binaries in/usr/local/binare missed.Unknownis carried forward as the installed version.🤖 Generated with Claude Code
Summary by CodeRabbit