Repository navigation
Conversation
…thout the fix (D-0760) Persist the ledger before the members exist so Store.Update does not bootstrap a task record from disk, and assert the prior installed_by before the install.
|
Review fix (5109aba): |
…were committed (D-0760)
|
Review fix (b11e99e): the reconcile undo now runs only for pre-commit failures. Once Tests: |
… after publication (D-0760)
|
Fixed the P1 (30f207c). |
… so bundle install keeps its members (D-0760)
|
Fixed the E125 finding. Build writes and commits every generated file before it returns the entitlement refresh error, but ApplyBuild returned that error without the ErrPublished mark, so the bundle install rollback removed members the published config references. ApplyBuild now marks a refresh failure that comes with a completed build result as published (unless the caller's Rollback restores the files). Test: TestApplyEntitlementRefreshFailureIsPublished fails on the previous head and passes now; reconcile, bundle, build, upgrade and cmd/commands tests pass. |
Fix bundle reconciliation rollback and proxy restore cleanup on fresh
origin/main(1a96c7bb).D-0286: blocked outside this repository
The named Docker tests already use
dockertest.Require, andTestHostSpecArgvSiteswalks source files without requiring.git(6dd4ebd4, #648). That commit deliberately removed the vendor secret-scan allowlist because vendor scans clean.gitleaks dir vendor --redact --no-banner --log-level errorpasses here. The remaininggo:fmtgate invokesgofmt -l .in the separate plugins repository (free/ci/internal/gate_runners.go), which still reports vendored files. This task prohibits editing other repositories, so no D-0286 changes are included.D-1162: fixed
Record dangling links with
Lstatso checked apply accepts planned cleanup. Anchor recursive traversal and unlinks to the generated output directory, including deferred checked publication, so a swapped symlink cannot redirect cleanup into a neighboring directory. Regression tests cover dangling-link plan/apply and symlink swaps during direct deletion and before checked publication.D-0760: fixed
A failed or refused reconcile now undoes newly added bundle members with
plugin.UndoInstall, removes their ledger records, and restores prior ownership. Existing members and retained schemas survive. Cleanup failures remain visible alongside the reconcile error. Tests cover E403/E480/E481, preexisting members, and prior ownership during refused upgrades. Later app-ready failures retain their existing behavior.Validation
go test -mod=vendor ./internal/bundle/...: PASS.go test -mod=vendor ./internal/build: PASS, including dangling-link checked apply, direct and deferred symlink swaps, and post-cleanup rollback.CGO_ENABLED=0 go vet -mod=vendor ./internal/build ./internal/bundle/...: PASS.CGO_ENABLED=0 go build -mod=vendor -o <scratch>/nself ./cmd/nself/: PASS.make fmt-checkandgit diff --check: PASS.gitleaks dir vendor --redact --no-banner --log-level error: PASS;gofmt -l vendorlists upstream vendored files, confirming the remaining external formatting-gate issue.No changes to HQ, other repositories, versions, releases, deployments, or repository settings.