-
Notifications
You must be signed in to change notification settings - Fork 299
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
Added GCP JMH Benchmark Workflow #770
Conversation
fixed indentation for PR comment acition
Updated and tested after final changes and added VM start and stop steps. |
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.
Looking great! Just a couple of final comments / questions
@@ -0,0 +1,9 @@ | |||
#!/bin/bash | |||
|
|||
cd $BRANCH_NAME/ |
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.
Why do we need this cd $BRANCH_NAME/
command in this script and also run_pr_benchmarks.sh
?
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.
I just kept this for the sake of consistency across the two files. I am running the PR benchmark on the $BRANCH_NAME/pr/NullAway
folder (the whole $BRANCH_NAME
directory was set up to avoid errors due to any residual files from other PRs), and I am navigating back to the root directory after that's done. I can omit the cd $BRANCH_NAME
from main
, but that would mean that I will have to go up two directories to the $BRANCH_NAME
folder in the step where I run the gcloud ssh command. Happy to make those changes if they are more suitable @msridhar. Thank you!
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.
Ok, it's fine to keep, was just curious.
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.
I think this is good to go! Will merge once we do some more testing. Thanks again @armughan11!
@@ -0,0 +1,9 @@ | |||
#!/bin/bash | |||
|
|||
cd $BRANCH_NAME/ |
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.
Ok, it's fine to keep, was just curious.
Update: I successfully tested this change on my fork! https://github.com/msridhar/NullAway/actions/runs/5580019520/jobs/10196359492 This was with a PR that deliberately introduced a slowdown. I did a couple of tweaks in naming based on that. @armughan11 I have two more comments / questions for you.
|
Thanks for the update @msridhar!
|
I was just thinking right at the beginning, to indicate something is running.
👍 |
Just pushed a change. This should add the reaction once the job starts! @msridhar |
Confirmed that adding the reaction works: msridhar#10 (comment) I think this is good to go. I'm going to land it and test on the main NullAway repo 🙂 |
Thanks again for the great contribution @armughan11! |
This reverts commit e7ec4b9.
This reverts commit e7ec4b9.
This reverts commit e7ec4b9.
This reverts commit e7ec4b9.
This reverts commit e7ec4b9.
Adds a workflow that is triggered via a "/benchmark" comment on a pull request. Clones the main and PR branch on the GCP instance and runs the
./gradlew jmh
on each one of them, returning the results as a comment on the pull request. Running on my test instance for review, will change the credentials accordingly once approved.