[cdac] Share one coreclr build between cDAC dump + stress test legs#129237
Closed
max-charlamb wants to merge 3 commits into
Closed
[cdac] Share one coreclr build between cDAC dump + stress test legs#129237max-charlamb wants to merge 3 commits into
max-charlamb wants to merge 3 commits into
Conversation
Adds a per-platform CdacBuild stage that builds coreclr (Checked) + libs + tools.cdac + the cDAC dump+stress test subsets, then publishes artifacts/bin as a CdacBuildArtifacts_<plat> tar. Subsequent commits will switch CdacDumpTests, CdacStressTests, and the CdacXPlat stages to consume this artifact instead of each running their own full build. The matrix uses cdacDumpPlatforms (the broader 8-platform set); CdacStressTests' 4-platform subset is still satisfied since per-platform artifacts are independent. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
CdacDumpTests, CdacStressTests, CdacXPlatDumpGen, and CdacXPlatDumpTests now download the per-platform CdacBuildArtifacts_<plat> tar published by CdacBuild instead of each running their own full clr+libs+tools.cdac+... build. Each test leg still calls ./build.sh with a minimal subset (tools.cdac<test>tests) so .dotnet is initialized and MSBuild can re-link the test csproj against the downloaded artifact -- no coreclr or libs work is repeated. Adds a cdacTestConfig parameter to prepare-cdac-helix-steps.yml (default $(_BuildConfig) for back-compat); dump-test stages pass cdacTestConfig: Debug so the dotnet build invocations that build the debuggees and prepare the Helix payload pull in the Debug-configured managed cDAC assemblies that the DumpTests project loads directly. The stress stage keeps the Release native cDAC shim that ships in the shared testhost. Cross-platform job-name expansion uses dependsOnGlobalBuilds rather than a hand-rolled build_<plat>_<config>_CdacBuild string. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…elism
Moves CdacBuild + CdacDumpTests + CdacStressTests + CdacXPlatDumpGen
into a single `Cdac` stage. Within that stage, every test job uses
job-level `dependsOnGlobalBuilds: - nameSuffix: CdacBuild` which the
global-build-job template expands to a per-platform
`build_<plat>_<config>_CdacBuild` dep. This is the canonical
dotnet/runtime pattern (runtime.yml:1591,1622,1653) and means
`linux_x64` test legs start as soon as `linux_x64`'s build finishes --
no waiting on slower platforms' builds.
Previously each test stage had a stage-level `dependsOn: CdacBuild`
which is all-or-nothing in AzDO -- every platform's tests had to wait
for the slowest platform's build to finish before starting.
The single-leg / xplat / stress / schedule selection moves from
stage-level `${{ if }}` to job-level `${{ if }}` inside the Cdac stage.
CdacXPlatDumpTests stays as a separate stage with stage-level
`dependsOn: Cdac` because its cross-platform synchronization (every
target platform's test needs every source platform's dumps) is
intrinsic. Its previous job-level `dependsOnGlobalBuilds: CdacBuild`
is dropped -- AzDO doesn't support cross-stage job-level deps, and
the stage-level dep already gates everything correctly.
Also fixes a duplicate `parameters:` block in CdacXPlatDumpTests
that was a merge artifact from the previous commit.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR restructures the runtime-diagnostics.yml pipeline to avoid redundant CoreCLR/Libraries builds across the cDAC dump tests, stress tests, and x-plat dump generation legs by introducing a per-platform “shared build” job that downstream per-platform jobs depend on.
Changes:
- Collapses the prior multi-stage cDAC flow into a single
Cdacstage with per-platform job-level dependencies on a sharedCdacBuildjob. - Switches downstream legs (dump tests, stress tests, x-plat dump gen/tests) to download
artifacts/binfrom the shared build instead of rebuilding CoreCLR+libs. - Extends
prepare-cdac-helix-steps.ymlwith acdacTestConfigparameter to allow rebuilding the managed cDAC/DumpTests payload inDebugduring payload prep.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| eng/pipelines/runtime-diagnostics.yml | Refactors cDAC pipeline stages into a shared per-platform build plus dependent per-platform test legs; wires artifact upload/download and job-level deps. |
| eng/pipelines/cdac/prepare-cdac-helix-steps.yml | Adds cdacTestConfig parameter and uses it for payload-prep MSBuild invocations to support Debug-managed cDAC binaries. |
Comment on lines
+298
to
+303
| - template: /eng/pipelines/common/platform-matrix.yml | ||
| parameters: | ||
| jobTemplate: /eng/pipelines/common/global-build-job.yml | ||
| buildConfig: release | ||
| platforms: ${{ parameters.cdacDumpPlatforms }} | ||
| jobParameters: |
This was referenced Jun 10, 2026
Member
Author
|
Superseded by #129244 -- consolidated all the cDAC follow-up changes into a single PR. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Note
This PR was prepared with assistance from GitHub Copilot CLI.
Summary
Refactors
runtime-diagnostics.ymlso the cDAC dump tests and stress tests share one coreclr+libs build per platform, and so per-platform pipelines run in parallel (no waiting on slower platforms).Before
Each test leg rebuilt coreclr from scratch.
After
linux_x64dump tests start as soon aslinux_x64build is done; no waiting onosx_arm64to finish building.runtime.ymldependsOnGlobalBuildsmechanism (seeruntime.yml:1591,1622,1653).How the Release / Debug cDAC split works
The user requested:
-rc checked).These coexist because they live in different artifact locations:
-c Release -rc checked→ native shim ships in the Release testhost.cdacTestConfig: $(_BuildConfig)(Release) — they pick up the Release native shim from the testhost.cdacTestConfig: Debugparameter — payload-prep MSBuild walks the DumpTests project graph and rebuilds the managed cDAC assemblies at Debug in a separate output directory.Files changed
eng/pipelines/runtime-diagnostics.yml— collapsed 5 stages into 2, wired job-level deps.eng/pipelines/cdac/prepare-cdac-helix-steps.yml— addedcdacTestConfigparameter (defaults to$(_BuildConfig)for back-compat).Build/ SOS stage untouched — different subset, different platforms.)Validation