Skip to content

Commit 32c374b

Browse files
Merge pull request #11916 from andriyDev/fix-flake-comment
Make sync_tests.sh remove any _integration suffix
2 parents 385b8e9 + ae294d2 commit 32c374b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hack/jenkins/test-flake-chart/sync_tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ set -eu -o pipefail
3939
FINISHED_LIST_REMOTE="${BUCKET_PATH}/finished_environments_${ROOT_JOB_ID}.txt"
4040
# Ensure FINISHED_LIST_REMOTE exists so we can append (but don't erase any existing entries in FINISHED_LIST_REMOTE)
4141
< /dev/null gsutil cp -n - "${FINISHED_LIST_REMOTE}"
42-
# Copy the job name to APPEND_TMP
42+
# Copy the job name to APPEND_TMP. If the job name ends in "_integration" remove it.
4343
APPEND_TMP="${BUCKET_PATH}/$(basename $(mktemp))"
4444
echo "${UPSTREAM_JOB}"\
45+
| sed -r 's/_integration$//'\
4546
| gsutil cp - "${APPEND_TMP}"
4647
# Append job name to remote finished list.
4748
gsutil compose "${FINISHED_LIST_REMOTE}" "${APPEND_TMP}" "${FINISHED_LIST_REMOTE}"

0 commit comments

Comments
 (0)