Repository navigation
fix: guard make bump on main, refuse -C for components, shorten README - #510
Merged
Merged
Conversation
make bump now fails unless HEAD is main and equals origin/main after a fetch (core ADR-0012). updex components refuses -C/--definitions, because a definitions directory has no components. The README follows the core README spec (kind tool); the CLI manual moves to docs/specs/cli-reference.md. Fixes #504 Fixes #505 Fixes #508
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…estore moved facts Cross-review findings on #510: an explicit fetch refspec so a stale refs/remotes/origin/main cannot pass the bump guard, every inherited GIT_* variable dropped from the test git environment, the checksums.txt attestation fact restored in the CLI reference, and the README minimum-image summary aligned with the next-boot gate.
Contributor
Author
Cross-review record
Revert testIn a scratch worktree from the PR head, I set
I removed the scratch worktree afterwards. Risk paths
|
bketelsen
approved these changes
Nov 13, 2026
This was referenced Nov 14, 2026
bketelsen
pushed a commit
to frostyard/frostyard-org
that referenced
this pull request
Nov 15, 2026
* docs: follow Updex v2.3.1 in the Updex guide The v2.3.1 README (frostyard/updex#510) no longer has the sections the guide deep-linked. Point those links to docs/specs/cli-reference.md and docs/specs/config-reference.md at v2.3.1, and add short lines for the suite-switch unit, the other-suite cleanup, and the empty-specifier error (frostyard/updex#515, #516, #518, #519). check-site.mjs now pins the v2.3.1 sources and refuses a README deep link. * docs: state what the other-suite cleanup keeps in the Updex guide The vacuum keeps the newest image of each other suite, the linked image and a merged image, and keeps every other-suite image on systemd older than 258 while the feature is merged (updex v2.3.1 cli-reference, "What the vacuum keeps"). check-site.mjs asserts both conditions; the record is .memory/corrections/2026-11-14-pr-126-other-suite-vacuum-claim.json. --------- Co-authored-by: frostyard-machines <[email protected]>
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes 3 sweep findings.
make bumpreleasesmainonly (core ADR-0012: "requires a clean tree onmain"). The new targetmake bump-main-checkfails unless the current branch ismainandHEADequalsorigin/mainaftergit fetch origin main. Another branch, a detached HEAD, an unpushed commit, and a HEAD behind the remote all fail with a message.bumpruns it right aftersvu-version-check, so it fails fast. It runs it again after the clean-tree check and before$(SVU) next, because the build, test and lint steps are long.updex componentsrefuses-C/--definitions. A definitions override is 1 flat directory that bypasses component discovery, so it has no components. An empty list would look like "this host has no components". Before this change, the command listed the host's components without a warning.Client.Componentsnow returnscomponents cannot be combined with a definitions override (--definitions): a definitions directory has no components. The catalog commands (catalogRepos) and--componentwith-C(loadDomain) already refuse the flag the same way. To honour the flag in another way,-Cwould need a new meaning (a root for discovery). That is a change of the flag's contract, so this PR does not do it.tool, 564 words, from 5067). The CLI manual moves without rewording to the new spec pagedocs/specs/cli-reference.md, which is indexed indocs/README.md. Content that already had a page is linked instead of copied: the.catalogkeys, the search roots and the signature policy are inconfig-reference.md, and erofs-utils and packaging are inpackaging-and-maintainers.md. Facts that only the README had move into those pages: the signature trade-off, the v2.0.0 to v2.0.2 upgrade notes, and that a vacuum which cannot read the state "deletes nothing and warns".## Securityis dropped, becauseSECURITY.mdholds it (linked inWhere to go next). The documentation line linksdocs/README.md, because the tool has no docs site yet (sweep: updex/baseline-B9 no tool documentation site (site/, site.yml, Pages) #507).Things that pointed at the old README now point at the new page:
TestE2E_GlobalFlagsAreDocumentedInREADMEis renamed to…InCLIReferenceand reads the### Global flagstable ofdocs/specs/cli-reference.md. It still fails when a global flag has no row: I checked this by removing the--verboserow.no catalogs configurederror text.packaging-and-maintainers.mdandoverview.mdlinks.AGENTS.mddocs list, which now names the CLI reference as the user-facing reference.The prose in ADR-0014 still says "the README documents this migration" (lines 83 and 87). It is an accepted ADR, so only link-only changes are allowed there. The facts it refers to are now in
config-reference.md.Fixes #504
Fixes #505
Fixes #508
Checks
make fmtmake cipasses:==> CI gate passed(run withumask 0022; underumask 00773 file-mode tests fail on the host, with or without this change)go test ./cmd/updex ./tests/e2e/...greenTestMakefileBumpRecipeChecksMain,TestBumpMainCheckBehaviour(5 cases in a temporary repository with a bareorigin),TestClient_Components_RefusesDefinitionsOverride,TestRunComponents_RefusesDefinitionsOverride.agents/skills/frostyard-readme/scripts/check-readme.mjsat coreorigin/main):ok README.md (tool, 564 words); before: 12FAILlines (R1, R4, R5, R8 x6, R9, R10, R11)Risk tier
Rationale: this PR touches 2 paths that
.github/risk-paths.jsonlists at level L1, so it getsrisk:high:Makefile({Makefile,mise.toml,mise.lock}, release-and-publication). Why it is safe: the change only adds a check that can makemake bumpstop. The recipe still runs the same steps in the same order, and nothing in it tags or pushes in a new way. The check reads git state and runsgit fetch origin main, which is read-only for the working tree. CI never runsbump.TestBumpMainCheckBehaviourruns the real recipe against a temporary bare origin.updex/catalog.go(updex/{features,catalog,…}.go, installation-and-update). Why it is safe: the only change is the text in parentheses of theno catalogs configurederror, which now namesdocs/specs/cli-reference.mdand no longer names a README section that is gone. No logic changes, and no test pins that part of the text.Docs housekeeping
README.md,docs/design/overview.md,docs/specs/*updated;AGENTS.mdupdated (make targets, release automation, troubleshooting, components, docs list)docs/specs/cli-reference.mdfollowsdocs/specs/TEMPLATE.mdand is indexed indocs/README.mdVerification
node scripts/check-docs.mjsgreen (30 docs, 586 links, 9 symlinks)