forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the Formatting jobs over to AzDO (dotnet/coreclr#24367)
* First stab at running the format jobs in AzDO. * Add display names for formatting jobs. * Try to use a python version in the path * Try to fix bootstrap download. * Use imported paths. Output python major version. * Clean up imports. * Fix imports. * Try just using urlretrieve again * Cleanup * Add back killing spurious dotnet processes. * Try leaving all shutdown/kill work to AzDO. * PR Feedback. Commit migrated from dotnet/coreclr@8f658ab
- Loading branch information
1 parent
bafad0e
commit 3aac4b1
Showing
4 changed files
with
51 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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,41 @@ | ||
parameters: | ||
buildConfig: '' | ||
archType: '' | ||
osGroup: '' | ||
osIdentifier: '' | ||
containerName: '' | ||
crossrootfsDir: '' | ||
timeoutInMinutes: '' | ||
|
||
### Format job | ||
jobs: | ||
- template: xplat-job.yml | ||
parameters: | ||
buildConfig: ${{ parameters.buildConfig }} | ||
archType: ${{ parameters.archType }} | ||
osGroup: ${{ parameters.osGroup }} | ||
osIdentifier: ${{ parameters.osIdentifier }} | ||
containerName: ${{ parameters.containerName }} | ||
crossrootfsDir: ${{ parameters.crossrootfsDir }} | ||
timeoutInMinutes: ${{ parameters.timeoutInMinutes }} | ||
name: ${{ format('format_{0}_{1}', parameters.osIdentifier, parameters.archType) }} | ||
displayName: ${{ format('Formatting {0} {1}', parameters.osIdentifier, parameters.archType) }} | ||
helixType: 'format' | ||
steps: | ||
- task: DotNetCoreInstaller@0 | ||
inputs: | ||
packageType: 'sdk' | ||
version: '2.1.402' | ||
- task: PythonScript@0 | ||
displayName: Run tests/scripts/format.py | ||
inputs: | ||
scriptSource: 'filePath' | ||
scriptPath: $(Build.SourcesDirectory)/tests/scripts/format.py | ||
arguments: '-c $(Build.SourcesDirectory) -o $(osGroup) -a $(archType)' | ||
- task: PublishBuildArtifacts@1 | ||
displayName: Publish format.patch | ||
inputs: | ||
PathtoPublish: '$(Build.SourcesDirectory)/format.patch' | ||
ArtifactName: $(osGroup).$(archType) format.patch | ||
continueOnError: true | ||
condition: failed() |
This file contains 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 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 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