Fix HA placement fixtures after stateless runtime merge
Return activator.RecordFacts from both HA placement fixture callbacks, using RecordFactsOf to retain the lifetime conversion and record errors. This matches Config.Record after the stateless runtime interface change. Production behavior and census digests are unchanged. Verified Plan 1 targeted and race tests, console claim/read/write-budget gates, root Moves and approved-copy gates, provision censuses, go build, internal vet, Darwin/Windows/Linux ARM64 builds, HA placement wiring tests, and rootrunner-tagged host test compilation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+8
−8
internal/host/haplacement_root_linux_test.go+4 −4internal/host/haplacement_wiring_test.go+4 −4
CI failed — run details
Intent
Attributed to this commit: 8.78 g CO₂e (1,137,353 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-replicas-1-runtime, 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/host/haplacement_root_linux_test.go b/internal/host/haplacement_root_linux_test.go| index 815f5d188..a56e6b7a3 100644 |
| --- a/internal/host/haplacement_root_linux_test.go |
| +++ b/internal/host/haplacement_root_linux_test.go |
| @@ -136,15 +136,15 @@ func TestColdPlacementRootAgent(t *testing.T) { |
| reg, err := registry.Open(filepath.Join(data, "registry.db")) |
| lifecycleCheck(t, "edge registry", err) |
| defer reg.Close() |
| - cfg := activator.Config{Bucket: "data", Region: "eu-west-1", Prefix: "instances", Idle: time.Hour, Record: func(ctx context.Context, rt registry.Route) (provision.LifetimeEntry, error) { |
| + cfg := activator.Config{Bucket: "data", Region: "eu-west-1", Prefix: "instances", Idle: time.Hour, Record: func(ctx context.Context, rt registry.Route) (activator.RecordFacts, error) { |
| r, _, err := provision.FindRecordByHost(ctx, store, rt.Host) |
| if err != nil { |
| - return provision.LifetimeEntry{}, err |
| + return activator.RecordFacts{}, err |
| } |
| if r == nil { |
| - return provision.LifetimeEntry{}, os.ErrNotExist |
| + return activator.RecordFacts{}, os.ErrNotExist |
| } |
| - return provision.LifetimeEntryOf(*r) |
| + return activator.RecordFactsOf(*r) |
| }} |
| lease.SetSelf(hafresh.Self{Ref: ref, IID: "i-" + ref, Account: "111122223333", Region: "eu-west-1"}) |
| lifecycleCheck(t, "obligation store", lease.SetObligationDir(filepath.Join(data, "obligations"))) |
diff --git a/internal/host/haplacement_wiring_test.go b/internal/host/haplacement_wiring_test.go| index 181467344..b7f0dea8b 100644 |
| --- a/internal/host/haplacement_wiring_test.go |
| +++ b/internal/host/haplacement_wiring_test.go |
| @@ -356,15 +356,15 @@ func TestColdPlacementProcess(t *testing.T) { |
| t.Fatal(err) |
| } |
| defer reg.Close() |
| - cfg := activator.Config{Bucket: locktest.FixtureBucket, Region: "eu-west-1", Prefix: "instances", Idle: time.Hour, Record: func(ctx context.Context, rt registry.Route) (provision.LifetimeEntry, error) { |
| + cfg := activator.Config{Bucket: locktest.FixtureBucket, Region: "eu-west-1", Prefix: "instances", Idle: time.Hour, Record: func(ctx context.Context, rt registry.Route) (activator.RecordFacts, error) { |
| rec, _, err := provision.FindRecordByHost(ctx, release.NewDirStore(os.Getenv("COLD_PLACEMENT_STORE")), rt.Host) |
| if err != nil { |
| - return provision.LifetimeEntry{}, err |
| + return activator.RecordFacts{}, err |
| } |
| if rec == nil { |
| - return provision.LifetimeEntry{}, os.ErrNotExist |
| + return activator.RecordFacts{}, os.ErrNotExist |
| } |
| - return provision.LifetimeEntryOf(*rec) |
| + return activator.RecordFactsOf(*rec) |
| }} |
| lease.SetSelf(hafresh.Self{Ref: ref, IID: "i-" + ref, Account: "111122223333", Region: "eu-west-1"}) |
| if err := lease.SetObligationDir(filepath.Join(root, "obligations")); err != nil { |