From c138de08756bba87adba6d694fb3150ef41e4a90 Mon Sep 17 00:00:00 2001 From: Glen Date: Sun, 8 Dec 2024 18:56:37 +0000 Subject: [PATCH] job_name --- .github/workflows/bench_job.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bench_job.yml b/.github/workflows/bench_job.yml index 8cb4bd7aa..32a91817b 100644 --- a/.github/workflows/bench_job.yml +++ b/.github/workflows/bench_job.yml @@ -54,6 +54,7 @@ jobs: aws_access_key_id: ${{ secrets.S3_EXO_BENCHMARKS_AWS_ACCESS_KEY_ID }} aws_secret_key: ${{ secrets.S3_EXO_BENCHMARKS_AWS_SECRET_ACCESS_KEY }} run: | + GITHUB_JOB=$(echo "${{ github.workflow_ref }}" | awk -F'/' '{print $NF}') UNIQUE_JOB_ID="${GITHUB_JOB}_${GITHUB_RUN_ID}" ALL_NODE_IDS=$(for i in $(seq ${{ strategy.job-total }} -1 0); do echo -n "${UNIQUE_JOB_ID}_${i},"; done | sed 's/,$//') MY_NODE_ID="${UNIQUE_JOB_ID}_${{ strategy.job-index }}" @@ -85,11 +86,11 @@ jobs: python .github/bench.py else sleep 10 - while true; do - nodes=$(curl http://localhost:52415/topology | jq ".nodes | length") - if [ "$nodes" -lt "${{ strategy.job-total }}" ]; then - break - fi - sleep 5 - done + while true; do + nodes=$(curl http://localhost:52415/topology | jq ".nodes | length") + if [ "$nodes" -lt "${{ strategy.job-total }}" ]; then + break + fi + sleep 5 + done fi