Repository navigation
feat(bench): budget each scenario by its workload's timeout_ms and run on past one that overruns it - #1595
Merged
azimafroozeh merged 2 commits intoNov 29, 2026
Conversation
…n on past one that overruns it
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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 numbers bound one measured step, the catalog's
deadline_secondsfrom Begin and the workload'stimeout_msover the whole file; the suite loop fails fast on either stop, a budget exhaustion and a defect alike, and leaves every scenario after it unmeasured. The LDBC SNB suite stops at its Q10 scenario onoperation_deadline_exceededunder the catalog's deadline, every workload declaringtimeout_msat the parser's cap, and measures none of the scenarios after it.The workload's
timeout_msis the one budget: the planner fills the plan'sprotocol.deadline_secondsfrom it on every path that freezes a plan, the supervisor and the worker hold the step to that number, and the suite loop records a stop past it, the supervisor'soperation_deadline_exceededor the worker's typedgqt_budget_exceeded, as a not-finished row with the repetitions completed before it and their settled times, and runs on to the next scenario. The loader refuses a catalog carryingdeadline_secondsas an unknown field, a frozen plan whose budget is not its workload'stimeout_msis refused at every revalidation, every other runner code ends the run nonzero as a defect, and both failure documents carry the not-finished rows gathered before it.Catalog tests pin the budget read off the workload at nine rounding boundaries and refused outside the parser's range, a source override carrying its own budget, a frozen mismatch refused, a catalog carrying
deadline_secondsrefused by name at every level, and the point moving with the budget and coming back; the recorded identity fixture moves for the ten scenarios whose workloads declare a budget other than the catalog's old sixty seconds and for no other. Unit tests classify the three budget codes as rows, a stop on the first repetition as zero completed, the worker's stop as the budget code during the measured step alone, and every defect code as a failure; summary tests pinnot_finishedabsent when empty, present with its fields, and carried by both failure documents.For review: the decision to challenge is one number for the whole file and the measured step alike, a workload with heavy setup steps spending its budget before the query; the second is exit 0 for a run whose only incomplete scenarios ran past it, a caller reading the exit code and never the summary taking a run of unfinished scenarios for a measured one. The budget stays in
Protocoland the point identity under its old name with the identity version unchanged; a scenario whose workload declares a budget other than its catalog did is a new point, the ten in the public catalog among them.not_finishedis serialized only when non-empty,runner_output_versionstays 2 and the point identity version stays 1; a summary with every scenario finished is an unchanged document for every existing reader. A budget stop publishes no new record kind: a verified prefix keeps itscensoredrecord in archive mode, and a stop before the first verified sample publishes nothing. The four end-to-end tests, a scenario outrunning its workload's budget beforetiny-read, a defect in the scenario that follows one, a setup step past the budget as a defect, and a suite with every scenario finished, run under a release build in no CI job and no local step, a debug build refusing measurement withrelease_build_required; no run of them is on record.