Found in review of #29: the apply order builds rexcity's tools only in an apply that moves rexcity, and never removes or repairs them #64
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/gascitypacks!64
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/gascitypacks-uno"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes items 1 to 4 of gascitypacks-uno (found in the review of #29): the
applyorder's install of rexcity and its tools.What changed (
roles/assets/scripts/apply.sh)rexcity, thegc-runtime-rexlink or a tool thatgo list toolnames is missing fromREX_BIN_DIR, not only when the locked rexcity commit moves (item 1). The check runs only in an apply that has anorigin/mainto apply: one that finds it unmoved still exits first, so a file lost between moves is repaired at the next move, not at once.REX_BIN_DIR/.rexcity-installed; the next one removes what the previous record named and the new build does not (item 2). A file the record does not name is never touched. A city installed before this change has no record, so a stale tool of it (claude-acpof rexcity 0.29.0 and 0.30.0) needs one manual removal.ln,mvormktempafter the build mails the Operator ("rexcity install failed") instead of exiting silently; the.build.*directory goes with the exit trap, and one older than an hour, left by a killed run, is swept by the next run (item 3).docs/shell.mdallows. Thedocs/shell.mdledger row forapply.shno longer says the repair is missing.Tests (
tests/apply.sh, item 4): the fixture's tool lives in a module of its own that rexcity requires (areplaceto a local directory; a realgo.sumpin would need a module proxy, which the offline test has none of), and the test has its ownGOMODCACHE. New scenarios: the record, a dropped tool, a lost tool (repaired), a complete bin directory (builds nothing), a failingmv, and an old and a new.build.*leftover. Run against the old script the test fails.Not done: item 5, gascity-root's
docs/spec.mdstep 3 of the apply order, is in another repository.Verified:
bash tests/apply.shprintsok;shellcheck roles/assets/scripts/apply.shis clean; the v2 changelog checker is valid with the fragment.changelog/apply-rexcity-tools.md.Bead: gascitypacks-uno
Review of
0556f68895for gascitypacks-uno. Checks of the head: success.Verdict
pass
Findings
rexcity, its link or a declared tool is missing. The check comes after the earlyexit 0at line 93, so a lostclaudeacpstays lost, with nothing reported, until the next merge to the city's main. The PR description and the header comment (lines 21-22) both say so. A follow-up bead could move a cheap check (for example, the names in.rexcity-installed) ahead of that exit. Not blocking: the gap is disclosed, the by-hand repair in the bead still works, and the fix is a real improvement.go list -C "$src" tool 2>/dev/nullhides a failure, such as a tool module missing from the module cache with no proxy. When it fails, onlyrexcityandgc-runtime-rexare checked, and a missing tool goes unnoticed without a word. Logging the failure to stderr would leave a trace.rm -ffails on a stale tool (for example, a permission error),set -eends the run with no mail. That is the same silent exit item 3 is about, now on the removal path. Adding|| report "apply:rexinstall:$incoming" ...would match themvcalls..forgejo/workflows/release.yamlstill tagsgithub.sha, the commit of its own run. It is unrelated to the apply order, so it is better as its own bead (the same family as claudeacp-aqp) than added to this PR. The Operator can split it out.Verified
be97be3, 3 commits ahead of the branch point) in my own clone. The merge is clean (docs/shell.md auto-merged) and Forgejo reportsmergeable.go vet ./...andgo test ./...pass.gc lint .reports 2 packs ok.shellcheck roles/assets/scripts/apply.shis clean. In tests/apply.sh it reports only SC2012 (info), which main's tests/apply.sh already fails on.go list toolon real rexcity checkouts in gc's pack cache. With a tool (claudeacp v0.5.0) it printssarak.sh/mikluko/claudeacp/cmd/claudeacp, so the check seesclaudeacp. Without one it only warns and exits 0, as the comment says. Neither run touched the checkout.-base=mainit reportsvalid=trueand exits 0, with the fragment.changelog/apply-rexcity-tools.md.city-root referenced this pull request2026-11-12 15:45:46 +00:00