-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{CI} Use azdev and pytest for full test
#17383
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
Changes from 6 commits
15a347e
005d747
4e4abfa
d025b22
5fa5597
09bfc71
f8f02d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,144 +13,74 @@ pr: | |
| - '*' | ||
|
|
||
| jobs: | ||
| - job: ExtractMetadata | ||
| displayName: Extract Metadata | ||
| - job: AutomationTest | ||
| displayName: Automation Test (Profile Latest) | ||
| timeoutInMinutes: 120 | ||
| pool: | ||
| vmImage: 'ubuntu-16.04' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is 16.04 too old? Consider 18.04 or 20.04
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will update in #17368 to keep in sync with main pipeline. |
||
| strategy: | ||
| matrix: | ||
| Python36: | ||
| python.version: '3.6' | ||
| Python38: | ||
| python.version: '3.8' | ||
| steps: | ||
| - template: .azure-pipelines/templates/automation_test.yml | ||
| parameters: | ||
| pythonVersion: '$(python.version)' | ||
| profile: 'latest' | ||
| fullTest: true | ||
|
|
||
| condition: succeeded() | ||
| pool: | ||
| vmImage: 'ubuntu-16.04' | ||
| steps: | ||
| - task: Bash@3 | ||
| displayName: 'Extract Version' | ||
| inputs: | ||
| targetType: 'filePath' | ||
| filePath: scripts/release/get_version.sh | ||
| - task: PublishPipelineArtifact@0 | ||
| displayName: 'Publish Artifact: metadata' | ||
| inputs: | ||
| TargetPath: $(Build.ArtifactStagingDirectory) | ||
| ArtifactName: metadata | ||
| - job: AutomationTest20200901 | ||
| displayName: Automation Test (Profile 2020-09-01) | ||
| timeoutInMinutes: 120 | ||
| pool: | ||
| vmImage: 'ubuntu-16.04' | ||
| strategy: | ||
| matrix: | ||
| Python36: | ||
| python.version: '3.6' | ||
| Python38: | ||
| python.version: '3.8' | ||
|
Comment on lines
+41
to
+44
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is 3.7? Is 3.7 less important than 3.6 or 3.8?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We package with Python 3.6 and currently we support up to 3.8. @fengzhou-msft |
||
| steps: | ||
| - template: .azure-pipelines/templates/automation_test.yml | ||
| parameters: | ||
| pythonVersion: '$(python.version)' | ||
| profile: '2020-09-01-hybrid' | ||
| fullTest: true | ||
|
|
||
| - job: BuildPythonWheel | ||
| displayName: Build Python Wheels | ||
| dependsOn: ExtractMetadata | ||
| condition: succeeded() | ||
| pool: | ||
| vmImage: 'ubuntu-16.04' | ||
| steps: | ||
| - task: UsePythonVersion@0 | ||
| displayName: 'Use Python 3.7' | ||
| inputs: | ||
| versionSpec: 3.7 | ||
| - job: AutomationTest20190301 | ||
| displayName: Automation Test (Profile 2019-03-01) | ||
| timeoutInMinutes: 120 | ||
| pool: | ||
| vmImage: 'ubuntu-16.04' | ||
| strategy: | ||
| matrix: | ||
| Python36: | ||
| python.version: '3.6' | ||
| Python38: | ||
| python.version: '3.8' | ||
| steps: | ||
| - template: .azure-pipelines/templates/automation_test.yml | ||
| parameters: | ||
| pythonVersion: '$(python.version)' | ||
| profile: '2019-03-01-hybrid' | ||
| fullTest: true | ||
|
|
||
| - script: | | ||
| if [[ "$(Build.Reason)" == "PullRequest" ]]; then | ||
| branch=$(System.PullRequest.TargetBranch) | ||
| else | ||
| branch=$(Build.SourceBranchName) | ||
| fi | ||
| scripts/release/pypi/build.sh $branch | ||
| displayName: 'Run Wheel Build Script' | ||
|
|
||
| - task: PublishPipelineArtifact@0 | ||
| displayName: 'Publish Artifact: pypi' | ||
| inputs: | ||
| TargetPath: $(Build.ArtifactStagingDirectory) | ||
| ArtifactName: pypi | ||
|
|
||
| - job: AutomationTest | ||
| displayName: Automation Test | ||
| dependsOn: BuildPythonWheel | ||
| condition: succeeded() | ||
| timeoutInMinutes: 90 | ||
|
|
||
| pool: | ||
| vmImage: 'ubuntu-16.04' | ||
| strategy: | ||
| matrix: | ||
| Python36: | ||
| python.version: '3.6' | ||
| Python38: | ||
| python.version: '3.8' | ||
| steps: | ||
| - task: UsePythonVersion@0 | ||
| displayName: 'Use Python $(python.version)' | ||
| inputs: | ||
| versionSpec: '$(python.version)' | ||
| - task: DownloadPipelineArtifact@1 | ||
| displayName: 'Download Python Wheels' | ||
| inputs: | ||
| TargetPath: '$(Build.ArtifactStagingDirectory)/pypi' | ||
| artifactName: pypi | ||
| - bash: | | ||
| pip install --force-reinstall wheel | ||
| - task: Bash@3 | ||
| displayName: 'Run Test Automation' | ||
| inputs: | ||
| targetType: 'filePath' | ||
| filePath: ./scripts/ci/test_automation.sh | ||
|
|
||
| - job: RunAutomationReduced20190301 | ||
| displayName: Run Automation Reduced, Profile 2019-03-01 | ||
| dependsOn: BuildPythonWheel | ||
| condition: succeeded() | ||
| pool: | ||
| vmImage: 'ubuntu-16.04' | ||
| strategy: | ||
| matrix: | ||
| Python36: | ||
| python.version: '3.6' | ||
| Python38: | ||
| python.version: '3.8' | ||
| steps: | ||
| - task: UsePythonVersion@0 | ||
| displayName: 'Use Python $(python.version)' | ||
| inputs: | ||
| versionSpec: '$(python.version)' | ||
| - task: DownloadPipelineArtifact@1 | ||
| displayName: 'Download Python Wheels' | ||
| inputs: | ||
| TargetPath: '$(Build.ArtifactStagingDirectory)/pypi' | ||
| artifactName: pypi | ||
| - bash: | | ||
| pip install --force-reinstall wheel | ||
| - task: Bash@3 | ||
| displayName: 'Run Test Automation' | ||
| inputs: | ||
| targetType: 'filePath' | ||
| filePath: ./scripts/ci/test_automation.sh | ||
| env: | ||
| REDUCE_SDK: 'True' | ||
| AZURE_CLI_TEST_TARGET_PROFILE: '2019-03-01' | ||
|
|
||
| - job: RunAutomation20180301 | ||
| displayName: Run Automation, Profile 2018-03-01 | ||
| dependsOn: BuildPythonWheel | ||
| condition: succeeded() | ||
| pool: | ||
| vmImage: 'ubuntu-16.04' | ||
| strategy: | ||
| matrix: | ||
| Python36: | ||
| python.version: '3.6' | ||
| Python38: | ||
| python.version: '3.8' | ||
| steps: | ||
| - task: UsePythonVersion@0 | ||
| displayName: 'Use Python $(python.version)' | ||
| inputs: | ||
| versionSpec: '$(python.version)' | ||
| - task: DownloadPipelineArtifact@1 | ||
| displayName: 'Download Python Wheels' | ||
| inputs: | ||
| TargetPath: '$(Build.ArtifactStagingDirectory)/pypi' | ||
| artifactName: pypi | ||
| - bash: | | ||
| pip install --force-reinstall wheel | ||
| - task: Bash@3 | ||
| displayName: 'Run Test Automation' | ||
| inputs: | ||
| targetType: 'filePath' | ||
| filePath: ./scripts/ci/test_automation.sh | ||
| env: | ||
| AZURE_CLI_TEST_TARGET_PROFILE: '2018-03-01' | ||
| - job: AutomationTest20180301 | ||
| displayName: Automation Test (Profile 2018-03-01) | ||
| timeoutInMinutes: 120 | ||
| pool: | ||
| vmImage: 'ubuntu-16.04' | ||
| strategy: | ||
| matrix: | ||
| Python36: | ||
| python.version: '3.6' | ||
| Python38: | ||
| python.version: '3.8' | ||
| steps: | ||
| - template: .azure-pipelines/templates/automation_test.yml | ||
| parameters: | ||
| pythonVersion: '$(python.version)' | ||
| profile: '2018-03-01-hybrid' | ||
| fullTest: true | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does '' mean? How about setting default value 3.8?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
''means empty string. I copied it as-is. It also appears here:azure-cli/.azure-pipelines/templates/azdev_setup.yml
Lines 5 to 7 in 0fa1fb5
Sure.