Repository navigation
Fix status and sync output for skipped sources - #292
Conversation
|
Sorry @yourconscience, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 1 day and 6 hours by commenting |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Reviewer's GuideData structuresAdd
Retain configured external sources separately from the filtered sources so status lock checks still count sources skipped by sync.
ImplementationTrack matched
Build dry-run expectations for materialized skills that a real sync would copy into the config root.
Avoid reporting unchanged materialized skill copies as new materializations.
Route git clone, fetch and reset output to stderr so it cannot precede sync JSON on stdout.
Factor skipped-item JSON construction into a helper and populate skipped items in status, sync and dry-run reports.
Check the lock against all configured sources and remove redundant command advice from its status detail.
DocumentationDocument that status and sync JSON reports include skipped items, with an empty array when none are skipped.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
What and why
Six output defects in
statusandsyncaround sources that sync skips (in cooldown or blocked). Five came from the pre-release test of the 3.0 line; the sixth turned up while checking them. All but the last also exist in 2.8.0.statussaid "none configured" for the external skill lock when every configured source was in cooldown or blocked. It now shows the counts, for example0 sources pinned and in sync; 1 in cooldown, 0 blocked (skipped by sync). A config with no sources still saysnone configured.--allow-fresh=<name>with a name that matches nothing was silent.sync,sync --dry-run,skill updateandskill sources addnow print one line on stderr per such name:--allow-fresh: nothing in cooldown is named "bogus"; in cooldown: skill:review-kit. The exit code stays 0, so a script that names an item keeps working after its cooldown ends. A pendingskill updatethatsynccannot release gets the command that does.sync --dry-run --allow-fresh=<item>planned nothing although the real run then added the skills. The dry run now plans the skills a materialized source would copy in, and still writes nothing, the lock included.status --jsonandsync --jsonhad no list of skipped items. Both now carryskipped, with the same shape as insync --dry-run --json,[]when empty. No existing key changed, and the dry-run document has the same keys as before, so the Herdr panel's input is unchanged.materialized a -> bwas printed on every sync, even withchanges none. It now prints only when the copy was created or changed.sync --jsondid not parse with a blocked source: git'sHEAD is now at ...landed on stdout ahead of the document. git's own output from clone, fetch and reset now goes to stderr.The 3.0 release notes for these come with the docs PR that collects the notes for the pre-release fixes.
How I checked it
go build,go vet,go test ./...pass; lint reports 0 issues; the docs site builds with no warnings. No test was deleted.With a binary from this branch in throwaway homes, against sources served from a loopback git server:
statusprints the counts line;status --jsonandsync --jsonlist it underskippedwith"kind": "cooldown".sync --allow-fresh=bogusprints the warning and exits 0.sync --dry-run --allow-fresh=skill:review-kitprintsplanned +1 skills (claude, codex)and leavestackroom.lockwith the same checksum; the real run printschanges +1 skills (claude, codex).syncprints nomaterializedline.sync --jsonparses, and the git lines are on stderr.go test ./...andgo vet ./...passI can explain this change without an AI tool
Summary by Sourcery
Improve status and sync reporting for sources skipped due to cooldown or blocking.
New Features:
Bug Fixes:
Enhancements:
Documentation: