-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use sparse checkout in release, ci and live tests (#20901)
* Use sparse checkout in release, ci and live tests * Optimize sparse checkout multiple directories * Sparse checkout, recording improvements * Add xml glob for sparse-checkout in release step * Update sparse checkout for Build and Analyze CI jobs * Add CODEOWNERS to sparse checkout for docs.ms publishing. * Check out test-resources.json files. Clean up sparse checkout paths * Use path definition for docs metadata release * Simplify recording checkout inclusion/exclusion * Sparse checkout cspell config * Use named checkout directories variable for generate_from_source_pom.py script * Re-order ci steps
- Loading branch information
Showing
6 changed files
with
169 additions
and
77 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
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
62 changes: 62 additions & 0 deletions
62
eng/pipelines/templates/steps/initialize-test-environment.yml
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,62 @@ | ||
parameters: | ||
- name: ServiceDirectory | ||
type: string | ||
- name: Artifacts | ||
type: object | ||
default: [] | ||
- name: AdditionalModules | ||
type: object | ||
default: [] | ||
- name: CheckoutRecordings | ||
type: boolean | ||
default: false | ||
|
||
steps: | ||
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml | ||
parameters: | ||
Paths: | ||
- '**/*.xml' | ||
- 'sdk/${{ parameters.ServiceDirectory }}' | ||
- ${{ if not(parameters.CheckoutRecordings) }}: | ||
- '!sdk/**/test-recordings' | ||
- '!sdk/**/session-records' | ||
|
||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python 3.6' | ||
inputs: | ||
versionSpec: '3.6' | ||
|
||
- template: /eng/common/pipelines/templates/steps/verify-agent-os.yml | ||
parameters: | ||
AgentImage: $(OSVmImage) | ||
|
||
- task: PythonScript@0 | ||
displayName: 'Set versions for source build' | ||
inputs: | ||
scriptPath: 'eng/versioning/set_versions.py' | ||
arguments: '--build-type client --pst' | ||
condition: and(succeeded(), eq(variables['TestFromSource'], 'true')) | ||
|
||
- task: PythonScript@0 | ||
displayName: 'Update versions for source build' | ||
inputs: | ||
scriptPath: 'eng/versioning/update_versions.py' | ||
arguments: '--update-type library --build-type client --sr' | ||
condition: and(succeeded(), eq(variables['ShouldRunSourceTests'],'true')) | ||
|
||
- template: generate-project-list.yml | ||
parameters: | ||
Artifacts: ${{ parameters.Artifacts }} | ||
AdditionalModules: ${{ parameters.AdditionalModules }} | ||
|
||
- task: PythonScript@0 | ||
displayName: 'Generate directories variable for sparse checkout' | ||
inputs: | ||
scriptPath: 'eng/scripts/generate_from_source_pom.py' | ||
arguments: '--set-pipeline-variable CheckoutDirectories --project-list $(ProjectList)' | ||
workingDirectory: '$(System.DefaultWorkingDirectory)' | ||
|
||
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml | ||
parameters: | ||
SkipDefaultCheckout: true | ||
Paths: $(CheckoutDirectories) |
Oops, something went wrong.