Skip to content

Commit a5ad169

Browse files
author
Cory Schwartz
committed
add metadata
1 parent df48e5d commit a5ad169

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

entrypoint.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ ln -s "${REAL_PLAN_DIR}" "${PLANSHOME}"
3131
# testground --endpoint "$BACKEND" run composition -f "$REAL_COMP_FILE" --wait
3232
# However, --wait doesn't always work well particularly for long-running jobs
3333
# so instead, do a long poll.
34-
/testground --endpoint "${BACKEND}" run composition -f "${REAL_COMP_FILE}" | tee run.out
34+
/testground --endpoint "${BACKEND}" run composition \
35+
-f "${REAL_COMP_FILE}" \
36+
--metadata-repo "${GITHUB_REPOSITORY}" \
37+
--metadata-branch "${GITHUB_REF#refs/heads/}" \
38+
--metadata-commit "${GITHUB_SHA}" | tee run.out \
3539
TGID=$(awk '/run is queued with ID/ {print $10}' <run.out)
3640
echo "${OUTPUT_ID}${TGID}"
3741

@@ -41,7 +45,7 @@ echo "Waiting for job to complete."
4145

4246
while [ "${status}" != "complete" -a "${status}" != "canceled" ]
4347
do
44-
sleep 30
48+
sleep 120
4549
status=$(/testground --endpoint "${BACKEND}" status -t "${TGID}" | awk '/Status/ {print $2}')
4650
echo "last polled status is ${status}"
4751
echo "${OUTPUT_STATUS}${status}"

0 commit comments

Comments
 (0)