Skip to content

fix(bench): remove premature cancellation token call in history benchmark setup#54

Merged
deepjoy merged 1 commit into
mainfrom
benchmark-do-not-cancel
Mar 19, 2026
Merged

fix(bench): remove premature cancellation token call in history benchmark setup#54
deepjoy merged 1 commit into
mainfrom
benchmark-do-not-cancel

Conversation

@deepjoy
Copy link
Copy Markdown
Owner

@deepjoy deepjoy commented Mar 19, 2026

  • Removes the token.cancel() call from build_scheduler_with_history in benches/history.rs

Details

The token.cancel() was being called immediately after all tasks completed,
but before the Scheduler was returned to the benchmark harness. This caused
the scheduler's background run loop to be shut down prematurely — before
benchmarks had a chance to query history — leading to potential race conditions
or inaccurate measurements.

@deepjoy deepjoy enabled auto-merge (squash) March 19, 2026 02:01
@deepjoy deepjoy merged commit 38bf481 into main Mar 19, 2026
1 of 2 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 18, 2026
deepjoy pushed a commit that referenced this pull request Mar 19, 2026
## 🤖 New release

* `taskmill`: 0.5.0 -> 0.5.1 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## [0.5.1](v0.5.0...v0.5.1)
- 2026-03-19

### Fixed

- *(bench)* eliminate per-sample scheduler setup cost in history
benchmarks ([#55](#55))
- *(bench)* remove premature cancellation token call in history
benchmark setup ([#54](#54))
- *(ci)* bootstrap _benchmarks branch on first push to main
([#53](#53))
- *(ci)* restore stderr capture for benchmark output on main
([#51](#51))
- *(ci)* exclude lib target from cargo bench to fix benchmark CI
([#49](#49))

### Other

- decompose internal god objects into focused, single-responsibility
modules ([#56](#56))
- eliminate stringly-typed history status and DRY violations
([#52](#52))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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