-
Notifications
You must be signed in to change notification settings - Fork 5.5k
[cdac] Pipeline refactor + StackWalk doc cleanup + DataGenerator build fix #129244
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
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
efe2cde
[cdac] StackWalk.md: drop stress-harness detail from datacontract
0e4caf5
[cdac] Fix DataGeneratorTests build: override Target.ReadNInt
ebc2c06
[cdac pipeline] Refactor runtime-diagnostics: share one build, run un…
026874a
[cdac pipeline] Review feedback: rename DataGen csproj to match Arcad…
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| # cdac-helix-test-leg.yml -- wraps the matrix + per-platform job + artifact | ||
| # download + prepare + send-to-helix + fail-on-error boilerplate shared by | ||
| # the three cDAC dump-style legs in runtime-diagnostics.yml: | ||
| # | ||
| # CdacDumpTests (single-leg mode) -- runs DumpTests directly | ||
| # CdacXPlatDumpGen -- generates dumps only (DumpOnly=true) | ||
| # CdacXPlatDumpTests -- runs DumpTests against dumps from all source platforms | ||
| # | ||
| # All three: download the shared CdacBuild artifact, prepare a Helix payload, | ||
| # send to Helix, fail the job if Helix reports failures. They differ in: | ||
| # - which platform list they fan out over | ||
| # - which Helix .proj they send | ||
| # - extra prepare-cdac-helix-steps parameters (skipDebuggeeCopy, etc.) | ||
| # - extra postBuildSteps inserted between prepare and send (xplat-test needs | ||
| # to download all source platforms' dumps and extract the tars first) | ||
| # - whether to publish dump artifacts at the end, and on what condition | ||
| # | ||
| # Stress tests are not collapsed into this template -- they use a different | ||
| # prepare template (prepare-cdac-stress-helix-steps.yml) and have unique | ||
| # crash-dump-symbolication artifacts, so they stay inline. | ||
|
|
||
| parameters: | ||
| - name: nameSuffix | ||
| type: string | ||
| - name: platforms | ||
| type: object | ||
| - name: sendDisplayName | ||
| type: string | ||
| - name: sendParams | ||
| type: string | ||
| - name: prepareParameters | ||
| type: object | ||
| default: {} | ||
| - name: dependsOnCdacBuild | ||
| type: boolean | ||
| default: true | ||
| - name: extraStepsBeforeSend | ||
| type: stepList | ||
| default: [] | ||
| - name: failDisplayName | ||
| type: string | ||
| default: 'Fail on test errors' | ||
| - name: failErrorMessage | ||
| type: string | ||
| default: 'One or more cDAC Helix failures were detected. Failing the job.' | ||
| - name: publishDumpsArtifactName | ||
| type: string | ||
| default: '' # if empty, no dump-artifact publish step is emitted | ||
| - name: publishDumpsCondition | ||
| type: string | ||
| default: 'and(always(), ne(variables[''Agent.JobStatus''], ''Succeeded''))' | ||
| - name: extraDependsOn | ||
| type: object | ||
| default: [] # explicit job names to add to dependsOn (combined with dependsOnGlobalBuilds) | ||
|
|
||
| jobs: | ||
| - template: /eng/pipelines/common/platform-matrix.yml | ||
| parameters: | ||
| jobTemplate: /eng/pipelines/common/global-build-job.yml | ||
| buildConfig: release | ||
| platforms: ${{ parameters.platforms }} | ||
| shouldContinueOnError: true | ||
| jobParameters: | ||
| nameSuffix: ${{ parameters.nameSuffix }} | ||
| # Tiny rebuild that initializes .dotnet and links the test csproj | ||
| # against the downloaded CdacBuild artifact; coreclr + libs + tools.cdac | ||
| # are not rebuilt. | ||
| buildArgs: -s tools.cdacdumptests -c $(_BuildConfig) -rc checked -lc $(_BuildConfig) /p:SkipDumpVersions=net10.0 | ||
| timeoutInMinutes: 180 | ||
| ${{ if parameters.dependsOnCdacBuild }}: | ||
| dependsOnGlobalBuilds: | ||
| - nameSuffix: CdacBuild | ||
| ${{ if ne(length(parameters.extraDependsOn), 0) }}: | ||
| dependsOn: ${{ parameters.extraDependsOn }} | ||
| preBuildSteps: | ||
| - template: /eng/pipelines/cdac/download-cdac-build-artifact.yml | ||
| postBuildSteps: | ||
| - template: /eng/pipelines/cdac/prepare-cdac-helix-steps.yml | ||
| parameters: ${{ parameters.prepareParameters }} | ||
| - ${{ each step in parameters.extraStepsBeforeSend }}: | ||
| - ${{ step }} | ||
| - template: /eng/pipelines/common/templates/runtimes/send-to-helix-inner-step.yml | ||
| parameters: | ||
| displayName: ${{ parameters.sendDisplayName }} | ||
| sendParams: ${{ parameters.sendParams }} | ||
| environment: | ||
| _Creator: dotnet-bot | ||
| SYSTEM_ACCESSTOKEN: $(System.AccessToken) | ||
| NUGET_PACKAGES: $(Build.SourcesDirectory)$(dir).packages | ||
| ${{ if eq(parameters.nameSuffix, 'CdacXPlatDumpTest') }}: | ||
| SourcePlatforms: ${{ join(';', parameters.platforms) }} | ||
| - ${{ if ne(parameters.publishDumpsArtifactName, '') }}: | ||
| - task: PublishPipelineArtifact@1 | ||
| inputs: | ||
| targetPath: $(Build.SourcesDirectory)/artifacts/helixresults | ||
| artifactName: ${{ parameters.publishDumpsArtifactName }} | ||
| displayName: 'Publish Dump Artifacts' | ||
| condition: ${{ parameters.publishDumpsCondition }} | ||
| continueOnError: true | ||
| - pwsh: | | ||
| if ("$(Agent.JobStatus)" -ne "Succeeded") { | ||
| Write-Error "${{ parameters.failErrorMessage }}" | ||
| exit 1 | ||
| } | ||
| displayName: ${{ parameters.failDisplayName }} | ||
| condition: always() |
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,13 @@ | ||
| # download-cdac-build-artifact.yml -- per-platform download of the | ||
| # CdacBuildArtifacts_<plat> tarball published by the CdacBuild job. | ||
| # Extracts into artifacts/bin/, so every test leg sees the same coreclr + | ||
| # libs + cDAC + test-csproj outputs that CdacBuild produced. Used as a | ||
| # preBuildStep by every test leg in the Cdac stage (and by CdacXPlatDumpTests). | ||
|
|
||
| steps: | ||
| - template: /eng/pipelines/common/download-artifact-step.yml | ||
| parameters: | ||
| artifactName: CdacBuildArtifacts_$(osGroup)$(osSubgroup)_$(archType) | ||
| artifactFileName: CdacBuildArtifacts_$(osGroup)$(osSubgroup)_$(archType)$(archiveExtension) | ||
| unpackFolder: $(Build.SourcesDirectory)/artifacts/bin | ||
| displayName: 'cDAC Shared Build Artifacts' |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| # sos-test-leg.yml -- wraps the matrix + job + dep + artifact download + | ||
| # standard postBuildSteps pattern used by the SOS-style test legs (cDAC, | ||
| # cDAC_no_fallback, DAC) that run on windows_x64. Each of those legs only | ||
| # differs in its `name`, `useCdac`, and `noFallback` value. | ||
| # | ||
| # AzDO tasks workaround: | ||
| # PublishTestResults v2.270.0 garbles parameterized xUnit test names | ||
| # containing dots. Unsetting AllowPtrToDetectTestRunRetryFiles restores | ||
| # v2.262.0 behavior. Tracked at microsoft/azure-pipelines-tasks#21871. | ||
|
|
||
| parameters: | ||
| - name: name | ||
| type: string | ||
| - name: useCdac | ||
| type: boolean | ||
| default: false | ||
| - name: noFallback | ||
| type: boolean | ||
| default: false | ||
|
|
||
| jobs: | ||
| - template: /eng/pipelines/common/platform-matrix.yml | ||
| parameters: | ||
| jobTemplate: /eng/pipelines/diagnostics/runtime-diag-job.yml | ||
| buildConfig: release | ||
| platforms: | ||
| - windows_x64 | ||
| variables: | ||
| - name: AllowPtrToDetectTestRunRetryFiles | ||
| value: false | ||
| jobParameters: | ||
| name: ${{ parameters.name }} | ||
| useCdac: ${{ parameters.useCdac }} | ||
| noFallback: ${{ parameters.noFallback }} | ||
| testInterpreter: true | ||
| methodFilter: SOS* | ||
| isOfficialBuild: ${{ variables.isOfficialBuild }} | ||
| liveRuntimeDir: $(Build.SourcesDirectory)/artifacts/runtime | ||
| timeoutInMinutes: 360 | ||
| dependsOn: | ||
| - build_windows_x64_release_AllSubsets_CoreCLR | ||
| preBuildSteps: | ||
| - template: /eng/pipelines/common/download-artifact-step.yml | ||
| parameters: | ||
| artifactName: BuildArtifacts_$(osGroup)$(osSubgroup)_$(archType)_$(_BuildConfig)_coreclr | ||
| artifactFileName: BuildArtifacts_$(osGroup)$(osSubgroup)_$(archType)_$(_BuildConfig)_coreclr$(archiveExtension) | ||
| unpackFolder: $(Build.SourcesDirectory)/artifacts/runtime | ||
| displayName: 'Runtime Build Artifacts' | ||
| postBuildSteps: | ||
| - task: PublishTestResults@2 | ||
| inputs: | ||
| testResultsFormat: xUnit | ||
| testResultsFiles: '**/*.xml' | ||
| searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults' | ||
| testRunTitle: 'Tests $(_PhaseName)' | ||
| failTaskOnFailedTests: true | ||
| publishRunAttachments: true | ||
| mergeTestResults: true | ||
| buildConfiguration: $(_BuildConfig) | ||
| continueOnError: true | ||
| condition: always() | ||
| - task: PublishPipelineArtifact@1 | ||
| inputs: | ||
| targetPath: '$(Build.SourcesDirectory)/artifacts/tmp/$(_BuildConfig)/dumps' | ||
| artifactName: 'Dumps_${{ parameters.name }}_$(osGroup)$(osSubgroup)_$(archType)_$(_BuildConfig)_Attempt$(System.JobAttempt)' | ||
| displayName: 'Publish Crash Dumps' | ||
| continueOnError: true | ||
| condition: failed() | ||
| - task: PublishPipelineArtifact@1 | ||
| inputs: | ||
| targetPath: '$(Build.SourcesDirectory)/artifacts/TestResults' | ||
| artifactName: 'TestResults_${{ parameters.name }}_$(osGroup)$(osSubgroup)_$(archType)_$(_BuildConfig)_Attempt$(System.JobAttempt)' | ||
| displayName: 'Publish Test Results and SOS Logs' | ||
| continueOnError: true | ||
| condition: failed() |
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.