Skip to content

Comments

Bump criterion version#870

Merged
Mingun merged 1 commit intotafia:masterfrom
eirnym:bump-versions
Jun 19, 2025
Merged

Bump criterion version#870
Mingun merged 1 commit intotafia:masterfrom
eirnym:bump-versions

Conversation

@eirnym
Copy link
Contributor

@eirnym eirnym commented Jun 18, 2025

Built and tested,

please note: I haven't run benches or MSRV check locally

criterion::black_box is replaced to follow directions in deprecation message Deprecated: use std::hint::black_box() instead

Copy link
Collaborator

@Mingun Mingun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumping dev-dependencies would be fine, but we do not expect that for dependencies. That is minimal supported versions and until we use newer features of those dependencies they should left the same. The final application will pick the most recent allowed version and we do not want to artificially raise that numbers.

Because when built cargo will use latest versions withing semver, it is not necessary to raise dev-dependencies too except for criterion which I wanted to update many times. I not against raising them, but don't know how this will influence our minimal-versions workflow. It has a chance that it will not able to build, but we can check that. Please, revert dependencies table and we try to run workflows.

@eirnym
Copy link
Contributor Author

eirnym commented Jun 18, 2025

I prefer never to update by myself, but to use the tools like renovate bot. Renovate bot allows to set preferred limits and update the lockfile as well if needed.

@eirnym eirnym changed the title Bump dependency versions Bump criterion version Jun 18, 2025
@eirnym
Copy link
Contributor Author

eirnym commented Jun 18, 2025

Removed all lines except criterion which has been stood out too much for me

@eirnym eirnym requested a review from Mingun June 18, 2025 15:23
@codecov-commenter
Copy link

codecov-commenter commented Jun 18, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 44 lines in your changes missing coverage. Please review.

Project coverage is 58.53%. Comparing base (254fbd2) to head (c90bb27).
Report is 19 commits behind head on master.

Files with missing lines Patch % Lines
benches/macrobenches.rs 0.00% 22 Missing ⚠️
benches/microbenches.rs 0.00% 22 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #870      +/-   ##
==========================================
- Coverage   60.74%   58.53%   -2.22%     
==========================================
  Files          41       42       +1     
  Lines       16044    17066    +1022     
==========================================
+ Hits         9746     9989     +243     
- Misses       6298     7077     +779     
Flag Coverage Δ
unittests 58.53% <0.00%> (-2.22%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Mingun
Copy link
Collaborator

Mingun commented Jun 18, 2025

msrv failed because criterion msrv raised to 1.80 and our msrv=1.56. It is fine to just not to build benchmarks in msrv build, we do not plan to benchmark those builds anyway.

@eirnym
Copy link
Contributor Author

eirnym commented Jun 18, 2025

A note about failing MSRV:

if you expect that an example app will work with your library with a given version, do exactly that.

@Mingun Mingun force-pushed the bump-versions branch 4 times, most recently from 21ad90c to 6c62770 Compare June 19, 2025 16:21
@Mingun Mingun merged commit 4765018 into tafia:master Jun 19, 2025
7 checks passed
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.

3 participants