This commit is contained in:
Nikola Jokic
2026-03-17 00:16:58 +01:00
parent 7561b07453
commit 94092e96be
2 changed files with 3 additions and 7 deletions

4
test/actions.github.com/custom-label-setup-v2.test.sh Normal file → Executable file
View File

@@ -15,7 +15,6 @@ SCALE_SET_NAME="custom-label-$(date +'%M%S')$(((RANDOM + 100) % 100 + 1))"
SCALE_SET_NAMESPACE="arc-runners"
SCALE_SET_LABEL="custom-$(date +'%s')${RANDOM}"
WORKFLOW_FILE="arc-custom-label.yaml"
WORKFLOW_REF="${WORKFLOW_REF:-nikola-jokic-patch-1}"
ARC_NAME="arc"
ARC_NAMESPACE="arc-systems"
@@ -71,7 +70,6 @@ function run_custom_label_workflow() {
queue_time="$(date -u +%FT%TZ)"
gh workflow run -R "${repo}" "${WORKFLOW_FILE}" \
--ref "${WORKFLOW_REF}" \
-f scaleset-label="${SCALE_SET_LABEL}" || return 1
local count=0
@@ -82,7 +80,7 @@ function run_custom_label_workflow() {
return 1
fi
run_id="$(gh run list -R "${repo}" --workflow "${WORKFLOW_FILE}" --branch "${WORKFLOW_REF}" --created ">${queue_time}" --json databaseId --jq '.[0].databaseId' | head -n1)"
run_id="$(gh run list -R "${repo}" --workflow "${WORKFLOW_FILE}" --created ">${queue_time}" --json databaseId --jq '.[0].databaseId' | head -n1)"
if [[ -n "${run_id}" ]]; then
break
fi

6
test/actions.github.com/custom-label-setup.test.sh Normal file → Executable file
View File

@@ -14,7 +14,6 @@ SCALE_SET_NAME="custom-label-$(date +'%M%S')$(((RANDOM + 100) % 100 + 1))"
SCALE_SET_NAMESPACE="arc-runners"
SCALE_SET_LABEL="custom-$(date +'%s')${RANDOM}"
WORKFLOW_FILE="arc-custom-label.yaml"
WORKFLOW_REF="${WORKFLOW_REF:-nikola-jokic-patch-1}"
ARC_NAME="arc"
ARC_NAMESPACE="arc-systems"
@@ -70,7 +69,6 @@ function run_custom_label_workflow() {
queue_time="$(date -u +%FT%TZ)"
gh workflow run -R "${repo}" "${WORKFLOW_FILE}" \
--ref "${WORKFLOW_REF}" \
-f scaleset-label="${SCALE_SET_LABEL}" || return 1
local count=0
@@ -81,7 +79,7 @@ function run_custom_label_workflow() {
return 1
fi
run_id="$(gh run list -R "${repo}" --workflow "${WORKFLOW_FILE}" --branch "${WORKFLOW_REF}" --created ">${queue_time}" --json databaseId --jq '.[0].databaseId' | head -n1)"
run_id="$(gh run list -R "${repo}" --workflow "${WORKFLOW_FILE}" --created ">${queue_time}" --json databaseId --jq '.[0].databaseId' | head -n1)"
if [[ -n "${run_id}" ]]; then
break
fi
@@ -114,4 +112,4 @@ function main() {
print_results "${failed[@]}"
}
main
main