Skip to content

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 into
ModernRelay:mainfrom
azimafroozeh:azim/0486-bench-not-finished
Nov 29, 2026
Merged

azimafroozeh merged 2 commits into
ModernRelay:mainfrom
azimafroozeh:azim/0486-bench-not-finished

Conversation

@azimafroozeh

Copy link
Copy Markdown
Collaborator

Two numbers bound one measured step, the catalog's deadline_seconds from Begin and the workload's timeout_ms over 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 on operation_deadline_exceeded under the catalog's deadline, every workload declaring timeout_ms at the parser's cap, and measures none of the scenarios after it.

The workload's timeout_ms is the one budget: the planner fills the plan's protocol.deadline_seconds from 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's operation_deadline_exceeded or the worker's typed gqt_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 carrying deadline_seconds as an unknown field, a frozen plan whose budget is not its workload's timeout_ms is 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_seconds refused 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 pin not_finished absent 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 Protocol and 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_finished is serialized only when non-empty, runner_output_version stays 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 its censored record 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 before tiny-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 with release_build_required; no run of them is on record.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-29T22:11:36.574795Z
We couldn’t complete this review. Comment @codex review to try again.
c8ed962 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@azimafroozeh
azimafroozeh merged commit d13409c into ModernRelay:main Nov 29, 2026
35 checks passed
@azimafroozeh
azimafroozeh deleted the azim/0486-bench-not-finished branch November 29, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant