R-1342: a restore copy under the stable-start watch is not deletable (D62 gap); an app removed during the watch raises no alarm — tests red first; commit only
gates / gates (push) Successful in 31s

This commit is contained in:
admin committed 2026-10-29 11:16:13 +01:00
1 parent 6c72e3ff34
commit 652a690e5d
10 files changed
+231 -1

No files matched your search

+11
View File
@@ -3197,6 +3197,17 @@ func (a *stackAdapter) StopStack(name string) error {
return a.mgr.StopStack(name)
}
// StackRemoved answers backup's optional StackRemovalReporter (R-1342): the app is known and no longer installed — a
// stable-start watch then ends quietly instead of alarming „did not start". An app this box does not know at all is
// not „removed" (no answer → the watch goes on as before).
func (a *stackAdapter) StackRemoved(name string) bool {
s, ok := a.mgr.GetStack(name)
return ok && !s.Deployed
}
// The watch reaches StackRemoved through a type assertion; this line makes the adapter's answer a compile-time fact.
var _ backup.StackRemovalReporter = (*stackAdapter)(nil)
// IsDeploying answers backup's optional deployingReporter (R-634): the volume leg asks it again
// immediately before it stops an app, because its list is taken once at the start of the run.
func (a *stackAdapter) IsDeploying(name string) bool {