Repository navigation
Close the Installer Gaps Left After the Marketplace Re-Point Fix - #2192
Conversation
- git_in() now catches ValueError, so --report survives a registered path carrying a NUL byte instead of crashing in subprocess.run. - The installer and --report now say the registered path "is not a directory" rather than that it no longer exists, which was wrong where a plain file sits there. - The refresh cadence in docs/host-setup.md and its restatement in docs/fleet-map.md now say --snapshot-only, matching check-this-repo and skill-lifecycle. Fixes #2019 Co-Authored-By: Claude Opus 5.5 <[email protected]>
- git_in() re-raises UnicodeDecodeError, which is a ValueError, so a porcelain status git did produce is never folded into "no answer" and stamped clean. - The refresh cadence in docs/host-setup.md and check-this-repo now says a machine with no install, or a Claude Code channel unregistered or serving nothing, takes the full install, since --snapshot-only registers nothing. - check-this-repo's safe-to-fix bullet routes that case to the maintainer, and docs/fleet-map.md points at the cadence rather than restating it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ording The --snapshot-only cadence registers nothing, so it left a machine with no install, or with a gone registration, without the Claude Code channel. The full install the cadence already named is right for those, and harmless otherwise, so the cadence surfaces return to their develop wording. scripts/README.md now says the installer moves a registration whose path is no longer a directory, matching the installer's own message. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID:
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 #2192 +/- ##
===========================================
+ Coverage 56.60% 56.61% +0.01%
===========================================
Files 16 16
Lines 7480 7482 +2
===========================================
+ Hits 4234 4236 +2
Misses 3246 3246
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.
Copilot review overview
🔵 Needs a closer look
The change edits shared hub-hosted installer tooling that the fleet carries, so final human review is warranted even though the diff is small, well-tested, and I found no defects.
Review effort: Balanced
Findings: None
What changed in this PR
This PR closes two of the three installer gaps tracked in the referenced issue for scripts/skills_install.py (the hub's Skills installer), deliberately deferring the third (the --snapshot-only refresh-cadence wording) to a separate decision issue. It hardens the Claude Code marketplace/live-channel reporting against malformed registered paths and corrects user-facing wording where a non-directory sits at the registered path.
Changes:
git_in()now catchesValueError(so--reportsurvives a registered path carrying a NUL byte instead of crashing insubprocess.run) while explicitly re-raisingUnicodeDecodeErrorso undecodable git output still fails loudly rather than being read as a clean tree.- The "gone" wording is corrected to "is not a directory" / "is no longer a directory" across the installer stderr line, the
--reportreason, andscripts/README.md, covering the case where a plain file (not a missing path) sits at the registered checkout. - Added tests: a NUL-byte registered path, a plain file at the registered path, the updated wording, and a
GitInCasetest assertingUnicodeDecodeErrorpropagates rather than being swallowed.
| File | Description |
|---|---|
scripts/skills_install.py |
Adds ValueError to git_in's caught exceptions with an explicit UnicodeDecodeError re-raise; updates the registration stderr and live_channel reason wording to "not a directory". |
tests/test_skills_install.py |
Adds coverage for the NUL-byte path, a file at the registered path, the UnicodeDecodeError re-raise, and the new wording assertions. |
scripts/README.md |
Updates the prose describing when a registration is moved to say "whose path is no longer a directory". |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…ills Installer Report (#2193) ## Summary Promotes develop to main, carrying [#2192](#2192). - **#2192** stops `scripts/skills_install.py --report` from crashing on a registered marketplace path that carries a NUL byte. `git_in()` now catches `ValueError` and still re-raises `UnicodeDecodeError`, so undecodable git output is never read as a clean tree. The installer's message, `--report`'s reason, and `scripts/README.md` now say a registered path that is gone, or that holds a plain file, "is not a directory". - **The issue's third item, the refresh cadence's `--snapshot-only` wording, is not carried here.** That flag registers nothing, so the proposed wording would strand a machine with no install. Which surface owns the cadence is now decision #2191. Fixes #2019 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
Closes the installer gaps #2019 names, apart from its third item.
git_in()catchesValueError, so--reportsurvives a registered marketplace path carrying a NUL byte instead of crashing insubprocess.run. It re-raisesUnicodeDecodeError, aValueErrorsubclass, so undecodable git output still raises as before rather than reading as "no answer", which would let a dirty tree be stamped clean.--report's reason, andscripts/README.mdall say that instead of "no longer exists" / "does not exist", which was wrong where a plain file sits at the registered path.--snapshot-onlywording, is not changed here. A local review showed that--snapshot-onlyregisters nothing, so the issue's proposed wording would leave a machine with no install, or a gone registration, without the Claude Code channel. Two rounds of carve-outs did not converge, so this branch reverts to the develop wording. The ownership question moves to Settle Which Surface Owns the Skills Refresh Cadence and Which Flag Each Runs #2191 (decision).Tests
LiveChannelCasetests cover a NUL-byte registered path (with no subprocess mock, since subprocess itself refuses the path) and a plain file at the registered path.GitInCasetest checks thatUnicodeDecodeErroris raised, not swallowed.ValueError: embedded null byte, and the decode test fails.python3 -m unittest tests.test_skills_install: 74 tests, OK.build_dist.py --check,spec/validate.py, anddocker_lint.pyall pass.Known, not fixed here
git_indocstring's "None on any failure" was already untrue forUnicodeDecodeErrorbefore this change.source_ref()reads aNonestatus as clean. That is source_ref() Reads a Failed git status as Clean Rather Than Unknown #1869.Refs #2019. The closing keyword goes on the promotion PR.
🤖 Generated with Claude Code