File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,17 @@ function Get-python-AdditionalValidationPackagesFromPackageSet {
6262 $changedServices += $pathComponents [1 ]
6363 }
6464
65- # handle any changes under sdk/<file>.<extension>
66- if ($pathComponents.Length -eq 2 -and $pathComponents [0 ] -eq " sdk" ) {
65+ # handle any changes under sdk/<file>.<extension> as well as any
66+ # changes to the root of the repository. Changes to the root of
67+ # repository is the case where pathComponents.Lenght -eq 1
68+ if (($pathComponents.Length -eq 2 -and $pathComponents [0 ] -eq " sdk" ) -or
69+ ($pathComponents.Length -eq 1 )) {
6770 $changedServices += " template"
6871 }
6972 }
73+
74+ # dedupe the changed service list before processing
75+ $changedServices = $changedServices | Get-Unique
7076 foreach ($changedService in $changedServices ) {
7177 $additionalPackages = $AllPkgProps | Where-Object { $_.ServiceDirectory -eq $changedService }
7278
@@ -91,8 +97,6 @@ function Get-python-AdditionalValidationPackagesFromPackageSet {
9197 $othersChanged = $targetedFiles | Where-Object { isOther($_ ) }
9298 }
9399
94- $changedServices = $changedServices | Get-Unique
95-
96100 if ($toolChanged ) {
97101 $additionalPackages = @ (
98102 " azure-storage-blob" ,
You can’t perform that action at this time.
0 commit comments