gvisor: retry a failed probe soon; stop naming the unloaded probe
On v0.34.37 dev demo box-1 (gvisor mode), instance-control started while the update's journal.json still existed. The startup gVisor probe failed the exec-sandbox baseline, and every demo build was refused until the next five-minute probe. - probeLoop retries a failed probe from 10 s, doubling up to ProbeEvery. A passing probe keeps the full interval. - The gVisor probe unit is not named to systemctl while it is unloaded with no cgroup and no drop-in file. This silences the three "no ExecStart= Refusing" lines each probe logged. - The never-loaded gates check the drop-in file instead of the .d directory that cleanup leaves behind. Astra: no P1. Its P2 test gap was fixed (per-entry-point tests, checked by mutation). Census APPROVE on #280. CI's first run on the tip failed only activator TestLargeManifestReleaseThenKeep; that package is untouched here, and the re-run passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from gvisor-probe-retry into main.
8 files changed,
+289
−18
docs/superpowers/notes/census-proposal-gvisor-probe-retry.md+23 −0internal/instancectl/gvisor_never_loaded_test.go+143 −1internal/instancectl/gvisorprobe.go+17 −10internal/instancectl/probe_schedule_test.go+45 −0internal/instancectl/sandboxstop.go+29 −3internal/instancectl/server.go+23 −4internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-gvisor-probe-retry.tsv+8 −0
CI passed — run details
diff --git a/docs/superpowers/notes/census-proposal-gvisor-probe-retry.md b/docs/superpowers/notes/census-proposal-gvisor-probe-retry.md| new file mode 100644 |
| index 000000000..32c3bbf2e |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-gvisor-probe-retry.md |
| @@ -0,0 +1,23 @@ |
| +# Census approval: gvisor-probe-retry |
| + |
| +Ruling `census-ruling-gvisor-probe-retry`. The independent reviewer approves or rejects every change below, 1 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `internal/instancectl/sandboxstop.go` `Server.gvisorUnitNeverLoaded` | body | unchanged (1) | The drop-in check now looks for the drop-in file (<unit>.d/<gvisorDropInName>) rather than the .d directory, which removeGenFiles leaves behind; the cgroup check and the fixed family-glob list-units are unchanged and the listing moved into gvisorUnloaded. Absence of the file is what makes the template commandless; any error still keeps the full proof. No new path source: fixed DropInDir and validated unit names. | |
| + |
| +Envelopes re-pinned: `internal/instancectl`. |
| + |
| +Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner. |
| + |
| +Recorded dispositions, which each change must still satisfy: |
| + |
| +- `internal/instancectl/sandboxstop.go` `Server.gvisorUnitNeverLoaded`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-gvisor-update-dirs;basis=New: Lstat of the host-derived cgroup directory under the configured cgroup root and of <DropInDir>/<unit>.d (both must be absent), then `systemctl list-units --all --plain --no-legend --no-pager carlos-instance-gvisor@*.service` (fixed family glob) and an exact-name match in Go. Any error or presence returns false so the full proof runs. |
| + |
| +New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff: |
| + |
| +- new `internal/instancectl/sandboxstop.go:Server.gvisorProbeNeverLoaded`: reads +file:Lstat; written legacy, accepted-legacy, frozen |
| + |
| +Seal: `ab10145ee873e26b87a653f728cd0c9737592fefe94b659ac5988201c195cb7a` → `499c08fd29787c5de2aa0197c05f82f6db0ab7760eb7d980bb24211e289e4c24`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-gvisor-probe-retry.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/internal/instancectl/gvisor_never_loaded_test.go b/internal/instancectl/gvisor_never_loaded_test.go| index 0296f48ee..fcbf36a16 100644 |
| --- a/internal/instancectl/gvisor_never_loaded_test.go |
| +++ b/internal/instancectl/gvisor_never_loaded_test.go |
| @@ -28,6 +28,7 @@ func TestGVisorSiblingNeverLoadedIsNotNamed(t *testing.T) { |
| listErr error |
| cgroup bool |
| dropIn bool |
| + dropInDir bool |
| wantNamed bool |
| }{ |
| {name: "unlisted", listing: "carlos-instance-gvisor@other.example.service loaded inactive dead x\n"}, |
| @@ -36,6 +37,7 @@ func TestGVisorSiblingNeverLoadedIsNotNamed(t *testing.T) { |
| {name: "listed with marker column", listing: "● " + sibling + " loaded failed failed x\n", wantNamed: true}, |
| {name: "cgroup present", cgroup: true, wantNamed: true}, |
| {name: "drop-in present", dropIn: true, wantNamed: true}, |
| + {name: "empty drop-in directory", dropInDir: true}, |
| {name: "listing error", listErr: errors.New("bus"), wantNamed: true}, |
| } { |
| t.Run(tc.name, func(t *testing.T) { |
| @@ -54,11 +56,16 @@ func TestGVisorSiblingNeverLoadedIsNotNamed(t *testing.T) { |
| t.Fatal(err) |
| } |
| } |
| - if tc.dropIn { |
| + if tc.dropIn || tc.dropInDir { |
| if err := os.MkdirAll(filepath.Join(s.DropInDir, sibling+".d"), 0o755); err != nil { |
| t.Fatal(err) |
| } |
| } |
| + if tc.dropIn { |
| + if err := os.WriteFile(filepath.Join(s.DropInDir, sibling+".d", gvisorDropInName), []byte("[Service]\n"), 0o644); err != nil { |
| + t.Fatal(err) |
| + } |
| + } |
| if err := s.stopRunFamilies(context.Background(), host); err != nil { |
| t.Fatal(err) |
| } |
| @@ -109,3 +116,138 @@ func TestGVisorSiblingNeverLoadedBestEffortAndDemo(t *testing.T) { |
| } |
| } |
| } |
| + |
| +// The gVisor probe unit, between probes, has no drop-in, and its installed |
| +// template has an empty ExecStart on a gVisor-mode box: naming it to |
| +// systemctl only makes systemd log "Refusing" (three lines a probe on |
| +// v0.34.37 dev demo box-1). Unloaded, with no cgroup and no drop-in file, it |
| +// is proven stopped without its name; anything else keeps the full proof. |
| +// Each entry point is tested on its own server and call log. |
| +type probeGateFixture struct { |
| + s *Server |
| + calls []string |
| + removed []string |
| + active bool |
| + stopErr error |
| +} |
| + |
| +func newProbeGateFixture(t *testing.T, listing string, listErr error) *probeGateFixture { |
| + f := &probeGateFixture{} |
| + f.s = &Server{CgroupRoot: t.TempDir(), DropInDir: t.TempDir(), SandboxEffective: execsandbox.EffectiveGVisor} |
| + f.s.removeSandbox = func(id string) error { f.removed = append(f.removed, id); return nil } |
| + f.s.Systemctl = func(_ context.Context, args ...string) (string, error) { |
| + f.calls = append(f.calls, strings.Join(args, " ")) |
| + switch args[0] { |
| + case "list-units": |
| + return listing, listErr |
| + case "stop": |
| + if f.stopErr != nil { |
| + return "", f.stopErr |
| + } |
| + f.active = false |
| + } |
| + out := systemd257Stopped(args[len(args)-1]) |
| + if f.active { |
| + out = strings.NewReplacer("ActiveState=inactive", "ActiveState=active", "SubState=dead", "SubState=running", "MainPID=0", "MainPID=42").Replace(out) |
| + } |
| + return out, nil |
| + } |
| + return f |
| +} |
| + |
| +func (f *probeGateFixture) named() bool { |
| + for _, c := range f.calls { |
| + if !strings.HasPrefix(c, "list-units") && strings.Contains(c, gvisorProbeUnit) { |
| + return true |
| + } |
| + } |
| + return false |
| +} |
| + |
| +func (f *probeGateFixture) stopped() bool { |
| + for _, c := range f.calls { |
| + if c == "stop "+gvisorProbeUnit { |
| + return true |
| + } |
| + } |
| + return false |
| +} |
| + |
| +func TestGVisorProbeGoneSkipsAnUnloadedProbe(t *testing.T) { |
| + for _, tc := range []struct { |
| + name, listing string |
| + listErr error |
| + dropIn bool |
| + dropInDir bool |
| + wantNamed bool |
| + }{ |
| + {name: "unloaded"}, |
| + {name: "empty drop-in directory", dropInDir: true}, |
| + {name: "listed", listing: gvisorProbeUnit + " loaded inactive dead x\n", wantNamed: true}, |
| + {name: "drop-in present", dropIn: true, wantNamed: true}, |
| + {name: "listing error", listErr: errors.New("bus"), wantNamed: true}, |
| + } { |
| + t.Run(tc.name, func(t *testing.T) { |
| + f := newProbeGateFixture(t, tc.listing, tc.listErr) |
| + if tc.dropIn || tc.dropInDir { |
| + if err := os.MkdirAll(filepath.Join(f.s.DropInDir, gvisorProbeUnit+".d"), 0o755); err != nil { |
| + t.Fatal(err) |
| + } |
| + } |
| + if tc.dropIn { |
| + if err := os.WriteFile(filepath.Join(f.s.DropInDir, gvisorProbeUnit+".d", gvisorDropInName), []byte("[Service]\n"), 0o644); err != nil { |
| + t.Fatal(err) |
| + } |
| + } |
| + if err := f.s.proveGVisorProbeGone(context.Background()); err != nil { |
| + t.Fatal(err) |
| + } |
| + if f.named() != tc.wantNamed { |
| + t.Fatalf("named = %v, want %v\n%s", f.named(), tc.wantNamed, strings.Join(f.calls, "\n")) |
| + } |
| + }) |
| + } |
| +} |
| + |
| +func TestGVisorProbeFinishKeepsFilesUntilStopIsProven(t *testing.T) { |
| + listed := gvisorProbeUnit + " loaded active running x\n" |
| + for _, tc := range []struct { |
| + name string |
| + listing string |
| + active bool |
| + stopErr error |
| + populated bool |
| + wantErr bool |
| + wantNamed bool |
| + wantStop bool |
| + }{ |
| + {name: "unloaded: files removed without the name"}, |
| + {name: "listed and active, no drop-in: stopped, then removed", listing: listed, active: true, wantNamed: true, wantStop: true}, |
| + {name: "stop fails: files kept", listing: listed, active: true, stopErr: errors.New("bus"), wantErr: true, wantNamed: true, wantStop: true}, |
| + {name: "populated cgroup: files kept", populated: true, wantErr: true, wantNamed: true}, |
| + } { |
| + t.Run(tc.name, func(t *testing.T) { |
| + f := newProbeGateFixture(t, tc.listing, nil) |
| + f.active, f.stopErr = tc.active, tc.stopErr |
| + if tc.populated { |
| + dir := filepath.Join(f.s.CgroupRoot, parentSlices, gvisorProbeUnit) |
| + if err := os.MkdirAll(dir, 0o755); err != nil { |
| + t.Fatal(err) |
| + } |
| + if err := os.WriteFile(filepath.Join(dir, "cgroup.events"), []byte("populated 1\nfrozen 0\n"), 0o644); err != nil { |
| + t.Fatal(err) |
| + } |
| + } |
| + err := f.s.finishGVisorProbe(context.Background()) |
| + if (err != nil) != tc.wantErr { |
| + t.Fatalf("err = %v\n%s", err, strings.Join(f.calls, "\n")) |
| + } |
| + if f.named() != tc.wantNamed || f.stopped() != tc.wantStop { |
| + t.Fatalf("named=%v stopped=%v\n%s", f.named(), f.stopped(), strings.Join(f.calls, "\n")) |
| + } |
| + if removed := len(f.removed) > 0; removed == tc.wantErr { |
| + t.Fatalf("files removed = %v with err %v", removed, err) |
| + } |
| + }) |
| + } |
| +} |
diff --git a/internal/instancectl/gvisorprobe.go b/internal/instancectl/gvisorprobe.go| index 3d5b9342a..b40817b28 100644 |
| --- a/internal/instancectl/gvisorprobe.go |
| +++ b/internal/instancectl/gvisorprobe.go |
| @@ -75,6 +75,9 @@ func (s *Server) gvisorReady(ctx context.Context) error { |
| } |
| func (s *Server) proveGVisorProbeGone(ctx context.Context) error { |
| + if s.gvisorProbeNeverLoaded(ctx) { |
| + return nil |
| + } |
| out, err := s.Systemctl(ctx, "show", "-p", runProofProperties, gvisorProbeUnit) |
| if err != nil { |
| return err |
| @@ -95,18 +98,22 @@ func (s *Server) proveGVisorProbeGone(ctx context.Context) error { |
| return sandboxGroupEmpty(filepath.Join(s.CgroupRoot, want, "cgroup.events")) |
| } |
| func (s *Server) finishGVisorProbe(ctx context.Context) error { |
| - out, err := s.Systemctl(ctx, "show", "-p", runProofProperties, gvisorProbeUnit) |
| - if err != nil { |
| - return err |
| - } |
| - m := parseShow(out) |
| - if m["ActiveState"] != "inactive" || m["SubState"] != "dead" || !runInactive(m) { |
| - if _, err := s.Systemctl(ctx, "stop", gvisorProbeUnit); err != nil { |
| + // A probe unit systemd has not loaded, with no cgroup and no drop-in, |
| + // is already stopped; only its files are left to remove. |
| + if !s.gvisorProbeNeverLoaded(ctx) { |
| + out, err := s.Systemctl(ctx, "show", "-p", runProofProperties, gvisorProbeUnit) |
| + if err != nil { |
| + return err |
| + } |
| + m := parseShow(out) |
| + if m["ActiveState"] != "inactive" || m["SubState"] != "dead" || !runInactive(m) { |
| + if _, err := s.Systemctl(ctx, "stop", gvisorProbeUnit); err != nil { |
| + return err |
| + } |
| + } |
| + if err := s.proveGVisorProbeGone(ctx); err != nil { |
| return err |
| } |
| - } |
| - if err := s.proveGVisorProbeGone(ctx); err != nil { |
| - return err |
| } |
| if _, err := s.removeGenFiles(gvisorProbeUnit, gvisorRemoveBundle); err != nil { |
diff --git a/internal/instancectl/probe_schedule_test.go b/internal/instancectl/probe_schedule_test.go| new file mode 100644 |
| index 000000000..01a81a574 |
| --- /dev/null |
| +++ b/internal/instancectl/probe_schedule_test.go |
| @@ -0,0 +1,45 @@ |
| +package instancectl |
| + |
| +import ( |
| + "context" |
| + "slices" |
| + "testing" |
| + "time" |
| +) |
| + |
| +// A failed probe is retried soon, backing off to ProbeEvery; a passing one |
| +// waits the full interval. On v0.34.37 dev demo box-1 the startup probe |
| +// failed while the update's journal was still on disk, and every demo build |
| +// was refused until the next five-minute probe. |
| +func TestProbeScheduleRetriesFailuresSooner(t *testing.T) { |
| + const every = 5 * time.Minute |
| + // Verdicts after each run: fail, fail, fail, pass, pass, fail, then |
| + // failures until the backoff reaches the interval. |
| + verdicts := []bool{false, false, false, false, true, true, false, false, false, false, false, false, false} |
| + var waits []time.Duration |
| + runs := 0 |
| + ctx, cancel := context.WithCancel(context.Background()) |
| + defer cancel() |
| + ready := func() bool { return verdicts[runs] } |
| + run := func(context.Context) { |
| + runs++ |
| + if runs == len(verdicts)-1 { |
| + cancel() |
| + } |
| + } |
| + after := func(d time.Duration) <-chan time.Time { |
| + if ctx.Err() != nil { |
| + return nil // never fires: the loop must leave on ctx |
| + } |
| + waits = append(waits, d) |
| + c := make(chan time.Time, 1) |
| + c <- time.Time{} |
| + return c |
| + } |
| + probeSchedule(ctx, run, ready, every, after) |
| + s := 10 * time.Second |
| + want := []time.Duration{s, 2 * s, 4 * s, 8 * s, every, every, s, 2 * s, 4 * s, 8 * s, 16 * s, every} |
| + if !slices.Equal(waits, want) { |
| + t.Fatalf("waits\n got %v\nwant %v", waits, want) |
| + } |
| +} |
diff --git a/internal/instancectl/sandboxstop.go b/internal/instancectl/sandboxstop.go| index 9858a9a76..5670839be 100644 |
| --- a/internal/instancectl/sandboxstop.go |
| +++ b/internal/instancectl/sandboxstop.go |
| @@ -160,7 +160,7 @@ func (s *Server) sandboxRunFilesPresent(host string) (bool, error) { |
| // only a per-start drop-in fills, so `systemctl show` or `stop` of a name |
| // that was never started makes systemd load it and log "Service has no |
| // ExecStart=... Refusing" on every stop of a systemd-mode box. The proof |
| -// here: no cgroup directory, no drop-in directory a start could have used, |
| +// here: no cgroup directory, no drop-in file a start could have used, |
| // and systemd does not list the name among the units it holds (a running |
| // unit, or one with a queued job, is always loaded). The listing asks for |
| // the family glob, never the escaped name: fnmatch would read the \x2d |
| @@ -172,13 +172,39 @@ func (s *Server) gvisorUnitNeverLoaded(ctx context.Context, host, unit string) b |
| } |
| for _, path := range []string{ |
| filepath.Join(s.CgroupRoot, parentSlices, SliceName(host), unit), |
| - filepath.Join(s.DropInDir, unit+".d"), |
| + filepath.Join(s.DropInDir, unit+".d", gvisorDropInName), |
| } { |
| if _, err := os.Lstat(path); !errors.Is(err, os.ErrNotExist) { |
| return false |
| } |
| } |
| - out, err := s.Systemctl(ctx, "list-units", "--all", "--plain", "--no-legend", "--no-pager", UnitPrefixGVisor+"*.service") |
| + return s.gvisorUnloaded(ctx, UnitPrefixGVisor+"*.service", unit) |
| +} |
| + |
| +// gvisorProbeNeverLoaded is gvisorUnitNeverLoaded for the gVisor probe |
| +// unit, which has no instance slice: its cgroup sits directly under the |
| +// instances slice. Between probes it has no drop-in, and on a gVisor-mode |
| +// box its installed template has an empty ExecStart, so naming it to |
| +// systemctl only makes systemd load it and log "Refusing". |
| +func (s *Server) gvisorProbeNeverLoaded(ctx context.Context) bool { |
| + if s.Systemctl == nil || s.CgroupRoot == "" || s.DropInDir == "" { |
| + return false |
| + } |
| + for _, path := range []string{ |
| + filepath.Join(s.CgroupRoot, parentSlices, gvisorProbeUnit), |
| + filepath.Join(s.DropInDir, gvisorProbeUnit+".d", gvisorDropInName), |
| + } { |
| + if _, err := os.Lstat(path); !errors.Is(err, os.ErrNotExist) { |
| + return false |
| + } |
| + } |
| + return s.gvisorUnloaded(ctx, gvisorProbeUnit, gvisorProbeUnit) |
| +} |
| + |
| +// gvisorUnloaded lists the loaded units matching pattern (a fixed glob, never |
| +// an escaped name) and reports whether unit is absent. Any error is false. |
| +func (s *Server) gvisorUnloaded(ctx context.Context, pattern, unit string) bool { |
| + out, err := s.Systemctl(ctx, "list-units", "--all", "--plain", "--no-legend", "--no-pager", pattern) |
| if err != nil { |
| return false |
| } |
diff --git a/internal/instancectl/server.go b/internal/instancectl/server.go| index d14a83b29..29353c073 100644 |
| --- a/internal/instancectl/server.go |
| +++ b/internal/instancectl/server.go |
| @@ -1540,14 +1540,33 @@ func (s *Server) probeLoop(ctx context.Context, firstProbe chan<- struct{}) { |
| go s.denyLoop(ctx) |
| s.RunProbe(ctx) |
| close(firstProbe) |
| - t := time.NewTicker(s.ProbeEvery) |
| - defer t.Stop() |
| + probeSchedule(ctx, s.RunProbe, func() bool { _, ready := s.Ready(); return ready }, s.ProbeEvery, time.After) |
| +} |
| + |
| +// probeRetryFirst is the first wait after a failed probe. |
| +var probeRetryFirst = 10 * time.Second |
| + |
| +// probeSchedule re-runs the probe every `every` while it passes. After a |
| +// failure it retries sooner, from probeRetryFirst doubling up to `every`: a |
| +// probe that failed for a passing reason (an update's journal still on |
| +// disk when control started, a runtime set still installing) would |
| +// otherwise keep the box not ready, and refuse every demo build, for a whole |
| +// interval after the reason is gone. |
| +func probeSchedule(ctx context.Context, run func(context.Context), ready func() bool, every time.Duration, after func(time.Duration) <-chan time.Time) { |
| + retry := probeRetryFirst |
| for { |
| + wait := every |
| + if ready() { |
| + retry = probeRetryFirst |
| + } else { |
| + wait = min(retry, every) |
| + retry = min(retry*2, every) |
| + } |
| select { |
| case <-ctx.Done(): |
| return |
| - case <-t.C: |
| - s.RunProbe(ctx) |
| + case <-after(wait): |
| + run(ctx) |
| } |
| } |
| } |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 1b8631110..263d9e39d 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -147,3 +147,4 @@ plan14-root-reads-cli-registry-words.tsv 8924fafc5b6083858a72f45c764081abe3bcad6 |
| plan14-root-reads-billing-dashboard-1.tsv 8924fafc5b6083858a72f45c764081abe3bcad6a6de71901470586c076c64bb6 |
| plan14-root-reads-billing-dash-3-cost.tsv 8924fafc5b6083858a72f45c764081abe3bcad6a6de71901470586c076c64bb6 |
| plan14-root-reads-no-negative-prime-724.tsv ab10145ee873e26b87a653f728cd0c9737592fefe94b659ac5988201c195cb7a |
| +plan14-root-reads-gvisor-probe-retry.tsv 499c08fd29787c5de2aa0197c05f82f6db0ab7760eb7d980bb24211e289e4c24 |
diff --git a/internal/provision/testdata/plan14-root-reads-gvisor-probe-retry.tsv b/internal/provision/testdata/plan14-root-reads-gvisor-probe-retry.tsv| new file mode 100644 |
| index 000000000..6286d359d |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-gvisor-probe-retry.tsv |
| @@ -0,0 +1,8 @@ |
| +# Census overlay gvisor-probe-retry, written by census-propose (#369). census-ruling-gvisor-probe-retry, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-gvisor-probe-retry.md. |
| +# 1 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 1 new dispositions: 0 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +@legacy bfbe261a3093faa4e0fafe88cdbaafc4ae5ce1bb9c0f03624a68fca6d408861e internal/instancectl/sandboxstop.go Server.gvisorUnitNeverLoaded legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-update-dirs;basis=New: Lstat of the host-derived cgroup directory under the configured cgroup root and of <DropInDir>/<unit>.d (both must be absent), then `systemctl list-units --all --plain --no-legend --no-pager carlos-instance-gvisor@*.service` (fixed family glob) and an exact-name match in Go. Any error or presence returns false so the full proof runs.;rev3=census-ruling-gvisor-probe-retry;basis=The drop-in check now looks for the drop-in file (<unit>.d/<gvisorDropInName>) rather than the .d directory, which removeGenFiles leaves behind; the cgroup check and the fixed family-glob list-units are unchanged and the listing moved into gvisorUnloaded. Absence of the file is what makes the template commandless; any error still keeps the full proof. No new path source: fixed DropInDir and validated unit names. file:Lstat@397 c6f757c3d4b26600d00337886f6665770b966acfd3b42246f0aecf8545398979 |
| +@legacy 987a1ff5ca6de1320fff6f3eff18aad216f45b542d0f6e9b670b1d9c7cd02d83 internal/instancectl/sandboxstop.go Server.gvisorProbeNeverLoaded legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-probe-retry;basis=New. The probe-unit form of gvisorUnitNeverLoaded: Lstat of the fixed probe cgroup (CgroupRoot/<instances slice>/carlos-instance-gvisor-probe.service) and of its drop-in file under the fixed DropInDir, then list-units of the fixed probe unit name; only all-absent skips the show/stop proof, any error keeps it. file:Lstat@338 4651bb30164b2f017325b2adea837e76834de4ccaba5181ba39dec2e1b2aa34f |
| +internal/instancectl/sandboxstop.go Server.gvisorUnitNeverLoaded legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-update-dirs;basis=New: Lstat of the host-derived cgroup directory under the configured cgroup root and of <DropInDir>/<unit>.d (both must be absent), then `systemctl list-units --all --plain --no-legend --no-pager carlos-instance-gvisor@*.service` (fixed family glob) and an exact-name match in Go. Any error or presence returns false so the full proof runs.;rev3=census-ruling-gvisor-probe-retry;basis=The drop-in check now looks for the drop-in file (<unit>.d/<gvisorDropInName>) rather than the .d directory, which removeGenFiles leaves behind; the cgroup check and the fixed family-glob list-units are unchanged and the listing moved into gvisorUnloaded. Absence of the file is what makes the template commandless; any error still keeps the full proof. No new path source: fixed DropInDir and validated unit names. file:Lstat@397 c6f757c3d4b26600d00337886f6665770b966acfd3b42246f0aecf8545398979 |
| +internal/instancectl/sandboxstop.go Server.gvisorProbeNeverLoaded legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-probe-retry;basis=New. The probe-unit form of gvisorUnitNeverLoaded: Lstat of the fixed probe cgroup (CgroupRoot/<instances slice>/carlos-instance-gvisor-probe.service) and of its drop-in file under the fixed DropInDir, then list-units of the fixed probe unit name; only all-absent skips the show/stop proof, any error keeps it. file:Lstat@338 4651bb30164b2f017325b2adea837e76834de4ccaba5181ba39dec2e1b2aa34f |
| +@coverage internal/instancectl bcb93e855854b75abb1eea471b70f450ae08224dde5676b4dc7caed316c6c80e |