chore: removing criterion benches#2475
Open
helio-frota wants to merge 1 commit into
Open
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR removes Criterion-based benchmark support from the workspace, including dependencies, bench targets, and associated source files in the fundamental module. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've found 1 issue, and left some high level feedback:
- The
[[bench]]entries inmodules/fundamental/Cargo.tomlstill referencebenches/bench-otel.rsand other removed files; either remove these entries or update them to avoid build/bench configuration errors. - Since all
benches/*.rsfiles inmodules/fundamentalare deleted, consider removing the now-emptybenchesdirectory from the module to keep the workspace structure tidy.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `[[bench]]` entries in `modules/fundamental/Cargo.toml` still reference `benches/bench-otel.rs` and other removed files; either remove these entries or update them to avoid build/bench configuration errors.
- Since all `benches/*.rs` files in `modules/fundamental` are deleted, consider removing the now-empty `benches` directory from the module to keep the workspace structure tidy.
## Individual Comments
### Comment 1
<location path="modules/fundamental/Cargo.toml" line_range="104-106" />
<code_context>
name = "bench-otel"
path = "benches/bench-otel.rs"
harness = false
-
</code_context>
<issue_to_address>
**issue (bug_risk):** Bench target still declared for a file that has been deleted, which will cause Cargo bench failures.
This `bench-otel` entry still points to `benches/bench-otel.rs`, but that file was removed in this change. Running `cargo bench` will fail because the path no longer exists. If the benchmark is meant to be removed, also remove this `[[bench]]` section to keep the manifest consistent and avoid bench-time errors.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Contributor
|
AI might have a point. I also recall that we did run those tests "somewhere" in the CI. Maybe you can double check if that's the case (or not). Thanks. |
4614100 to
b989e94
Compare
Contributor
Author
|
thanks, I forgot that part 👍 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2475 +/- ##
==========================================
+ Coverage 71.66% 71.67% +0.01%
==========================================
Files 453 453
Lines 27517 27517
Branches 27517 27517
==========================================
+ Hits 19719 19722 +3
+ Misses 6667 6657 -10
- Partials 1131 1138 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
e64203f to
ddc537b
Compare
ddc537b to
56dfff3
Compare
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.
Summary by Sourcery
Remove Criterion-based benchmarking from the fundamental module and workspace.
Chores: