-
Notifications
You must be signed in to change notification settings - Fork 65
ci: use benchtools to benchmark the committer #9707
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
ci: use benchtools to benchmark the committer #9707
Conversation
c85fcbc to
d47a32f
Compare
1176af8 to
aed808e
Compare
d47a32f to
54cdcf1
Compare
aed808e to
6331f24
Compare
26f8f7c to
d21ba87
Compare
6331f24 to
68338c6
Compare
|
After your change, you no longer post a comment on github. Code quote: # Benchmark the new code, splitting the benchmarks, and prepare the results for posting a comment.
- run: bash ./crates/starknet_committer_and_os_cli/benches/bench_split_and_prepare_post.sh benchmarks_list.txt benchmark_comment_body.txt
- run: echo BENCHES_RESULT=$(cat benchmark_comment_body.txt) >> $GITHUB_ENV |
AvivYossef-starkware
left a comment
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.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @avi-starkware)
.github/workflows/committer_ci.yml line 134 at r1 (raw file):
Previously, avi-starkware (Avi Cohen) wrote…
After your change, you no longer post a comment on github.
Is that intentional?
Yes, I don't find it useful.
I added informative prints to the command instead
avi-starkware
left a comment
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.
Do you plan to keep this in the committer_ci ?
What about the gateway benchmark you added in the config?
@avi-starkware reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, all discussions resolved
avi-starkware
left a comment
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.
@avi-starkware reviewed 1 of 1 files at r1.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware)
|
Can we cache the inputs? Code quote: # (downloads inputs from GCS, fails if regression > 8%).
- run: cargo run -p bench_tools -- run-and-compare --package starknet_committer_and_os_cli --out /tmp/new_results --regression-limit 8.0 |
AvivYossef-starkware
left a comment
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.
In the committer-ci, we will run it with
--package starknet_committer_and_os_cli
No one asked me to add the gateway benchmark to the CI.
I have added it to the benchmark config before I had access to the committer input files,
to verify that it works
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avi-starkware)
.github/workflows/committer_ci.yml line 111 at r1 (raw file):
Previously, avi-starkware (Avi Cohen) wrote…
Can we cache the inputs?
Yes, we can.
The CLI tool doesn't support it right now.
But I can add bash commands for it.
avi-starkware
left a comment
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware)
.github/workflows/committer_ci.yml line 111 at r1 (raw file):
Previously, AvivYossef-starkware wrote…
Yes, we can.
The CLI tool doesn't support it right now.
But I can add bash commands for it.
Try to use the inputs from cache at least in this second command. No need to download the files twice, and you already have the command to read inputs from a local dir.
68338c6 to
e8c1565
Compare
168fbdc to
bf4411b
Compare
7987461 to
f75ee3c
Compare
|
Done |
f75ee3c to
bc2c8da
Compare
2914c8c to
0067392
Compare
7803264 to
44bc61f
Compare
0067392 to
7c93885
Compare
44bc61f to
befbbc9
Compare
7c93885 to
1dd17d0
Compare
avi-starkware
left a comment
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.
@avi-starkware reviewed 1 of 2 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware)
befbbc9 to
4efa19e
Compare
1dd17d0 to
9d3ea9a
Compare
9d3ea9a to
ec0bfbc
Compare
4efa19e to
cb58e04
Compare
cb58e04 to
83c943d
Compare
AvivYossef-starkware
left a comment
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.
@AvivYossef-starkware reviewed all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware)

No description provided.