From fa921c26bade47634506b57b32713421f976ae22 Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 12:00:46 +0000 Subject: =?UTF-8?q?sandbox:=20failure-mode=20tier=20=E2=80=94=20a=20FakeBa?= =?UTF-8?q?ckend=20that=20breaks=20on=20purpose?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The recovery paths a remote pool makes newly reachable are now executed, not described. A decorator over the loopback backend injects the four faults that matter: a sandbox that vanishes mid-run (the step fails, the lease expires, the reaper requeues, a healthy pool finishes from the checkpoints — I5 across the sandbox boundary); a TTL that bites mid-build (a failed step, not a retry-burned one); a pool at quota (the build blocks on sandbox-pool using the same blocked machinery as missing deps, rather than failing on an infrastructure fact); and a sandbox whose pacman -Q lies about the installed world (provisioning refuses with a dedicated world-mismatch class, so 'the sandbox lied' never reads as 'the sandbox broke'). Two error classes carry that vocabulary: PoolExhausted — capacity, so wait, never retry — and WorldMismatch — fail-closed, never retried. The remote and kata acquire timeouts now speak the first, which is what makes a full pool a queue fact instead of a build failure. --- src/sandbox/kata.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sandbox') diff --git a/src/sandbox/kata.rs b/src/sandbox/kata.rs index 7a83f89..9592dca 100644 --- a/src/sandbox/kata.rs +++ b/src/sandbox/kata.rs @@ -324,7 +324,7 @@ impl SandboxBackend for KataBackend { Err(_) => { self.pending.lock().unwrap().remove(&id); let _ = self.provisioner.reclaim(&id); - return Err(Error::other(format!( + return Err(Error::pool_exhausted(format!( "sandbox {id} for profile {} never dialed in within its TTL", spec.profile ))); -- cgit v1.2.3