-
Notifications
You must be signed in to change notification settings - Fork 484
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
Benchmarking in CI (SCP-2353) #3441
Conversation
Add a benchmarking script that will be executed by buildkite and a GitHub action to trigger the buidkite pipeline running this script through `/benchmark` comments on PRs
3dec377
to
4349229
Compare
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.
nice!
Add comments explaining `cabal update` and the use of `jq`
@@ -0,0 +1,31 @@ | |||
#!/usr/bin/env bash |
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.
@michaelpj now that I extracted it i agree that it's nicer to have this in a separate file/script 👍
BRANCH="$1" | ||
PR="$2" | ||
|
||
echo "[trigger-buildkite-pipeline]: Triggering build for $PR_BRANCH" |
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.
echo "[trigger-buildkite-pipeline]: Triggering build for $PR_BRANCH" | |
echo "[trigger-buildkite-pipeline]: Triggering build for $BRANCH" |
- Move scripts to ./scripts folder - Extract curl/buildkite invocation to separate script
1166d31
to
3d975bd
Compare
* Benchmarking in CI (SCP-2353) Add a benchmarking script that will be executed by buildkite and a GitHub action to trigger the buidkite pipeline running this script through `/benchmark` comments on PRs * ci-plutus-benchmark.sh: Add some comments Add comments explaining `cabal update` and the use of `jq` * Refactor benchmark scripts - Move scripts to ./scripts folder - Extract curl/buildkite invocation to separate script
Summary
Add a benchmarking script that will be executed by buildkite and a
GitHub action to trigger the buidkite pipeline running this script
through
/benchmark
comments on PRsDetails
The benchmark.yaml workflow below looks for
/benchmark
comments which works nicely but it should be noted this only works with this code inmaster
.I did test and experiment using a fork and everything seemed to work nicely eventually but it's of course possible that something will still go wrong as we can't really test this fully before it's actually merged (annoying, yes).
The comments added by the bot aren't super pretty but i guess that is something we can change down the road once it's been established that this actually works reliably. Comments have to be posted as JSON content which is a bit annoying and I just used
jq
to escape the output generated by the benchmark comparison script.Pre-submit checklist:
Pre-merge checklist: