Skip to content

Commit d0fc88c

Browse files
authored
[Smoke Tests] Ignore Known Incompatible Packages (Azure#33925)
* [Smoke Tests] Ignore Known Incompatible Packages The focus of these changes is to define a set that contains the list of packages which should not be included as references to the smoke tests. This is necessary because some compatibility packages do not target netstandard2.0, and the package source is unable to filter upstream to restrict to the appropriate packages for the running target. * Incorporating feedback
1 parent 53b6bd9 commit d0fc88c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

common/SmokeTests/SmokeTest/Update-Dependencies.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ param(
77

88
. (Join-Path $PSScriptRoot ../../../eng/scripts/smoketest/Get-Package-Version.ps1)
99

10+
# Define a set that contains the list of packages which should not be included
11+
# as references to the smoke tests. This is necessary because some compatibility
12+
# packages do not target netstandard2.0, and the package source is unable to
13+
# filter upstream to restrict to the appropriate packages for the running target.
14+
15+
$packageExcludeSet = @(
16+
"Microsoft.Azure.WebPubSub.AspNetCore"
17+
)
18+
1019
function Log-Warning($message) {
1120
if ($CI) {
1221
Write-Host "##vso[task.logissue type=warning]$message"
@@ -67,6 +76,7 @@ Log-Info "Querying package information."
6776
$referenceUpdateCount = 0
6877

6978
Get-SmokeTestPkgProperties -ArtifactsPath $ArtifactsPath
79+
| Where-Object { $packageExcludeSet -notcontains $_.Name }
7080
| Foreach-Object { $referenceUpdateCount += AddPackageReference $csproj $referenceNode $_ }
7181

7282
# Save the project and report the outcome. If no refrences were added, consider this

0 commit comments

Comments
 (0)