Skip to content

Commit

Permalink
[Perf] Refactor tests.yml into one file per package per language (#28462
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mikeharder authored Feb 10, 2023
1 parent 1714811 commit eb3b485
Show file tree
Hide file tree
Showing 10 changed files with 155 additions and 9 deletions.
10 changes: 5 additions & 5 deletions eng/pipelines/templates/jobs/perf.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
parameters:
- name: ServiceDirectory
- name: LanguageVersion
type: string
default: ''
- name: Services
default: '3.11'
- name: ServiceDirectory
type: string
default: ''
- name: PackageVersions
Expand Down Expand Up @@ -30,15 +30,15 @@ extends:
Variables:
- template: /eng/pipelines/templates/variables/globals.yml
- name: PythonVersion
value: '3.11'
value: ${{ parameters.LanguageVersion }}
Language: Python
LanguageVersion: ${{ parameters.LanguageVersion }}
InstallLanguageSteps:
- task: UsePythonVersion@0
displayName: "Use Python $(PythonVersion)"
inputs:
versionSpec: $(PythonVersion)
ServiceDirectory: ${{ parameters.ServiceDirectory }}
Services: ${{ parameters.Services }}
PackageVersions: ${{ parameters.PackageVersions }}
Tests: ${{ parameters.Tests }}
Arguments: ${{ parameters.Arguments }}
Expand Down
28 changes: 28 additions & 0 deletions sdk/eventhub/perf-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Service: eventhubs

Project: sdk/eventhub/azure-eventhub

PrimaryPackage: azure-eventhub

PackageVersions:
- azure-core: 1.26.1
azure-eventhub: 5.11.1
- azure-core: source
azure-eventhub: source

Tests:
- Test: send-event-batch
Class: SendEventBatchTest
Arguments:
- --event-size 1024 --batch-size 100 --parallel 64
- --event-size 1024 --batch-size 100 --parallel 64 --uamqp-transport
- --event-size 1024 --batch-size 100 --parallel 64 --transport-type 1
- --event-size 1024 --batch-size 100 --parallel 64 --transport-type 1 --uamqp-transport

- Test: process-events-batch
Class: ProcessEventsBatchTest
Arguments:
- --event-size 1024 --max-batch-size 100 --preload 1000000
- --event-size 1024 --max-batch-size 100 --preload 1000000 --uamqp-transport
- --event-size 1024 --max-batch-size 100 --preload 1000000 --transport-type 1
- --event-size 1024 --max-batch-size 100 --preload 1000000 --transport-type 1 --uamqp-transport
6 changes: 5 additions & 1 deletion sdk/eventhub/perf.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
parameters:
- name: LanguageVersion
displayName: LanguageVersion (3.7, 3.8, 3.9, 3.10, 3.11)
type: string
default: '3.11'
- name: PackageVersions
displayName: PackageVersions (regex of package versions to run)
type: string
Expand All @@ -24,7 +28,7 @@ extends:
template: /eng/pipelines/templates/jobs/perf.yml
parameters:
ServiceDirectory: eventhub
Services: "^(eventhubs)$"
LanguageVersion: ${{ parameters.LanguageVersion }}
PackageVersions: ${{ parameters.PackageVersions }}
Tests: ${{ parameters.Tests }}
Arguments: ${{ parameters.Arguments }}
Expand Down
23 changes: 23 additions & 0 deletions sdk/keyvault/azure-keyvault-secrets/perf-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Service: keyvault-secrets

Project: sdk/keyvault/azure-keyvault-secrets

PrimaryPackage: azure-keyvault-secrets

PackageVersions:
- azure-core: 1.15.0
azure-keyvault-secrets: 4.3.0
- azure-core: source
azure-keyvault-secrets: source

Tests:
- Test: get-secret
Class: GetSecretTest
Arguments:
- --parallel 64

- Test: list-secrets
Class: ListSecretsTest
Arguments:
- --count 5 --parallel 64
- --count 500 --parallel 32
31 changes: 31 additions & 0 deletions sdk/storage/azure-storage-blob/perf-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Service: storage-blob

Project: sdk/storage/azure-storage-blob

PrimaryPackage: azure-storage-blob

PackageVersions:
- azure-core: 1.26.1
azure-storage-blob: 12.14.1
- azure-core: source
azure-storage-blob: source

Tests:
- Test: download
Class: DownloadTest
Arguments: &sizes
- --size 10240 --parallel 64
- --size 10485760 --parallel 32
- --size 1073741824 --parallel 1 --warmup 60 --duration 60
- --size 1073741824 --parallel 8 --warmup 60 --duration 60

- Test: upload
Class: UploadTest
Arguments: *sizes

- Test: list-blobs
Class: ListBlobsTest
Arguments:
- --count 5 --parallel 64
- --count 500 --parallel 32
- --count 50000 --parallel 32 --warmup 60 --duration 60
6 changes: 5 additions & 1 deletion sdk/storage/azure-storage-blob/perf.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
parameters:
- name: LanguageVersion
displayName: LanguageVersion (3.7, 3.8, 3.9, 3.10, 3.11)
type: string
default: '3.11'
- name: PackageVersions
displayName: PackageVersions (regex of package versions to run)
type: string
Expand All @@ -24,7 +28,7 @@ extends:
template: /eng/pipelines/templates/jobs/perf.yml
parameters:
ServiceDirectory: storage/azure-storage-blob
Services: "^storage-blob$"
LanguageVersion: ${{ parameters.LanguageVersion }}
PackageVersions: ${{ parameters.PackageVersions }}
Tests: ${{ parameters.Tests }}
Arguments: ${{ parameters.Arguments }}
Expand Down
24 changes: 24 additions & 0 deletions sdk/storage/azure-storage-file-datalake/perf-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Service: storage-file-datalake

Project: sdk/storage/azure-storage-file-datalake

PrimaryPackage: azure-storage-file-datalake

PackageVersions:
- azure-core: 1.26.1
azure-storage-file-datalake: 12.9.1
- azure-core: source
azure-storage-file-datalake: source

Tests:
- Test: download
Class: DownloadTest
Arguments: &sizes
- --size 10240 --parallel 64
- --size 10485760 --parallel 32
- --size 1073741824 --parallel 1 --warmup 60 --duration 60
- --size 1073741824 --parallel 8 --warmup 60 --duration 60

- Test: upload
Class: UploadTest
Arguments: *sizes
6 changes: 5 additions & 1 deletion sdk/storage/azure-storage-file-datalake/perf.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
parameters:
- name: LanguageVersion
displayName: LanguageVersion (3.7, 3.8, 3.9, 3.10, 3.11)
type: string
default: '3.11'
- name: PackageVersions
displayName: PackageVersions (regex of package versions to run)
type: string
Expand All @@ -24,7 +28,7 @@ extends:
template: /eng/pipelines/templates/jobs/perf.yml
parameters:
ServiceDirectory: storage/azure-storage-file-datalake
Services: "^storage-file-datalake$"
LanguageVersion: ${{ parameters.LanguageVersion }}
PackageVersions: ${{ parameters.PackageVersions }}
Tests: ${{ parameters.Tests }}
Arguments: ${{ parameters.Arguments }}
Expand Down
24 changes: 24 additions & 0 deletions sdk/storage/azure-storage-file-share/perf-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Service: storage-file-share

Project: sdk/storage/azure-storage-file-share

PrimaryPackage: azure-storage-file-share

PackageVersions:
- azure-core: 1.26.1
azure-storage-file-share: 12.10.1
- azure-core: source
azure-storage-file-share: source

Tests:
- Test: download
Class: DownloadTest
Arguments: &sizes
- --size 10240 --parallel 64
- --size 10485760 --parallel 32
- --size 1073741824 --parallel 1 --warmup 60 --duration 60
- --size 1073741824 --parallel 8 --warmup 60 --duration 60

- Test: upload
Class: UploadTest
Arguments: *sizes
6 changes: 5 additions & 1 deletion sdk/storage/azure-storage-file-share/perf.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
parameters:
- name: LanguageVersion
displayName: LanguageVersion (3.7, 3.8, 3.9, 3.10, 3.11)
type: string
default: '3.11'
- name: PackageVersions
displayName: PackageVersions (regex of package versions to run)
type: string
Expand All @@ -24,7 +28,7 @@ extends:
template: /eng/pipelines/templates/jobs/perf.yml
parameters:
ServiceDirectory: storage/azure-storage-file-share
Services: "^storage-file-share$"
LanguageVersion: ${{ parameters.LanguageVersion }}
PackageVersions: ${{ parameters.PackageVersions }}
Tests: ${{ parameters.Tests }}
Arguments: ${{ parameters.Arguments }}
Expand Down

0 comments on commit eb3b485

Please sign in to comment.