INSTALLED_FROM records no forge, now that RIG_HOST decides which one a tree came from #124
Labels
No labels
attention
blocked
blocker:ci-red
blocker:conflict
blocker:drill-pending
blocker:unrequested
bug
claimed
documentation
enhancement
epic
merge-next
needs-ruling
needs-triage
offsite
post-merge
ready
release
scope:bootstrap
scope:coolify
scope:db
scope:docs
scope:drill
scope:installer
scope:labels
scope:platform
scope:runner
scope:users
stale
state:addressing
state:bots-reviewing
state:building
state:needs-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: heavy-duty/rig#124
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
install.shwritesINSTALLED_FROMbeside every installed tree, and the commentat
:361-363says why:The value is
$REPO@$REF. Since !114 the forge is a variable too, and the recorddoes not name it. Two live installs from this box, minutes apart:
Same repo, same format, different forges, and nothing in either file says which.
Why this is not cosmetic
A stale
RIG_HOSTis now precisely the failure the file exists to catch, and itis the one input
INSTALLED_FROMcannot report.It also bites hardest exactly where the two forges disagree. This instance's
mirror lags —
/releases/latestresolves0.3.0here and0.3.1on GitHub —and releases are cut by CI that has never run here, so the lag is structural
rather than momentary. Two boxes can run
curl … | bashwith noRIG_REF, landon genuinely different trees, and produce
INSTALLED_FROMfiles that differ onlyin a version number neither operator chose.
rig --versionhas the same gap: it reports the tree'sVERSIONand its path,neither of which names an origin.
Spec
Record the host in
INSTALLED_FROMwhen it is not the default, keeping theexisting format for the default so no current assertion changes:
The existing
local:$SRCform forRIG_INSTALL_SOURCEalready establishes thatthis field carries a qualified origin when there is one, so the shape is precedented.
Decide alongside: whether
rig --versionsurfaces it too, or whether the file isenough.
Tasks
INSTALLED_FROMwith the host whenRIG_HOSTis not the defaultrig --versionreports the origintest/release.sh's existingINSTALLED_FROMassertionsAcceptance criteria
INSTALLED_FROMnames the forgeINSTALLED_FROMis unchanged from todayrepo@reffrom different forges produce different recordsassert_installed_fromstill passesTest plan
test/release.shalready drives real installs under a stub curl and asserts thisfile; add a
RIG_HOSTarm. Live: install from both forges into throwaway rootsand diff the two records.
Dependencies
Follow-up to #111 / !114, raised in review by two reviewers and deferred as
non-blocking with the builder's agreement.
Filed under @andres's explicit authorization on !114 to create process issues
directly. No queue label applied —
readydoes not exist yet.