-
Notifications
You must be signed in to change notification settings - Fork 329
PR Pipeline - Azure + AE #4338
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
base: main
Are you sure you want to change the base?
PR Pipeline - Azure + AE #4338
Changes from all commits
dc75d06
15714a6
66278ae
1e98826
7d53a40
b5e74a5
392ceec
472ec0c
bff1f6b
1076211
0ea0f80
a4060e8
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 |
|---|---|---|
|
|
@@ -73,17 +73,26 @@ jobs: | |
| - imageOverride -equals ${{ parameters.platformImage }} | ||
|
|
||
| steps: | ||
| # Install the version of the dotnet runtime we will use to execute the test target. | ||
| - template: /eng/pipelines/pr/steps/install-dotnet.yml@self | ||
| # Install dotnet and the runtime that will run the tests (if it is not netframework) | ||
| - template: /eng/pipelines/common/steps/install-dotnet.yml@self | ||
| parameters: | ||
| runtimeVersion: ${{ parameters.platformDotnet }} | ||
| ${{ if not(contains(parameters.platformDotnet, 'net4')) }}: | ||
| runtimes: | ||
| - "${{ replace(parameters.platformDotnet, 'net', '') }}.x" | ||
|
|
||
| # Execute the test target | ||
| - template: /eng/pipelines/pr/steps/test-buildproj-step.yml | ||
| parameters: | ||
| buildConfiguration: ${{ parameters.buildConfiguration }} | ||
| buildSuffix: ${{ parameters.buildSuffix }} | ||
| # Restore dotnet tools | ||
| - template: /eng/pipelines/common/steps/restore-dotnet-tools.yml@self | ||
|
|
||
| packageShortName: ${{ parameters.packageShortName }} | ||
| testFramework: ${{ parameters.platformDotnet }} | ||
| testProject: ${{ parameters.testProject }} | ||
| # Execute the test target | ||
| - task: DotNetCoreCLI@2 | ||
| displayName: 'Test: ${{ parameters.packageShortName }}${{ parameters.testProject }}' | ||
| inputs: | ||
| command: build | ||
| projects: build.proj | ||
| verbosity: detailed | ||
|
Contributor
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. I think we want a top-level parameter for this (like the other pipelines), and default to normal. |
||
| arguments: >- | ||
| -t:Test${{ parameters.packageShortName }}${{ parameters.testProject }} | ||
| -p:Configuration=${{ parameters.buildConfiguration }} | ||
| -p:BuildNumber='$(Build.BuildNumber)' | ||
| -p:BuildSuffix='${{ parameters.buildSuffix }}' | ||
| -p:TestFramework=${{ parameters.platformDotnet }} | ||
|
Comment on lines
+86
to
+98
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,6 +59,11 @@ parameters: | |
| - name: azureKeyVaultUrl | ||
| type: string | ||
|
|
||
| # Display name for the config being used for this execution of the manual jobs. This will be used | ||
| # for the job name, so it may only contain alphanumeric and '_' characters. | ||
| - name: configDisplayName | ||
| type: string | ||
|
|
||
| # Connection string using named pipes that will be set in the config.json file. | ||
| - name: connectionStringNp | ||
| type: string | ||
|
|
@@ -71,6 +76,11 @@ parameters: | |
| - name: fileStreamDirectory | ||
| type: string | ||
|
|
||
| # Whether the server that tests will be executed against is local to the job agent. If `true` | ||
| # server configuration steps will be executed prior to running the tests. | ||
| - name: isLocalServer | ||
| type: boolean | ||
|
|
||
| # Name of the local DB application name for localdb tests, this value will be stored in the | ||
| # config.json | ||
| - name: localDbAppName | ||
|
|
@@ -81,9 +91,13 @@ parameters: | |
| - name: localDbSharedInstanceName | ||
| type: string | ||
|
|
||
| # Manual test set to execute. | ||
| - name: testSet | ||
| type: string | ||
|
|
||
| jobs: | ||
| - job: "test_${{ parameters.platformDisplayName }}_sqlclient_manual" | ||
| displayName: "sqlclient_manual_${{ parameters.platformDisplayName }}" | ||
| - job: "test_${{ parameters.platformDisplayName }}_${{ parameters.configDisplayName }}_${{ parameters.testSet }}_sqlclient_manual" | ||
| displayName: "sqlclient_manual_${{ parameters.configDisplayName}}_${{ parameters.testSet }}_${{ parameters.platformDisplayName }}" | ||
|
|
||
| pool: | ||
| name: ${{ parameters.poolName }} | ||
|
|
@@ -97,17 +111,23 @@ jobs: | |
| value: $[stageDependencies.${{ parameters.stageNameSecrets }}.secrets_job.outputs['SaPassword.Value']] | ||
|
|
||
| steps: | ||
| # Install the version of the dotnet runtime we will use to execute the test target. | ||
| - template: /eng/pipelines/pr/steps/install-dotnet.yml@self | ||
| # Install dotnet and the runtime that will run the tests (if it is not netframework) | ||
| - template: /eng/pipelines/common/steps/install-dotnet.yml@self | ||
| parameters: | ||
| runtimeVersion: ${{ parameters.platformDotnet }} | ||
| ${{ if not(contains(parameters.platformDotnet, 'net4')) }}: | ||
| runtimes: | ||
| - "${{ replace(parameters.platformDotnet, 'net', '') }}.x" | ||
|
|
||
| # Restore dotnet tools | ||
| - template: /eng/pipelines/common/steps/restore-dotnet-tools.yml@self | ||
|
|
||
| # Configure the local SQL Server instance | ||
| - template: /eng/pipelines/pr/steps/configure-sqlserver-step.yml@self | ||
| parameters: | ||
| fileStreamDirectory: ${{ parameters.fileStreamDirectory }} | ||
| operatingSystem: ${{ parameters.platformOperatingSystem }} | ||
| saPassword: $(saPassword) | ||
| - ${{ if eq(parameters.isLocalServer, true) }}: | ||
| - template: /eng/pipelines/pr/steps/configure-sqlserver-step.yml@self | ||
| parameters: | ||
| fileStreamDirectory: ${{ parameters.fileStreamDirectory }} | ||
| operatingSystem: ${{ parameters.platformOperatingSystem }} | ||
| saPassword: $(saPassword) | ||
|
|
||
| # Assign the generated SA password to the $Password field. This will allow $(Password) to be | ||
| # be replaced in connection strings with whatever set in the secrets stage. | ||
|
|
@@ -149,12 +169,17 @@ jobs: | |
| displayName: 'Generate manual test config' | ||
|
|
||
| # Execute TestSqlClientManual target from build.proj | ||
| - template: /eng/pipelines/pr/steps/test-buildproj-step.yml | ||
| parameters: | ||
| buildConfiguration: ${{ parameters.buildConfiguration }} | ||
| buildSuffix: ${{ parameters.buildSuffix }} | ||
|
|
||
| packageShortName: "SqlClient" | ||
| testFramework: ${{ parameters.platformDotnet }} | ||
| testProject: "Manual" | ||
| - task: DotNetCoreCLI@2 | ||
| displayName: 'Test: SqlClientManual ${{ parameters.testSet }}' | ||
| inputs: | ||
| command: build | ||
| projects: build.proj | ||
|
Comment on lines
+172
to
+176
Contributor
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. |
||
| verbosity: detailed | ||
| arguments: >- | ||
| -t:TestSqlClientManual | ||
| -p:Configuration=${{ parameters.buildConfiguration }} | ||
| -p:BuildNumber='$(Build.BuildNumber)' | ||
| -p:BuildSuffix='${{ parameters.buildSuffix }}' | ||
| -p:TestFramework=${{ parameters.platformDotnet }} | ||
| -p:TestSet=${{ parameters.testSet }} | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
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.
@mdaigle