Fleet public routes Task 8 step 1: the console floor gates take a fleet override, every caller passing false
systemFloorGate, systemFloorSnapshot and rollbackHostUpdate gain a trailing allowFleet bool, unused for now; every caller (30 sites, production and tests) passes false and keeps its assertions, so the migrated tests are green before the fleet forward floor exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
internal/console/apiplacements_put_test.go+1 −1internal/console/apisystemupdate.go+2 −2internal/console/hostactivation.go+2 −2internal/console/hostactivation_test.go+3 −3internal/console/plan9_b_test.go+2 −2internal/console/regionalfloor_test.go+14 −14internal/console/rootfsfloor.go+3 −3internal/console/rootfsfloor_test.go+6 −6
Intent
<task-notification> <task-id>a87d4e812018c9ccf</task-id> <tool-use-id>toolu_016tkxMnbG5nakcpEwDvLLeo</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ba9fa944-a429-4788-9b3c-f2b2f42617f3/tasks/a87d4e812018c9ccf.output</output-file> <status>completed</status> <summary>Agent "Implement Task 7: skipping readers" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**Status:** DONE. Fix round 1 is committed as 48c4d8dd (on top of 5f5d5d1d) and not pushed. The fix report is appended to `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-fleet-public-routes/.superpowers/sdd/2026-10-30-fleet-public-routes/task-7-report.md`. **The fix (a root change).** Root's adoption pass with root update inputs on looked up a root installation for every registry host before any adoption check. A forward row has no installation on the hub, so one forward row aborted adoption for every resident. In `internal/release/rootupdates.go`, `RootUpdateInputs.routes` now leaves forward rows out before that lookup. Both callers in `adopt.go` (the recovery path and the main pass) go through it. Every local row keeps all of its existing checks. **Non-inert forward rows are left out with a log line, not refused.** The log line is `adopt: <host> is a forward row that is not inert; root leaves it out of the pass`. My reasons: - No adoption check accepts kind `forward`, so the row can never pass as a resident. - Leaving it out has the same effect as deleting the row, which the agent that writes the registry can already do. It gains no new power. - Refusing would let one malformed row stop every resident's updates, which is the fault this round fixes. - Egress refuses instead because there a refusal holds back a network allow, which is the safe direction. Here it would block unrelated residents. **Regression test.** `TestRootAdoptionSkipsAForwardRow` runs root's adoption pass through the production lookup. It uses a resident with an installation pinned to v1, plus a forward row without one, in two cases: inert, and not inert (socket column corrupted by raw SQL and read back). - **Before the fix:** the pass aborted with `hostguard: no local record`. The control (resident alone) adopted v1. - **After the fix:** both cases pass, the resident is live at v1, and the forward host is never looked up. - **Mutations:** removing the skip fails both cases. Skipping only inert rows fails the not-inert case. **Related tests:** the root update, Plan14 and Task 7 host tests pass, as do the release `Root|Settings` tests. Build, vet and gofmt are clean. **Sweep of other root passes.** I checked every place in the root paths that lists the registry or looks up a root installation per host. `RootUpdateInputs.routes` was the only one that acted on every host before checking the row's kind. The others either filter by kind first or take their hosts from somewhere other than the registry. Each is listed in the report and in spec §7. **Census.** `make census-card` adds `RootUpdateInputs.routes` with one new read site (`+registry:Host`, the host in the log line), and the `internal/release` envelope re-pins. Spec §7 now has a "Task 7 fix round 1" paragraph with the root claim: a forward row can only remove its own host from the pass. It adds no host, file, path or command. The units Astra already approved are unchanged.</result> <usage><subagent_tokens>274955</subagent_tokens><tool_uses>41</tool_uses><duration_ms>442810</duration_ms></usage> </task-notification>
<task-notification> <task-id>b5oet84e0</task-id> <tool-use-id>toolu_01Jcon4iPHUjd8UW1kjHt21Q</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ba9fa944-a429-4788-9b3c-f2b2f42617f3/tasks/b5oet84e0.output</output-file> <status>completed</status> <summary>Background command "Run the scoped Astra re-review of Task 7" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 8.54 g CO₂e (1,132,955 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-fleet-public-routes, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/internal/console/apiplacements_put_test.go b/internal/console/apiplacements_put_test.go| index 33863a1b1..6510ae245 100644 |
| --- a/internal/console/apiplacements_put_test.go |
| +++ b/internal/console/apiplacements_put_test.go |
| @@ -881,7 +881,7 @@ func TestPlacementsRefusesBelowAPublishedChannel(t *testing.T) { |
| floor := rdFloor() |
| t.Run("a downgrade published, boxes still at the floor", func(t *testing.T) { |
| w := regionalWorldOnStable(t, "code-rdput-chan-down") |
| - if p, err := w.fx.srv.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false); err != nil || p.Current.Version != "v0.30.2" { |
| + if p, err := w.fx.srv.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false); err != nil || p.Current.Version != "v0.30.2" { |
| t.Fatalf("the downgrade = %+v, %v", p, err) |
| } |
| st := w.wrap() |
diff --git a/internal/console/apisystemupdate.go b/internal/console/apisystemupdate.go| index 05499a8af..98414c2aa 100644 |
| --- a/internal/console/apisystemupdate.go |
| +++ b/internal/console/apisystemupdate.go |
| @@ -425,7 +425,7 @@ func (s *Server) handleAPISystemUpdate(w http.ResponseWriter, r *http.Request) { |
| // the job asks again before it reserves or writes (promoteHostUpdate), |
| // which also covers the latest release and an upload. |
| if in.Version != "" { |
| - if _, err := s.systemFloorGate(r.Context(), in.Component, in.Channel, in.Version, in.AllowBelowRootfsFloor, in.AllowBelowRegionalFloor); errors.Is(err, errRootfsFloorPromotion) || errors.Is(err, errRegionalFloorPromotion) { |
| + if _, err := s.systemFloorGate(r.Context(), in.Component, in.Channel, in.Version, in.AllowBelowRootfsFloor, in.AllowBelowRegionalFloor, false); errors.Is(err, errRootfsFloorPromotion) || errors.Is(err, errRegionalFloorPromotion) { |
| jsonError(w, http.StatusConflict, err.Error()) |
| return |
| } |
| @@ -950,7 +950,7 @@ func (s *Server) handleAPISystemRollback(w http.ResponseWriter, r *http.Request) |
| return |
| } |
| } |
| - p, err := s.rollbackHostUpdate(r.Context(), in.Component, in.Channel, addr, in.AllowBelowRootfsFloor, in.AllowBelowRegionalFloor) |
| + p, err := s.rollbackHostUpdate(r.Context(), in.Component, in.Channel, addr, in.AllowBelowRootfsFloor, in.AllowBelowRegionalFloor, false) |
| var held activationHeldError |
| switch { |
| case errors.Is(err, errRootfsFloorPromotion), errors.Is(err, errRegionalFloorPromotion): |
diff --git a/internal/console/hostactivation.go b/internal/console/hostactivation.go| index 9abb5a926..d440b1e24 100644 |
| --- a/internal/console/hostactivation.go |
| +++ b/internal/console/hostactivation.go |
| @@ -205,7 +205,7 @@ func (s *Server) reserveHostUpdate(ctx context.Context, rel *release.SystemRelea |
| func (s *Server) promoteHostUpdate(ctx context.Context, rel release.SystemRelease, component, channel string, options release.SystemPromoteOptions) (*release.SystemPointer, error) { |
| // The floor decision binds the snapshot it judged: preparation, here |
| // or in the unreserved fallback, refuses a pointer that moved since. |
| - cur, etag, err := s.systemFloorSnapshot(ctx, component, channel, rel.Version, options.AllowBelowRootfsFloor, options.AllowBelowRegionalFloor) |
| + cur, etag, err := s.systemFloorSnapshot(ctx, component, channel, rel.Version, options.AllowBelowRootfsFloor, options.AllowBelowRegionalFloor, false) |
| if err != nil { |
| return nil, err |
| } |
| @@ -227,7 +227,7 @@ func (s *Server) promoteHostUpdate(ctx context.Context, rel release.SystemReleas |
| }) |
| } |
| -func (s *Server) rollbackHostUpdate(ctx context.Context, component, channel, actor string, allowBelowRootfsFloor, allowBelowRegionalFloor bool) (*release.SystemPointer, error) { |
| +func (s *Server) rollbackHostUpdate(ctx context.Context, component, channel, actor string, allowBelowRootfsFloor, allowBelowRegionalFloor, allowBelowFleetForwardFloor bool) (*release.SystemPointer, error) { |
| d := hostactors.Directory{Store: s.cfg.Releases, PublicKey: release.RootSigner(s.cfg.Key).RootPublicKey(), Bucket: s.cfg.Bucket} |
| floor, err := hostfloor.Read(ctx, s.cfg.Releases, d.PublicKey, s.cfg.Bucket) |
| if err == nil { |
diff --git a/internal/console/hostactivation_test.go b/internal/console/hostactivation_test.go| index 9fa0aff9c..60fd7d632 100644 |
| --- a/internal/console/hostactivation_test.go |
| +++ b/internal/console/hostactivation_test.go |
| @@ -159,7 +159,7 @@ func TestHostRollbackResumesWithoutPoppingAgain(t *testing.T) { |
| s, d, _ := activationFixture(t) |
| broken := &activationFaultStore{Store: d.Store, fail: true} |
| s.cfg.Releases = broken |
| - if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false); err == nil { |
| + if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false); err == nil { |
| t.Fatal("missing injected failure") |
| } |
| before, err := d.Read(t.Context()) |
| @@ -170,11 +170,11 @@ func TestHostRollbackResumesWithoutPoppingAgain(t *testing.T) { |
| for id = range before.Roster.Activations { |
| } |
| s.cfg.Releases = d.Store |
| - first, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false) |
| + first, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false) |
| if err != nil || first.ActivationID != id || first.Current.Version != "v1.1.0" { |
| t.Fatal(first, err) |
| } |
| - second, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false) |
| + second, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false) |
| if err != nil || second.ActivationID != id || len(second.History) != len(first.History) { |
| t.Fatal(second, err) |
| } |
diff --git a/internal/console/plan9_b_test.go b/internal/console/plan9_b_test.go| index 5618c34e4..0f588a849 100644 |
| --- a/internal/console/plan9_b_test.go |
| +++ b/internal/console/plan9_b_test.go |
| @@ -197,7 +197,7 @@ func TestPlan9OperatorCancelsAnUnpublishedActivation(t *testing.T) { |
| held := plan9Roster(t, fx.srv) |
| stale := *held.Roster.Activations[id].Publication |
| // The wedge: a different request for the channel is refused while held. |
| - if _, err := fx.srv.rollbackHostUpdate(ctx, "router", "stable", "paul@keymail.dev", false, false); err == nil { |
| + if _, err := fx.srv.rollbackHostUpdate(ctx, "router", "stable", "paul@keymail.dev", false, false, false); err == nil { |
| t.Fatal("rollback succeeded through a held activation") |
| } |
| if fx.srv.cfg.Releases == nil { |
| @@ -235,7 +235,7 @@ func TestPlan9OperatorCancelsAnUnpublishedActivation(t *testing.T) { |
| if st, out := postJSON(t, fx.ts.URL+"/api/cli/system/activation/cancel", map[string]string{"channel": "stable"}, owner); st != http.StatusNotFound { |
| t.Fatalf("cancel with nothing held = %d %v, want 404", st, out) |
| } |
| - p, err := fx.srv.rollbackHostUpdate(ctx, "router", "stable", "paul@keymail.dev", false, false) |
| + p, err := fx.srv.rollbackHostUpdate(ctx, "router", "stable", "paul@keymail.dev", false, false, false) |
| if err != nil || p.Current.Version != "v1.1.0" { |
| t.Fatalf("rollback after cancel = %v, %v", p, err) |
| } |
diff --git a/internal/console/regionalfloor_test.go b/internal/console/regionalfloor_test.go| index 7f2ecfd74..0ed6de560 100644 |
| --- a/internal/console/regionalfloor_test.go |
| +++ b/internal/console/regionalfloor_test.go |
| @@ -70,10 +70,10 @@ func TestRegionalFloorRefusesBeforeReservation(t *testing.T) { |
| t.Fatalf("promote below the floor with the rootfs override = %v\nwant %q", err, want) |
| } |
| noActivations(t, d) |
| - if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false); !errors.Is(err, errRegionalFloorPromotion) || err.Error() != want { |
| + if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false); !errors.Is(err, errRegionalFloorPromotion) || err.Error() != want { |
| t.Fatalf("rollback below the floor = %v\nwant %q", err, want) |
| } |
| - if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", true, false); !errors.Is(err, errRegionalFloorPromotion) || err.Error() != want { |
| + if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", true, false, false); !errors.Is(err, errRegionalFloorPromotion) || err.Error() != want { |
| t.Fatalf("rollback below the floor with the rootfs override = %v\nwant %q", err, want) |
| } |
| noActivations(t, d) |
| @@ -83,13 +83,13 @@ func TestRegionalFloorRefusesBeforeReservation(t *testing.T) { |
| // An unparseable target meets the rootfs floor first; with its override |
| // the regional floor refuses it too. |
| for target, refused := range map[string]bool{"4f3c2a1": true, "": true, "v0.30.99": true, "v0.31.0": false, "v0.32.1": false} { |
| - _, err := s.systemFloorGate(t.Context(), "router", "stable", target, true, false) |
| + _, err := s.systemFloorGate(t.Context(), "router", "stable", target, true, false, false) |
| if errors.Is(err, errRegionalFloorPromotion) != refused { |
| t.Errorf("systemFloorGate(%q) = %v, refused want %v", target, err, refused) |
| } |
| } |
| // A channel with no pointer yet has nothing to protect. |
| - if _, err := s.systemFloorGate(t.Context(), "router", "canary", "v0.30.2", false, false); err != nil { |
| + if _, err := s.systemFloorGate(t.Context(), "router", "canary", "v0.30.2", false, false, false); err != nil { |
| t.Errorf("a channel with no pointer = %v", err) |
| } |
| @@ -122,7 +122,7 @@ func TestRegionalFloorLeavesAChannelAloneWithoutRegionalClaims(t *testing.T) { |
| var p *release.SystemPointer |
| var err error |
| if mode == "rollback" { |
| - p, err = s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false) |
| + p, err = s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false) |
| } else { |
| p, err = s.promoteHostUpdate(t.Context(), target, "router", "stable", release.SystemPromoteOptions{}) |
| } |
| @@ -165,7 +165,7 @@ func TestRegionalFloorOverrideIsPartOfTheRequest(t *testing.T) { |
| putRegionalClaim(t, d.Store, rdFloorClaimHost, "acct", "shop", rdHomeHost, false, false) |
| move := func(s *Server, allow bool) (*release.SystemPointer, error) { |
| if mode == "rollback" { |
| - return s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, allow) |
| + return s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, allow, false) |
| } |
| return s.promoteHostUpdate(t.Context(), target, "router", "stable", release.SystemPromoteOptions{AllowBelowRegionalFloor: allow}) |
| } |
| @@ -232,7 +232,7 @@ func TestRegionalFloorBindsTheJudgedPointer(t *testing.T) { |
| }} |
| var err error |
| if mode == "rollback" { |
| - _, err = s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false) |
| + _, err = s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false) |
| } else { |
| _, err = s.promoteHostUpdate(t.Context(), target, "router", "stable", release.SystemPromoteOptions{}) |
| } |
| @@ -257,7 +257,7 @@ func TestRegionalFloorUnreservedRollbackKeepsTheOverride(t *testing.T) { |
| s, d, _ := activationFixtureAt(t, "v0.31.0", "v0.30.2", "v0.28.0") |
| putRegionalClaim(t, d.Store, rdFloorClaimHost, "acct", "shop", rdHomeHost, false, false) |
| unreserved(t, d) |
| - p, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, true) |
| + p, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, true, false) |
| if err != nil { |
| t.Fatal(err) |
| } |
| @@ -282,7 +282,7 @@ func TestRegionalFloorCountsAnUnreadClaim(t *testing.T) { |
| if _, err := s.promoteHostUpdate(t.Context(), target, "router", "stable", release.SystemPromoteOptions{}); !errors.Is(err, errRegionalFloorPromotion) || err.Error() != want { |
| t.Fatalf("promote with an unread claim = %v\nwant %q", err, want) |
| } |
| - if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false); !errors.Is(err, errRegionalFloorPromotion) || err.Error() != want { |
| + if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false); !errors.Is(err, errRegionalFloorPromotion) || err.Error() != want { |
| t.Fatalf("rollback with an unread claim = %v\nwant %q", err, want) |
| } |
| noActivations(t, d) |
| @@ -292,7 +292,7 @@ func TestRegionalFloorCountsAnUnreadClaim(t *testing.T) { |
| if _, err := s.promoteHostUpdate(t.Context(), target, "router", "stable", release.SystemPromoteOptions{AllowBelowRegionalFloor: allow}); err == nil || errors.Is(err, errRegionalFloorPromotion) { |
| t.Fatalf("promote (override %v) over a failed claims listing = %v, want the listing's error", allow, err) |
| } |
| - if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, allow); err == nil || errors.Is(err, errRegionalFloorPromotion) { |
| + if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, allow, false); err == nil || errors.Is(err, errRegionalFloorPromotion) { |
| t.Fatalf("rollback (override %v) over a failed claims listing = %v, want the listing's error", allow, err) |
| } |
| } |
| @@ -333,7 +333,7 @@ func TestRegionalFloorReadsNoClaimsWhenNotCrossing(t *testing.T) { |
| allow := c.regional |
| var err error |
| if mode == "rollback" { |
| - _, err = s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, allow) |
| + _, err = s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, allow, false) |
| } else { |
| _, err = s.promoteHostUpdate(t.Context(), target, "router", "stable", release.SystemPromoteOptions{AllowBelowRegionalFloor: allow}) |
| } |
| @@ -376,7 +376,7 @@ func TestRegionalFloorJudgesAgainAtPublication(t *testing.T) { |
| } |
| var err error |
| if mode == "rollback" { |
| - _, err = s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false) |
| + _, err = s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false) |
| } else { |
| _, err = s.promoteHostUpdate(t.Context(), target, "router", "stable", release.SystemPromoteOptions{}) |
| } |
| @@ -410,7 +410,7 @@ func TestRegionalFloorJudgesAHeldRollbackAgain(t *testing.T) { |
| s, d, target := activationFixtureAt(t, "v0.31.0", "v0.30.2", "v0.28.0") |
| move := func(s *Server) (*release.SystemPointer, error) { |
| if mode == "rollback" { |
| - return s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false) |
| + return s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false) |
| } |
| return s.promoteHostUpdate(t.Context(), target, "router", "stable", release.SystemPromoteOptions{}) |
| } |
| @@ -488,7 +488,7 @@ func TestRegionalFloorPublicationHoldsRegionalMu(t *testing.T) { |
| case <-time.After(time.Second): |
| } |
| } |
| - p, err := w.fx.srv.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false) |
| + p, err := w.fx.srv.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false) |
| if err != nil || p.Current.Version != "v0.30.2" { |
| t.Fatalf("the rollback = %+v, %v; want v0.30.2 (no regional claim when it was judged)", p, err) |
| } |
diff --git a/internal/console/rootfsfloor.go b/internal/console/rootfsfloor.go| index e424562db..380ee8347 100644 |
| --- a/internal/console/rootfsfloor.go |
| +++ b/internal/console/rootfsfloor.go |
| @@ -49,15 +49,15 @@ func (e rootfsFloorError) Unwrap() error { return errRootfsFloorPromotion } |
| // ETag, so the decision covers exactly the state the publication replaces: |
| // a channel that moved in between (say to the floor) fails the CAS, never |
| // takes a release nobody checked against it (whole-branch review P1-3). |
| -func (s *Server) systemFloorGate(ctx context.Context, component, channel, target string, allowRootfs, allowRegional bool) (string, error) { |
| - _, etag, err := s.systemFloorSnapshot(ctx, component, channel, target, allowRootfs, allowRegional) |
| +func (s *Server) systemFloorGate(ctx context.Context, component, channel, target string, allowRootfs, allowRegional, allowFleet bool) (string, error) { |
| + _, etag, err := s.systemFloorSnapshot(ctx, component, channel, target, allowRootfs, allowRegional, allowFleet) |
| return etag, err |
| } |
| // systemFloorSnapshot is systemFloorGate returning the judged pointer too |
| // (nil for none): promoteHostUpdate judges the regional floor on it again |
| // under regionalMu just before it publishes (regionalFloorPublish). |
| -func (s *Server) systemFloorSnapshot(ctx context.Context, component, channel, target string, allowRootfs, allowRegional bool) (*release.SystemPointer, string, error) { |
| +func (s *Server) systemFloorSnapshot(ctx context.Context, component, channel, target string, allowRootfs, allowRegional, allowFleet bool) (*release.SystemPointer, string, error) { |
| cur, etag, err := release.GetSystemPointer(ctx, s.cfg.Releases, release.RootSigner(s.cfg.Key).RootPublicKey(), component, channel) |
| if errors.Is(err, os.ErrNotExist) { |
| return nil, etag, nil |
diff --git a/internal/console/rootfsfloor_test.go b/internal/console/rootfsfloor_test.go| index 7491bfb7c..fc3865575 100644 |
| --- a/internal/console/rootfsfloor_test.go |
| +++ b/internal/console/rootfsfloor_test.go |
| @@ -43,7 +43,7 @@ func TestRootfsFloorRefusesBeforeReservation(t *testing.T) { |
| t.Fatalf("promote below the floor = %v\nwant %q", err, want) |
| } |
| noActivations(t, d) |
| - if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false); !errors.Is(err, errRootfsFloorPromotion) || err.Error() != want { |
| + if _, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false); !errors.Is(err, errRootfsFloorPromotion) || err.Error() != want { |
| t.Fatalf("rollback below the floor = %v\nwant %q", err, want) |
| } |
| noActivations(t, d) |
| @@ -51,13 +51,13 @@ func TestRootfsFloorRefusesBeforeReservation(t *testing.T) { |
| t.Fatalf("the pointer moved to %s", v) |
| } |
| for target, refused := range map[string]bool{"4f3c2a1": true, "": true, "v0.28.99": true, "v0.29.0": false, "v0.30.1": false} { |
| - _, err := s.systemFloorGate(t.Context(), "router", "stable", target, false, false) |
| + _, err := s.systemFloorGate(t.Context(), "router", "stable", target, false, false, false) |
| if errors.Is(err, errRootfsFloorPromotion) != refused { |
| t.Errorf("systemFloorGate(%q) = %v, refused want %v", target, err, refused) |
| } |
| } |
| // A channel with no pointer yet has nothing to protect. |
| - if _, err := s.systemFloorGate(t.Context(), "router", "canary", "v0.28.25", false, false); err != nil { |
| + if _, err := s.systemFloorGate(t.Context(), "router", "canary", "v0.28.25", false, false, false); err != nil { |
| t.Errorf("a channel with no pointer = %v", err) |
| } |
| @@ -93,7 +93,7 @@ func TestRootfsFloorOverrideIsPartOfTheRequest(t *testing.T) { |
| s, d, target := activationFixtureAt(t, "v0.28.20", "v0.28.25", "v0.28.0") |
| move := func(s *Server, allow bool) (*release.SystemPointer, error) { |
| if mode == "rollback" { |
| - return s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", allow, false) |
| + return s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", allow, false, false) |
| } |
| return s.promoteHostUpdate(t.Context(), target, "router", "stable", release.SystemPromoteOptions{AllowBelowRootfsFloor: allow}) |
| } |
| @@ -189,7 +189,7 @@ func TestRootfsFloorBindsTheJudgedPointer(t *testing.T) { |
| }} |
| var err error |
| if mode == "rollback" { |
| - _, err = s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false) |
| + _, err = s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", false, false, false) |
| } else { |
| _, err = s.promoteHostUpdate(t.Context(), target, "router", "stable", release.SystemPromoteOptions{}) |
| } |
| @@ -213,7 +213,7 @@ func TestRootfsFloorBindsTheJudgedPointer(t *testing.T) { |
| func TestRootfsFloorUnreservedRollbackKeepsTheOverride(t *testing.T) { |
| s, d, _ := activationFixtureAt(t, "v0.29.0", "v0.28.25", "v0.28.0") |
| unreserved(t, d) |
| - p, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", true, false) |
| + p, err := s.rollbackHostUpdate(t.Context(), "router", "stable", "operator", true, false, false) |
| if err != nil { |
| t.Fatal(err) |
| } |