Repository navigation
fix(volmgr): use a time budget for push dependency outages - #351
Draft
mabdelraouf-pplx wants to merge 2 commits into
Draft
mabdelraouf-pplx wants to merge 2 commits into
mabdelraouf-pplx wants to merge 2 commits into
Conversation
Use an absolute configurable retry deadline for push credential and S3 dependency failures while preserving ordinary error budgets and independent suspend artifacts. Co-authored-by: pplx-teammatebot <devtools+teammatebot@perplexity.ai>
Co-authored-by: pplx-teammatebot <devtools+teammatebot@perplexity.ai>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #349. Pushes that fail because a storage dependency is unavailable should not spend their entire retry budget in five attempts.
SPACE_VOLMGR_DEPENDENCY_RETRY_BUDGET_SECS/--dependency-retry-budget-secs; zero restores the count-only policy.Severity: high. A dependency outage can otherwise cause durable uploads to become permanently failed before recovery.
Artifact retention and scope
The immutable sandbox-manager artifact and volume-manager's disposable staging copy are different files. While the deadline remains open, the volume-manager staging copy is retained for retries. At final expiry its existing cleanup policy still applies, as does restart orphan cleanup. Neither deletes the independent sandbox-manager source: #349 validates that exact source before allocating a new push. A regression checks both paths explicitly. This avoids leaking every permanently failed transfer's staging copy indefinitely.
No new schema, daemon, monitor, production configuration, or private composition change. Pulls, local codec/input errors, successful cleanup, and unrelated job executors keep their existing policies. Library callers constructing
VolmgrRunConfigmust supply the new duration when updating their pin.Proof and validation
Failed, while a dependency deadline leaves the persisted jobPending; expiration then becomesFailed. Common-jobs suite: 58 passed.handle_failure's original count-only exhaustion decision restored,dependency_deadline_not_attempt_count_controls_durable_retryfails ("failed"vs expected"pending"). Restore the deadline-aware decision, unchanged test passes. This is a targeted policy-toggle baseline with the new error API present, not a claim that this new test compiles on pristine main.TransferExecutor::execute, synthetic object store: at five attempts / five hours, the staged copy survives; at seven hours it is removed; the independent source remains. Zero disables the extension and a configured eight-hour budget preserves the copy at seven hours. Volume-manager suite: 210 passed.cargo arch: no required findings (37 advisory).7bd6ed9846cba5053f1189db35719dc1a222d0c4, a combined rerun of common-jobs, object-store, sandbox-manager, and volume-manager passed 58 + 76 + 1,576 + 210 tests (one pre-existing ignored sandbox-manager test). Exact-head CI: all checks passed, including full Rust tests, clippy, fmt, gateway traffic, and the aggregate gate. This remains draft as requested.Rollout and integration
FailedPreconditionandInternalfrom credential exchange are not sufficient to distinguish every permanent authority configuration problem from an outage. They receive the bounded dependency budget; explicit auth/input rejections do not. This is intentionally not message-string matching.AI assistance: Perplexity contributed the implementation, tests, and this description.
Created with Perplexity