Repository navigation
Run bench:live cases concurrently with a transient retry - #19
Merged
Merged
Conversation
Run live bench cases through a bounded worker pool (default 6, configurable via --concurrency <n> or BENCH_CONCURRENCY) instead of strictly sequentially. Each case keeps its own isolated run directory, and results are written into index-aligned slots and sorted by case index before reporting, so report ordering stays deterministic regardless of completion order. --concurrency 1 restores sequential execution. Retry a case once (after a short backoff) when its first attempt fails with a transient provider error: a non-zero exit whose stderr carries an HTTP 5xx/429, rate-limit, timeout, or connection signature, or a run that produced no valid v1 envelope at all. A valid envelope (including a gate-failing exit or one with findings/false positives) is a normal result and is never retried. A case that fails twice is recorded as an error, as before. Mock mode and the mock CI path are untouched.
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.
Two robustness improvements to the live benchmark harness (live mode only; mock and CI paths unchanged): a bounded worker pool (--concurrency / BENCH_CONCURRENCY, default 6, index-aligned slots + a final sort so output is deterministic regardless of completion order; --concurrency 1 restores sequential) and a single transient retry after a 2s backoff for cases that fail with a 5xx/429/timeout/network signature or an empty/invalid envelope (a scored envelope, including a gate-failing exit 1, is never retried). Mock bench stays 30/30; tsc and cargo test green.