Skip to content

Commit 25294c2

Browse files
committed
[tests] Track changes in the packages available in artifacts when
.. installing the workload for testing.
1 parent 0f25261 commit 25294c2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/Shared/Aspire.Workload.Testing.targets

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,15 @@
111111
<UnexpectedPackages Include="@(AllPackages)" Exclude="@(ExpectedPackagePaths)" />
112112

113113
<!-- Ignore these packages which are part of the workload. Existence of these would get checked
114-
by the workload installation targets. And their names don't correspond to project names. -->
114+
by the workload installation targets. -->
115+
<UnexpectedPackages Remove="@(UnexpectedPackages)" Condition="$([System.String]::Copy('%(UnexpectedPackages.FileName)').StartsWith('Aspire.Hosting.Sdk.'))" />
116+
<UnexpectedPackages Remove="@(UnexpectedPackages)" Condition="$([System.String]::Copy('%(UnexpectedPackages.FileName)').StartsWith('Aspire.ProjectTemplates.'))" />
115117
<UnexpectedPackages Remove="@(UnexpectedPackages)" Condition="$([System.String]::Copy('%(UnexpectedPackages.FileName)').StartsWith('Microsoft.NET.Sdk.Aspire.Manifest-'))" />
116-
<UnexpectedPackages Remove="@(UnexpectedPackages)" Condition="$([System.String]::Copy('%(UnexpectedPackages.FileName)').StartsWith('Aspire.Hosting.Orchestration.'))" />
118+
119+
<!-- Exclude the packages with arch-specific nugets -->
117120
<UnexpectedPackages Remove="@(UnexpectedPackages)" Condition="$([System.String]::Copy('%(UnexpectedPackages.FileName)').StartsWith('Aspire.Dashboard.Sdk.'))" />
121+
<UnexpectedPackages Remove="@(UnexpectedPackages)" Condition="$([System.String]::Copy('%(UnexpectedPackages.FileName)').StartsWith('Aspire.Hosting.Orchestration.'))" />
122+
118123
</ItemGroup>
119124

120125
<Warning Text="Found some unexpected packages in '$(ArtifactsShippingPackagesDir)', which might mean that the list of expected packages is incorrect: @(UnexpectedPackages -> '%(FileName)%(Extension)', ', '). Use %24(SkipPackageCheckForWorkloadTesting)='true' to skip this."

0 commit comments

Comments
 (0)