Skip to content

Commit 0277f27

Browse files
EtiennePerotgvisor-bot
authored andcommitted
Create PGO pull requests non-interactively.
Also print GitHub CLI version, as the behavior of non-interactive PR creation has changed in last year's release and I suspect the BuildKite agent may be using an older version. PiperOrigin-RevId: 772239496
1 parent 64c88d3 commit 0277f27

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.buildkite/scripts/pgo/commit-update.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ git checkout -b "$pgo_branch_name"
2929
git stash pop
3030
git add runsc/profiles
3131
git status
32+
gh --version
3233
gh auth login --with-token < "$HOME/.github-token"
3334
gh auth setup-git
3435
export GIT_AUTHOR_NAME=gvisor-bot
@@ -37,9 +38,9 @@ export GIT_COMMITTER_NAME=gvisor-bot
3738
export GIT_COMMITTER_EMAIL=gvisor-bot@google.com
3839
git commit -m "Update runsc profiles for PGO (profile-guided optimizations), $today."
3940
git push --set-upstream https://github.com/google/gvisor.git "$pgo_branch_name"
40-
gh pr create \
41+
yes '' | gh pr create \
4142
--title="Update runsc profiles for PGO (profile-guided optimizations), $today." \
4243
--body='This PR updates the runsc profiles for PGO (profile-guided optimizations).' \
4344
--label=pgo-update --label='ready to pull' \
44-
--base=master
45+
--base=master --head="$pgo_branch_name"
4546
echo 'PGO profile update PR created.' >&2

0 commit comments

Comments
 (0)