-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unbreak Criterion's HTML reports #764
Conversation
Our benchmarking harness has decided that it's time for some INNOVATION and for starters released a version which has disabled generation of HTML reports by default, changed their location from current directory to the proper shared target directory, and strongly suggests migrating away from running benchmarks with "cargo bench" in favor of their own "cargo criterion". Well, okay, that's a fine rabbit to chase later, but for now let's at least unbreak our build by adapting to the new reality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
world is always changing ¯_(ツ)_/¯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like has no backdoors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, for now we use cargo_bench_support
feature to be able to run old command cargo bench -- 'Secure Cell .* master key/4 KB'
and have tests passing? Well, okay, good to see stuff fixed
Oh, you've read the entire code of criterion 0.3.4 and its 18 direct dependencies? That's amazing! 🤣 |
Yeah, that's the plan. It is supposed to be working with 0.3.x branch, but I guess they might break it in 0.4. Cargo will prevent that upgrade for happening accidentally, but I guess it's a good idea to migrate to |
Could this PR be a reason why tests are failing during nightly jobs? @ilammy Looks like it can't find a folder to create report. https://app.circleci.com/pipelines/github/cossacklabs/themis/995/workflows/007bce5b-d029-4f13-b0d8-d9ce9228e5e3/jobs/17700 |
Mmm... Maybe. Likely. CircleCI should be active only on |
Also, now that you have brought this to my attention... GitHub Actions are not executed on schedule for the There are workflows there, sure, with all this schedule:
- cron: '0 6 * * *' # every day at 6:00 UTC but it's not getting executed on That's because:
Quickly skimming through the internet reveals that we should not need this feature, we’re weird for wanting it, and we should probably start by purchasing Azure subscription before we can demand that to be fixed. I wonder what may be a workaround. Ideally, one that does not involve duplicating all the workflows with different branch checked out. And one that still runs tests for changes in PRs. Ideas? @iamnotacake? I admit that I was too hasty to drop CircleCI orz |
Our benchmarking harness has decided that it's time for some INNOVATION and for starters released a version which has disabled generation of HTML reports by default, changed their location from current directory to the proper shared target directory, and strongly suggests migrating away from running benchmarks with "cargo bench" in favor of their own "cargo criterion". Well, okay, that's a fine rabbit to chase later, but for now let's at least unbreak our build by adapting to the new reality. (cherry picked from commit d230f57) Also added the same path update for CircleCI which is still running for the stable branch.
Our benchmarking harness has decided that it's time for some INNOVATION and for starters released a version which has disabled generation of HTML reports by default, changed their location from current directory to the proper shared target directory, and strongly suggests migrating away from running benchmarks with
cargo bench
in favor of their owncargo criterion
.At least they have a changelog. It does not yet contain an entry for 0.3.4 released about 15 hours ago, but that's something.
Well, okay, that's a fine rabbit to chase later, but for now let's at least unbreak our build by adapting to the new reality.
Checklist