Skip to content

Commit ccbefce

Browse files
EtiennePerotgvisor-bot
authored andcommitted
PGO update: Only skip when there is no change in runsc/profiles.
The BuildKite pipeline modifies `.buildkite/pipeline.yaml` at runtime, causing `git status` to return a diff on that file at all times. Therefore, the check that files were not modified always failed, as `.buildkite/pipeline.yaml` was always seen as modified. This CL makes the check only look at changes in `runsc/profiles`. PiperOrigin-RevId: 774229651
1 parent f667ab4 commit ccbefce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/scripts/pgo/maybe-skip.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if [[ "$(gh pr --repo="$repo_url" list --label pgo-update --state open --json ti
5353
fi
5454

5555
if ! echo "$@" | grep -qFe '--tolerate-no-profile-changes'; then
56-
if [[ "$(git status --porcelain | wc -l)" == 0 ]]; then
56+
if [[ "$(git status --porcelain runsc/profiles | wc -l)" == 0 ]]; then
5757
echo "No changes to runsc profiles; skipping." >&2
5858
exit 0
5959
fi

0 commit comments

Comments
 (0)