Repository navigation
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. |
msridhar
left a comment
There was a problem hiding this comment.
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.
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.
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.
Ok, it's fine to keep, was just curious.
msridhar
left a comment
There was a problem hiding this comment.
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.
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 jmhon 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.