Skip to content

Commit

Permalink
[DevCenter] Enable parallel test execution (#32451)
Browse files Browse the repository at this point in the history
Enabling parallel test execution for Azure.Developer.DevCenter + fixing CheckEnforcer triggers.
  • Loading branch information
chrissmiller authored Nov 14, 2022
1 parent 7ce7c69 commit df4209d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions sdk/devcenter/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ trigger:
- sdk/devcenter/ci.yml
- sdk/devcenter/Azure.Developer.DevCenter/
- sdk/devcenter/service.projects
- sdk/devcenter/test-resources.bicep
- sdk/devcenter/tests.yml

pr:
branches:
Expand All @@ -24,6 +26,8 @@ pr:
- sdk/devcenter/ci.yml
- sdk/devcenter/Azure.Developer.DevCenter/
- sdk/devcenter/service.projects
- sdk/devcenter/test-resources.bicep
- sdk/devcenter/tests.yml

extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
Expand Down
10 changes: 6 additions & 4 deletions sdk/devcenter/test-resources.bicep
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
param resourceLocation string = resourceGroup().location
param catalogSecretIdentifier string
param baseName string = resourceGroup().name
param catalogPatIdentifier string
param devCenterPresetMsi string
param projectEnvironmentTypePresetMsi string
param testUserOid string
param testUserName string
param projectAdminRoleDefinitionId string
param deploymentEnvironmentsRoleDefinitionId string

var defaultDevCenterName = 'sdk-default-devcenter'
var defaultDevCenterName = 'sdk-dc-${uniqueString('devcenter', baseName, resourceGroup().name)}'

var defaultProjectName = 'sdk-default-project'
var defaultPoolName = 'sdk-default-pool'
var defaultNetworkConnectionName = 'sdk-default-networkconnection'
Expand Down Expand Up @@ -166,7 +168,7 @@ resource catalog 'Microsoft.DevCenter/devcenters/catalogs@2022-09-01-preview' =
properties: {
gitHub: {
branch: 'main'
secretIdentifier: catalogSecretIdentifier
secretIdentifier: catalogPatIdentifier
path: '/NewFormat'
uri: gitUri
}
Expand All @@ -184,7 +186,7 @@ resource projectEnvironmentType 'Microsoft.DevCenter/projects/environmentTypes@2
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${devCenterPresetMsi}': {}
'${projectEnvironmentTypePresetMsi}': {}
}
}
properties: {
Expand Down

0 comments on commit df4209d

Please sign in to comment.