-
Notifications
You must be signed in to change notification settings - Fork 31
Add capability of outputting DxDiag when running pipelines #1056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 16 commits
424386c
d65eef6
57572a5
1151a16
a343410
977580e
c2a10a9
c84f33f
3f146c0
200f1ec
8283131
4f3d855
a474c4a
0e0189c
b80fd55
a7dd107
e1854f8
c080556
9524e9a
5215f77
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,6 +58,11 @@ on: | |
| required: false | ||
| default: '' | ||
| type: string | ||
| run_dxdiag: | ||
| description: "Run dxdiag" | ||
| required: false | ||
| default: false | ||
| type: boolean | ||
| workflow_call: | ||
| inputs: | ||
| OffloadTest-branch: | ||
|
|
@@ -100,13 +105,43 @@ on: | |
| required: false | ||
| default: '' | ||
| type: string | ||
| run_dxdiag: | ||
| description: "Run dxdiag" | ||
| required: false | ||
| default: false | ||
| type: boolean | ||
|
|
||
| jobs: | ||
| build: | ||
| permissions: | ||
| checks: write | ||
| runs-on: [self-hosted, "hlsl-${{ inputs.SKU }}"] | ||
| steps: | ||
| - name: Run dxdiag (Windows only) | ||
| if: inputs.OS == 'windows' && inputs.run_dxdiag | ||
| shell: powershell | ||
| run: | | ||
| $fileName = "dxdiag-${{ inputs.SKU }}.txt" | ||
| $output = Join-Path $env:RUNNER_TEMP $fileName | ||
| dxdiag /t $output | ||
| Write-Host "DxDiag report saved to $output" | ||
| - name: Check if dxdiag report exists | ||
| id: check_dxdiag | ||
| if: inputs.OS == 'windows' && inputs.run_dxdiag | ||
| shell: powershell | ||
|
||
| run: | | ||
| $filePath = Join-Path $env:RUNNER_TEMP "dxdiag-${{ inputs.SKU }}.txt" | ||
| if (Test-Path $filePath) { | ||
| echo "exists=true" >> $env:GITHUB_OUTPUT | ||
| } else { | ||
| echo "exists=false" >> $env:GITHUB_OUTPUT | ||
| } | ||
| - name: Upload dxdiag artifact | ||
| if: inputs.OS == 'windows' && inputs.run_dxdiag && steps.check_dxdiag.outputs.exists == 'true' | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: dxdiag-${{ inputs.SKU }} | ||
| path: ${{ runner.temp }}/dxdiag-${{ inputs.SKU }}.txt | ||
| - name: Checkout DXC | ||
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to just run this all the time? Seems that we'd want to grab the dxdiag output when we see a test run has failed and so it'd be nice if that was always available with the rest of the results.