-
Notifications
You must be signed in to change notification settings - Fork 5.2k
PR-CI: Split Build and Analyze into independent LOC-based batched matrices #59444
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 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ac921cb
Split Build/Analyze into independent LOC-weighted matrices
m-nash 590907f
Use separate AnalyzePackageInfoArtifact for analyze stage
m-nash 0dc37fc
Rename LocTargetSeconds -> LocTarget (and -TargetSeconds -> -Target)
m-nash 3f4aaf6
Remove time-unit suffixes from LOC weight log lines
m-nash fbc0eb3
Resolve DirectoryPath against RepoRoot in Get-PackageLocWeights
m-nash a679670
Clarify LOC weights key is ArtifactName
m-nash 4e4eadb
Clarify Target is a goal not a hard cap
m-nash f328047
Rename EnableBuildWeighting -> EnableLocWeighting
m-nash ca50ab0
Make Apply-WeightedBatching synopsis job/unit agnostic
m-nash 890e48b
Align WeightsFile help text with ArtifactName key
m-nash 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,52 @@ | ||
| parameters: | ||
| - name: Artifacts | ||
| type: object | ||
| default: [] | ||
| - name: ServiceDirectory | ||
| type: string | ||
| default: not-specified | ||
| - name: SDKType | ||
| type: string | ||
| default: all | ||
| - name: BuildSnippets | ||
| type: boolean | ||
| default: true | ||
| - name: ArtifactName | ||
| type: string | ||
| default: BuildPackagesArtifact | ||
| - name: DependsOn | ||
| type: string | ||
| default: '' | ||
| - name: CloudConfig | ||
| type: object | ||
| default: {} | ||
| - name: Matrix | ||
| type: string | ||
| - name: UsePlatformContainer | ||
| type: boolean | ||
| default: false | ||
| - name: OSName | ||
| type: string | ||
|
|
||
| jobs: | ||
| - job: | ||
| displayName: "Analyze" | ||
| dependsOn: ${{ parameters.DependsOn }} | ||
| condition: and(succeededOrFailed(), ne(${{ parameters.Matrix }}, '{}')) | ||
|
|
||
| strategy: | ||
| matrix: $[ ${{ parameters.Matrix }} ] | ||
|
|
||
| pool: | ||
| name: $(LINUXPOOL) | ||
| image: $(LINUXVMIMAGE) | ||
| os: linux | ||
|
|
||
| steps: | ||
| - template: /eng/pipelines/templates/steps/analyze.yml | ||
| parameters: | ||
| Artifacts: ${{ parameters.Artifacts }} | ||
| ServiceDirectory: ${{ parameters.ServiceDirectory }} | ||
| SDKType: ${{ parameters.SDKType }} | ||
| BuildSnippets: ${{ parameters.BuildSnippets }} | ||
| ArtifactName: ${{ parameters.ArtifactName }} |
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.