Skip to content

Commit 5b8ee6d

Browse files
authored
Fix pass rate report (#4029)
The environment variables from .env need to be exported, so the subprocess (pass_rate.py) can use them. --------- Signed-off-by: Pavel Chekin <[email protected]>
1 parent 8aba8cb commit 5b8ee6d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/build-test-reusable.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,17 +278,17 @@ jobs:
278278
run: |
279279
pip install defusedxml
280280
281+
- name: Load environment details
282+
run: |
283+
cat ./reports/.env | tee -a $GITHUB_ENV
284+
281285
- name: Pass rate
282286
run: |
283-
ls -la reports
284-
source ./reports/.env
285287
python scripts/pass_rate.py --reports reports
286288
python scripts/pass_rate.py --reports reports --json > pass_rate.json
287289
python scripts/pass_rate.py --reports reports --suite tutorials --json > pass_rate_tutorials.json
288290
289291
- name: Upload pass rate report
290-
# upload reports only for the default branch
291-
if: github.ref_name == 'main'
292292
uses: actions/upload-artifact@v4
293293
with:
294294
name: pass_rate-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}

scripts/capture-hw-details.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ else
110110
fi
111111

112112
if [[ $QUIET = false ]]; then
113-
echo "LIBIGC1_VERSION=\"$LIBIGC1_VERSION\""
114-
echo "LEVEL_ZERO_VERSION=\"$LEVEL_ZERO_VERSION\""
115-
echo "AGAMA_VERSION=\"$AGAMA_VERSION\""
116-
echo "GPU_DEVICE=\"$GPU_DEVICE\""
117-
echo "TORCH_VERSION=\"$TORCH_VERSION\""
118-
echo "COMPILER_VERSION=\"$COMPILER_VERSION\""
113+
echo "LIBIGC1_VERSION=$LIBIGC1_VERSION"
114+
echo "LEVEL_ZERO_VERSION=$LEVEL_ZERO_VERSION"
115+
echo "AGAMA_VERSION=$AGAMA_VERSION"
116+
echo "GPU_DEVICE=$GPU_DEVICE"
117+
echo "TORCH_VERSION=$TORCH_VERSION"
118+
echo "COMPILER_VERSION=$COMPILER_VERSION"
119119
if [[ ${BENCHMARKING_METHOD:-} ]]; then
120-
echo "BENCHMARKING_METHOD=\"$BENCHMARKING_METHOD\""
120+
echo "BENCHMARKING_METHOD=$BENCHMARKING_METHOD"
121121
fi
122122
fi

0 commit comments

Comments
 (0)