Skip to content

Commit 97e0152

Browse files
authored
Report environment details for tutorials (#2306)
Fixes #2305.
1 parent d76446a commit 97e0152

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

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

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,25 @@ jobs:
198198
python3 scripts/pass_rate.py --reports reports --json ${{ env.SKIPLIST }} > pass_rate.json
199199
python3 scripts/pass_rate.py --reports reports --suite tutorials --json ${{ env.SKIPLIST }} > pass_rate_tutorials.json
200200
201+
- name: Report environment details
202+
run: |
203+
source ./scripts/capture-hw-details.sh --quiet
204+
cat <<EOF | tee .env
205+
TIMESTAMP=$(date '+%Y%m%d%H%M%S')
206+
GITHUB_RUN_ID=$GITHUB_RUN_ID
207+
GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER
208+
GITHUB_RUN_ATTEMPT=$GITHUB_RUN_ATTEMPT
209+
PYTHON_VERSION=${{ inputs.python_version }}
210+
PYTORCH_REPO=$PYTORCH_REPO
211+
PYTORCH_COMMIT_ID=$PYTORCH_COMMIT_ID
212+
PYTORCH_VERSION=$PYTORCH_VERSION
213+
TRITON_REPO=$GITHUB_REPOSITORY
214+
LIBIGC1_VERSION=$LIBIGC1_VERSION
215+
LEVEL_ZERO_VERSION=$LEVEL_ZERO_VERSION
216+
GPU_DEVICE=$GPU_DEVICE
217+
AGAMA_VERSION=$AGAMA_VERSION
218+
EOF
219+
201220
- name: Upload pass rate report
202221
# upload reports only for the default branch
203222
if: github.ref_name == 'main'
@@ -210,8 +229,11 @@ jobs:
210229
uses: actions/upload-artifact@v4
211230
with:
212231
name: tutorials-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
213-
path: reports/*/*.csv
214232
if-no-files-found: warn
233+
include-hidden-files: true
234+
path: |
235+
reports/*/*.csv
236+
.env
215237
216238
- name: Upload test reports
217239
if: inputs.upload_test_reports

0 commit comments

Comments
 (0)