|
| 1 | +parameters: |
| 2 | + - name: AdditionalMatrixReplace |
| 3 | + type: object |
| 4 | + default: [] |
| 5 | + |
| 6 | +stages: |
| 7 | + - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml |
| 8 | + parameters: |
| 9 | + ServiceDirectory: storage |
| 10 | + Artifacts: |
| 11 | + - name: azure-storage-common |
| 12 | + groupId: com.azure |
| 13 | + safeName: azurestoragecommon |
| 14 | + - name: azure-storage-blob |
| 15 | + groupId: com.azure |
| 16 | + safeName: azurestorageblob |
| 17 | + - name: azure-storage-blob-batch |
| 18 | + groupId: com.azure |
| 19 | + safeName: azurestorageblobbatch |
| 20 | + - name: azure-storage-blob-changefeed |
| 21 | + groupId: com.azure |
| 22 | + safeName: azurestorageblobchangefeed |
| 23 | + - name: azure-storage-blob-cryptography |
| 24 | + groupId: com.azure |
| 25 | + safeName: azurestorageblobcryptography |
| 26 | + - name: azure-storage-blob-nio |
| 27 | + groupId: com.azure |
| 28 | + safeName: azurestorageblobnio |
| 29 | + - name: azure-storage-file-share |
| 30 | + groupId: com.azure |
| 31 | + safeName: azurestoragefileshare |
| 32 | + - name: azure-storage-file-datalake |
| 33 | + groupId: com.azure |
| 34 | + safeName: azurestoragefiledatalake |
| 35 | + - name: azure-storage-internal-avro |
| 36 | + groupId: com.azure |
| 37 | + safeName: azurestorageinternalavro |
| 38 | + - name: azure-storage-queue |
| 39 | + groupId: com.azure |
| 40 | + safeName: azurestoragequeue |
| 41 | + AdditionalModules: |
| 42 | + - name: perf-test-core |
| 43 | + groupId: com.azure |
| 44 | + - name: azure-storage-perf |
| 45 | + groupId: com.azure |
| 46 | + TestMode: 'LIVE' |
| 47 | + TimeoutInMinutes: 60 |
| 48 | + Location: canadacentral |
| 49 | + CloudConfig: |
| 50 | + Preview: |
| 51 | + SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources-preview) |
| 52 | + PrivatePreview: |
| 53 | + SubscriptionConfiguration: $(sub-config-storage-test-resources) |
| 54 | + Clouds: Preview |
| 55 | + SupportedClouds: Preview |
| 56 | + TestStepMavenInputs: |
| 57 | + options: '$(DefaultTestOptions) $(AdditionalOptions) -T 1C' |
| 58 | + mavenOptions: '$(DefaultTestMavenOptions)' |
| 59 | + MatrixReplace: |
| 60 | + # Use dedicated storage pool in canadacentral with higher memory capacity |
| 61 | + - Pool=(.*)-general/$1-storage |
| 62 | + - ${{ each additionalReplace in parameters.AdditionalMatrixReplace }}: |
| 63 | + - ${{ additionalReplace }} |
| 64 | + MatrixConfigs: |
| 65 | + - ${{ if contains(variables['Build.DefinitionName'], 'tests-weekly') }}: |
| 66 | + - Name: Storage_all_versions_live_test |
| 67 | + Path: sdk/storage/platform-matrix-all-versions.json |
| 68 | + Selection: sparse |
| 69 | + GenerateVMJobs: true |
| 70 | + - ${{ if not(contains(variables['Build.DefinitionName'], 'tests-weekly')) }}: |
| 71 | + - Name: Storage_live_test |
| 72 | + Path: sdk/storage/platform-matrix.json |
| 73 | + Selection: sparse |
| 74 | + GenerateVMJobs: true |
| 75 | + PreSteps: |
| 76 | + - template: /sdk/storage/tests-install-azurite.yml |
| 77 | + PostSteps: |
| 78 | + - task: PowerShell@2 |
| 79 | + displayName: 'Run Stress Scenarios' |
| 80 | + inputs: |
| 81 | + targetType: 'filePath' |
| 82 | + filePath: sdk/storage/azure-storage-perf/memory-stress-scenarios.ps1 |
| 83 | + env: |
| 84 | + ${{ if eq(variables['JavaTestVersion'], '1.11') }}: |
| 85 | + JAVA_HOME: $(JAVA_HOME_11_X64) |
| 86 | + ${{ if eq(variables['JavaTestVersion'], '1.8') }}: |
| 87 | + JAVA_HOME: $(JAVA_HOME_8_X64) |
| 88 | + condition: and(succeeded(), eq(variables['StorageRunStressScenarios'], 'true')) |
| 89 | + - pwsh: | |
| 90 | + New-Item $(Build.ArtifactStagingDirectory)/test-logs -ItemType directory |
| 91 | + Copy-Item sdk/storage/azure-storage-blob/target/test.log $(Build.ArtifactStagingDirectory)/test-logs/azure-storage-blob-test.log -ErrorAction SilentlyContinue |
| 92 | + Copy-Item sdk/storage/azure-storage-blob-batch/target/test.log $(Build.ArtifactStagingDirectory)/test-logs/azure-storage-blob-batch-test.log -ErrorAction SilentlyContinue |
| 93 | + Copy-Item sdk/storage/azure-storage-blob-changefeed/target/test.log $(Build.ArtifactStagingDirectory)/test-logs/azure-storage-blob-changefeed-test.log -ErrorAction SilentlyContinue |
| 94 | + Copy-Item sdk/storage/azure-storage-blob-cryptography/target/test.log $(Build.ArtifactStagingDirectory)/test-logs/azure-storage-blob-cryptography-test.log -ErrorAction SilentlyContinue |
| 95 | + Copy-Item sdk/storage/azure-storage-blob-nio/target/test.log $(Build.ArtifactStagingDirectory)/test-logs/azure-storage-blob-nio-test.log -ErrorAction SilentlyContinue |
| 96 | + Copy-Item sdk/storage/azure-storage-common/target/test.log $(Build.ArtifactStagingDirectory)/test-logs/azure-storage-common-test.log -ErrorAction SilentlyContinue |
| 97 | + Copy-Item sdk/storage/azure-storage-file-datalake/target/test.log $(Build.ArtifactStagingDirectory)/test-logs/azure-storage-file-datalake-test.log -ErrorAction SilentlyContinue |
| 98 | + Copy-Item sdk/storage/azure-storage-file-share/target/test.log $(Build.ArtifactStagingDirectory)/test-logs/azure-storage-file-share-test.log -ErrorAction SilentlyContinue |
| 99 | + Copy-Item sdk/storage/azure-storage-internal-avro/target/test.log $(Build.ArtifactStagingDirectory)/test-logs/azure-storage-internal-avro-test.log -ErrorAction SilentlyContinue |
| 100 | + Copy-Item sdk/storage/azure-storage-queue/target/test.log $(Build.ArtifactStagingDirectory)/test-logs/azure-storage-queue-test.log -ErrorAction SilentlyContinue |
| 101 | + displayName: 'Copy test logs to artifact staging' |
| 102 | + condition: always() |
| 103 | + - publish: $(Build.ArtifactStagingDirectory)/test-logs |
| 104 | + displayName: 'Publish test logs' |
| 105 | + artifact: test-log-$(System.StageName)-$(System.JobName)-$(System.JobAttempt) |
| 106 | + condition: always() |
| 107 | + EnvVars: |
| 108 | + AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id) |
| 109 | + AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id) |
| 110 | + AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret) |
| 111 | + VERSIONED_STORAGE_ACCOUNT_NAME: $(java-storage-versioned-account-name) |
| 112 | + VERSIONED_STORAGE_ACCOUNT_KEY: $(java-storage-versioned-account-key) |
0 commit comments