Update pre-commit hooks to use nextest for all tests #70
No reviewers
Labels
No labels
adr
automated
bug
chore
dependencies
documentation
enhancement
epic
github-actions
P1-high
P2-medium
P3-low
release
research
rust
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/eventcore!70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "update-precommit-nextest"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR aligns pre-commit hooks with developer expectations that the entire ecosystem should be kept working.
Changes
Why
Developers are expected to maintain the entire codebase, including examples. The pre-commit hooks should match what CI runs to catch issues early.
Testing
All tests pass locally with PostgreSQL databases running via docker-compose.
Definition of Done Checklist
Please ensure all items in this checklist are completed before merging:
Pull Request Overview
This PR streamlines the test workflow by switching pre-commit hooks to
cargo nextest, removes placeholder benchmark modules that were causing failures, and stabilizes a flaky database test by increasing its timeout.cargo nextest runhook.Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
tokio::testand added aTestResourceManagerhelpertest_query_timeout_configurationto 500 msbenchmarksmodule placeholderread_streamtoread_streamsand flattened payloads for assertionscargo testhooks with a unifiedcargo nextestComments suppressed due to low confidence (2)
eventcore/examples/resource_lifecycle_example.rs:484
Duration. Consider addinguse std::time::Duration;at the top of the test module to resolve this.eventcore-examples/src/distributed_ecommerce_example.rs:1400