feat(supabase): verification retry by effective cause

resource_limit (intrinsic to the frozen input: frame, input or output cap,
SIGXCPU, SIGABRT, SIGSYS) and verdict_refused close the round at the first
occurrence; timeout, unavailable (now also an external SIGKILL) and
lease_expired keep the 2/5/10/20 s retries up to five attempts. pgTAP 021: 89;
sandbox case k closes at attempt 1.
This commit is contained in:
bchanot committed 2026-11-01 23:01:30 +01:00
1 parent c98a9c8f82
commit a5844b9d56
8 files changed
+156 -46

No files matched your search

+4 -2
View File
@@ -365,7 +365,7 @@ fn tracked_an_object_over_the_policy_is_reported_drawing_missing() {
// Tracked misclassification (owner brief 2026-11-01), not fixed: a document naming enough
// drawings that the frame header passes 64 KiB is refused by the parent's own framing and
// reported `resource_limit` (a worker failure, retried) where `caps` would name it.
// reported `resource_limit` (a definitive worker failure) where `caps` would name it.
#[test]
fn tracked_a_header_over_64_kib_is_reported_resource_limit() {
let rows = vec![row(); 600];
@@ -378,6 +378,7 @@ fn tracked_a_header_over_64_kib_is_reported_resource_limit() {
fake.calls().last().unwrap(),
&fail_call(codes::RESOURCE_LIMIT)
);
assert_eq!(fake.names().iter().filter(|n| *n == "fail").count(), 1);
}
#[test]
@@ -435,7 +436,8 @@ fn every_child_limit_maps_to_its_closed_code() {
ChildOutcome::Signalled { signal: 24 },
codes::RESOURCE_LIMIT,
),
(ChildOutcome::Signalled { signal: 9 }, codes::RESOURCE_LIMIT),
(ChildOutcome::Signalled { signal: 9 }, codes::UNAVAILABLE),
(ChildOutcome::Signalled { signal: 15 }, codes::UNAVAILABLE),
(ChildOutcome::Signalled { signal: 6 }, codes::RESOURCE_LIMIT),
(
ChildOutcome::Signalled { signal: 31 },