Skip to content

Commit db993b6

Browse files
authored
Add OS to pass rate report (#3078)
Add `os` to the pass rate report. Make sure the report also contains `gpu_device`. Fixes #3081.
1 parent b6f6b41 commit db993b6

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ jobs:
195195
- name: Pass rate
196196
run: |
197197
source ./scripts/capture-hw-details.sh
198-
python3 scripts/pass_rate.py --reports reports ${{ env.SKIPLIST }}
199-
python3 scripts/pass_rate.py --reports reports --json ${{ env.SKIPLIST }} > pass_rate.json
200-
python3 scripts/pass_rate.py --reports reports --suite tutorials --json ${{ env.SKIPLIST }} > pass_rate_tutorials.json
198+
python scripts/pass_rate.py --reports reports ${{ env.SKIPLIST }}
199+
python scripts/pass_rate.py --reports reports --json ${{ env.SKIPLIST }} > pass_rate.json
200+
python scripts/pass_rate.py --reports reports --suite tutorials --json ${{ env.SKIPLIST }} > pass_rate_tutorials.json
201201
202202
- name: Report environment details
203203
run: |

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,19 @@ jobs:
7373
- name: Pass rate
7474
run: |
7575
pip install defusedxml
76-
python scripts/pass_rate.py --reports reports --skip-list scripts/skiplist/a770
76+
Invoke-BatchFile "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
77+
bash -c "\
78+
source ./scripts/capture-hw-details.sh; \
79+
python scripts/pass_rate.py --reports reports ${{ env.SKIPLIST }}; \
80+
python scripts/pass_rate.py --reports reports --json ${{ env.SKIPLIST }} > pass_rate.json; \
81+
python scripts/pass_rate.py --reports reports --suite tutorials --json ${{ env.SKIPLIST }} > pass_rate_tutorials.json; \
82+
"
83+
84+
- name: Upload pass rate report
85+
uses: actions/upload-artifact@v4
86+
with:
87+
name: pass_rate
88+
path: pass_rate*.json
7789

7890
- name: Clean up workspace
7991
if: ${{ always() }}

scripts/pass_rate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def print_json_stats(stats: ReportStats):
180180
"""Print JSON stats."""
181181
data = {
182182
'ts': datetime.datetime.now(datetime.timezone.utc).strftime('%Y-%m-%d %H:%M:%S'),
183+
'os': platform.system(),
183184
'git_ref': os.getenv('GITHUB_REF_NAME', ''),
184185
'git_sha': os.getenv('GITHUB_SHA', ''),
185186
'libigc1_version': os.getenv('LIBIGC1_VERSION', ''),

0 commit comments

Comments
 (0)