Skip to content

Parse each execution's output when it arrives - #1586

Open
epompeii wants to merge 1 commit into
u/ep/experiment/syncfrom
u/ep/experiment/results
Open

epompeii wants to merge 1 commit into
u/ep/experiment/syncfrom
u/ep/experiment/results

Conversation

@epompeii

Copy link
Copy Markdown
Member

The server now parses each execution's output when it arrives, so a remote job whose output Bencher cannot read fails after that run, not after its last.

How

  • Parse on arrival: when an execution's result is stored, the server parses its output with the job's adapter, at the job's BMF version and settings, through the same code the final processing uses. Parsing writes no metrics; the report is still written once, at the end, from every execution.
  • Output that cannot be read fails the job at once, with or without --allow-failure: --allow-failure covers a run that fails, not output Bencher cannot read. The job's other executions in flight are canceled, its error names the iteration and the parse error, and its report's parse is marked failed, all in the transaction that ends the job.
  • What is parsed: a clean run. A Failed message fails the job before any parse; a run skipped under --allow-failure has nothing to parse.
  • The parse holds no write lock.
  • The runner protocol pages in 9 languages say when the server parses, and the lifecycle row names every cause of a failed job.

Tests

A job whose first or later execution cannot be read fails after it, with and without --allow-failure; a second unreadable file fails its iteration; an unreadable execution cancels another in flight; a readable job stores the same report as before; a skipped run is not parsed; a Failed is never parsed; a BMF version 1 job with a non-JSON adapter parses on arrival, and version 0 output on a version 1 job is refused on arrival with the final processing's text.

@epompeii
epompeii added this pull request to stack #1583 November 26, 2026 00:41
@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

ProjectBencher
Branchu/ep/experiment/results
Testbedintel-v1
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
microseconds (µs)
(Result Δ%)
Upper Boundary
microseconds (µs)
(Limit %)
Adapter::Json📈 view plot
🚷 view threshold
5.30 µs
(+1.91%)Baseline: 5.20 µs
5.49 µs
(96.59%)
Adapter::Magic (JSON)📈 view plot
🚷 view threshold
5.11 µs
(+1.47%)Baseline: 5.04 µs
5.31 µs
(96.32%)
Adapter::Magic (Rust)📈 view plot
🚷 view threshold
26.49 µs
(-1.32%)Baseline: 26.84 µs
28.61 µs
(92.57%)
Adapter::Rust📈 view plot
🚷 view threshold
4.67 µs
(+4.27%)Baseline: 4.48 µs
4.75 µs
(98.27%)
Adapter::RustBench📈 view plot
🚷 view threshold
4.63 µs
(+3.52%)Baseline: 4.47 µs
4.75 µs
(97.49%)
🐰 View full continuous benchmarking report in Bencher

@epompeii
epompeii marked this pull request as ready for review November 26, 2026 01:37
@epompeii
epompeii marked this pull request as draft November 26, 2026 13:43
@epompeii
epompeii force-pushed the u/ep/experiment/results branch from 9310c90 to 435bd27 Compare December 1, 2026 19:07
@bencher-cloud

bencher-cloud Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

🐰 Bencher Report

ProjectBencher
Branchu/ep/experiment/results
Testbedintel-v1
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
microseconds (µs)
(Result Δ%)
Upper Boundary
microseconds (µs)
(Limit %)
Adapter::Json📈 view plot
🚷 view threshold
5.32 µs
(+2.21%)Baseline: 5.20 µs
5.49 µs
(96.88%)
Adapter::Magic (JSON)📈 view plot
🚷 view threshold
5.13 µs
(+1.85%)Baseline: 5.04 µs
5.31 µs
(96.67%)
Adapter::Magic (Rust)📈 view plot
🚷 view threshold
7.67 µs
(-71.11%)Baseline: 26.55 µs
36.28 µs
(21.14%)
Adapter::Rust📈 view plot
🚷 view threshold
4.54 µs
(+1.42%)Baseline: 4.48 µs
4.74 µs
(95.85%)
Adapter::RustBench📈 view plot
🚷 view threshold
4.53 µs
(+1.28%)Baseline: 4.47 µs
4.73 µs
(95.73%)
🐰 View full continuous benchmarking report in Bencher

Each execution's output is parsed with the job's adapter as soon as it
arrives, so a job whose output cannot be read fails after that
execution instead of after its last. The report is still written once,
at the end, from every stored output.
@epompeii
epompeii force-pushed the u/ep/experiment/results branch from 435bd27 to dd0ee55 Compare December 2, 2026 23:07
@epompeii
epompeii marked this pull request as ready for review December 3, 2026 00:31

This branch has not been deployed

No deployments
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