-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[cDAC] Convert cDAC dump tests to run on Helix #124782
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
Merged
max-charlamb
merged 12 commits into
dotnet:main
from
max-charlamb:cdac-dumptests-helix-2
Mar 19, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3af79a9
Convert cDAC dump tests to run on Helix
max-charlamb 06d6a04
update pipeline
max-charlamb db2c21d
add xplat support
max-charlamb c578728
pass SourcePlatforms as env vars
max-charlamb dda62e0
run xplat if scheduled
max-charlamb 7629dc2
platform fix
max-charlamb 7be05f1
try to deduplicate
max-charlamb 9f7b3f2
Fix YAML template parameter syntax for prepare-cdac-helix-steps
max-charlamb c63554d
filter windows only debuggees on non-windows platforms
max-charlamb f2d5522
disable osx runs
max-charlamb c45e1da
fix comments
max-charlamb bdc9e02
Mark new COM debuggees as WindowsOnly
max-charlamb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # prepare-cdac-helix-steps.yml — Shared steps for preparing cDAC dump test Helix payloads. | ||
| # | ||
| # Used by CdacDumpTests, CdacXPlatDumpGen, and CdacXPlatDumpTests stages in runtime-diagnostics.yml. | ||
| # Handles: building debuggees, preparing Helix payload, finding testhost and Helix queue. | ||
|
|
||
| parameters: | ||
| buildDebuggees: true | ||
| skipDebuggeeCopy: false | ||
|
|
||
| steps: | ||
| - ${{ if parameters.buildDebuggees }}: | ||
| - script: $(Build.SourcesDirectory)$(dir).dotnet$(dir)dotnet$(exeExt) msbuild | ||
| $(Build.SourcesDirectory)/src/native/managed/cdac/tests/DumpTests/Microsoft.Diagnostics.DataContractReader.DumpTests.csproj | ||
| /t:BuildDebuggeesOnly | ||
| /p:Configuration=$(_BuildConfig) | ||
| /p:TargetArchitecture=$(archType) | ||
| -bl:$(Build.SourcesDirectory)/artifacts/log/BuildDebuggees.binlog | ||
| displayName: 'Build Debuggees' | ||
|
|
||
| - script: $(Build.SourcesDirectory)$(dir).dotnet$(dir)dotnet$(exeExt) build | ||
| $(Build.SourcesDirectory)/src/native/managed/cdac/tests/DumpTests/Microsoft.Diagnostics.DataContractReader.DumpTests.csproj | ||
| /p:PrepareHelixPayload=true | ||
| /p:SkipDebuggeeCopy=${{ parameters.skipDebuggeeCopy }} | ||
| /p:Configuration=$(_BuildConfig) | ||
| /p:HelixPayloadDir=$(Build.SourcesDirectory)/artifacts/helixPayload/cdac | ||
| /p:SkipDumpVersions=net10.0 | ||
| -bl:$(Build.SourcesDirectory)/artifacts/log/DumpTestPayload.binlog | ||
| displayName: 'Prepare Helix Payload' | ||
|
|
||
| - pwsh: | | ||
| $testhostDir = Get-ChildItem -Directory -Path "$(Build.SourcesDirectory)/artifacts/bin/testhost/net*-$(osGroup)-*-$(archType)" | Select-Object -First 1 -ExpandProperty FullName | ||
| if (-not $testhostDir) { | ||
| Write-Error "No testhost directory found matching net*-$(osGroup)-*-$(archType) under artifacts/bin/testhost/" | ||
| exit 1 | ||
| } | ||
| Write-Host "TestHost directory: $testhostDir" | ||
| Write-Host "##vso[task.setvariable variable=TestHostPayloadDir]$testhostDir" | ||
|
|
||
| $queue = switch ("$(osGroup)_$(archType)") { | ||
| "windows_x64" { "$(helix_windows_x64)" } | ||
| "windows_arm64" { "$(helix_windows_arm64)" } | ||
| "linux_x64" { "$(helix_linux_x64_oldest)" } | ||
| "linux_arm64" { "$(helix_linux_arm64_oldest)" } | ||
| "osx_x64" { "$(helix_macos_x64)" } | ||
| "osx_arm64" { "$(helix_macos_arm64)" } | ||
| default { Write-Error "Unsupported platform: $(osGroup)_$(archType)"; exit 1 } | ||
| } | ||
max-charlamb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Write-Host "Helix queue: $queue" | ||
| Write-Host "##vso[task.setvariable variable=CdacHelixQueue]$queue" | ||
| displayName: 'Find TestHost Directory and Helix Queue' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/native/managed/cdac/tests/DumpTests/Debuggees/CCWInterfaces/CCWInterfaces.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <DumpTypes>Full</DumpTypes> | ||
| <WindowsOnly>true</WindowsOnly> | ||
| </PropertyGroup> | ||
| </Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.