Skip to content

Commit cfe7c98

Browse files
authored
Move the "Report environment details" step upper (#3847)
For debugging when a run timing out
1 parent 0b7b39d commit cfe7c98

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,25 @@ jobs:
132132
build_llvm: ${{ inputs.build_llvm }}
133133
use_spirv_backend: ${{ inputs.use_spirv_backend }}
134134

135+
- name: Report environment details
136+
run: |
137+
source ./scripts/capture-hw-details.sh --quiet
138+
cat <<EOF | tee .env
139+
TIMESTAMP=$(date '+%Y%m%d%H%M%S')
140+
GITHUB_RUN_ID=$GITHUB_RUN_ID
141+
GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER
142+
GITHUB_RUN_ATTEMPT=$GITHUB_RUN_ATTEMPT
143+
PYTHON_VERSION=${{ inputs.python_version }}
144+
PYTORCH_REPO=$PYTORCH_REPO
145+
PYTORCH_COMMIT_ID=$PYTORCH_COMMIT_ID
146+
PYTORCH_VERSION=$PYTORCH_VERSION
147+
TRITON_REPO=$GITHUB_REPOSITORY
148+
LIBIGC1_VERSION=$LIBIGC1_VERSION
149+
LEVEL_ZERO_VERSION=$LEVEL_ZERO_VERSION
150+
GPU_DEVICE=$GPU_DEVICE
151+
AGAMA_VERSION=$AGAMA_VERSION
152+
EOF
153+
135154
- name: Create test-triton command line
136155
run: |
137156
skiplist="$GITHUB_WORKSPACE/scripts/skiplist/default"
@@ -212,25 +231,6 @@ jobs:
212231
python scripts/pass_rate.py --reports reports --json ${{ env.SKIPLIST }} > pass_rate.json
213232
python scripts/pass_rate.py --reports reports --suite tutorials --json ${{ env.SKIPLIST }} > pass_rate_tutorials.json
214233
215-
- name: Report environment details
216-
run: |
217-
source ./scripts/capture-hw-details.sh --quiet
218-
cat <<EOF | tee .env
219-
TIMESTAMP=$(date '+%Y%m%d%H%M%S')
220-
GITHUB_RUN_ID=$GITHUB_RUN_ID
221-
GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER
222-
GITHUB_RUN_ATTEMPT=$GITHUB_RUN_ATTEMPT
223-
PYTHON_VERSION=${{ inputs.python_version }}
224-
PYTORCH_REPO=$PYTORCH_REPO
225-
PYTORCH_COMMIT_ID=$PYTORCH_COMMIT_ID
226-
PYTORCH_VERSION=$PYTORCH_VERSION
227-
TRITON_REPO=$GITHUB_REPOSITORY
228-
LIBIGC1_VERSION=$LIBIGC1_VERSION
229-
LEVEL_ZERO_VERSION=$LEVEL_ZERO_VERSION
230-
GPU_DEVICE=$GPU_DEVICE
231-
AGAMA_VERSION=$AGAMA_VERSION
232-
EOF
233-
234234
- name: Upload pass rate report
235235
# upload reports only for the default branch
236236
if: github.ref_name == 'main'

0 commit comments

Comments
 (0)