Skip to content

[Operational Issue]: LinuxInstallerTests.ValidatePackageList is failing on branches using "servicing" branding #5325

@akoeplinger

Description

@akoeplinger

Error

E.g. https://dev.azure.com/dnceng/internal/_build/results?buildId=2921884&view=logs&j=0877f6c4-4cbd-5847-bf60-83b123bf06f7&t=3ac6f9bd-79eb-5b63-f408-35742ccc2e3e&s=88443c40-f44f-5ad2-2c9d-5e26a4f665d6

  Failed Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.ValidateRpmPackageList [12 ms]
  Error Message:
   Package list validation failed for Rpm:
Expected:
dotnet-sdk-*-newkey-x64.rpm
dotnet-sdk-*-x64.rpm
Actual:
dotnet-sdk-*-servicing.26159.104-azl-x64.rpm
dotnet-sdk-*-servicing.26159.104-newkey-x64.rpm
dotnet-sdk-*-servicing.26159.104-x64.rpm
  Stack Trace:
     at Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.ValidatePackageList(PackageType packageType) in /_/test/Microsoft.DotNet.Installer.Tests/LinuxInstallerTests.cs:line 766
   at Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.ValidateRpmPackageList() in /_/test/Microsoft.DotNet.Installer.Tests/LinuxInstallerTests.cs:line 173
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
  Skipped Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.RpmPackageMetadataTest [1 ms]
  Passed Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.RpmScenarioTest(repo: "mcr.microsoft.com/dotnet/runtime-deps", tag: "10.0-azurelinux3.0") [7 m 31 s]
  Passed Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.DebScenarioTest(repo: "mcr.microsoft.com/dotnet/runtime-deps", tag: "10.0-noble") [7 m 22 s]
[xUnit.net 00:14:53.68]     Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.ValidateDebPackageList [FAIL]
[xUnit.net 00:14:53.68]       Package list validation failed for Deb:
[xUnit.net 00:14:53.68]       Expected:
[xUnit.net 00:14:53.68]       dotnet-sdk-*-newkey-x64.deb
[xUnit.net 00:14:53.68]       dotnet-sdk-*-x64.deb
[xUnit.net 00:14:53.68]       Actual:
[xUnit.net 00:14:53.68]       dotnet-sdk-*-servicing.26159.104-newkey-x64.deb
[xUnit.net 00:14:53.68]       dotnet-sdk-*-servicing.26159.104-x64.deb
[xUnit.net 00:14:53.68]       Stack Trace:
[xUnit.net 00:14:53.68]         /_/test/Microsoft.DotNet.Installer.Tests/LinuxInstallerTests.cs(766,0): at Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.ValidatePackageList(PackageType packageType)
[xUnit.net 00:14:53.68]         /_/test/Microsoft.DotNet.Installer.Tests/LinuxInstallerTests.cs(179,0): at Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.ValidateDebPackageList()
[xUnit.net 00:14:53.68]            at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
[xUnit.net 00:14:53.68]            at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
[xUnit.net 00:14:54.83]   Finished:    Microsoft.DotNet.Installer.Tests
  Failed Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.ValidateDebPackageList [< 1 ms]
  Error Message:
   Package list validation failed for Deb:
Expected:
dotnet-sdk-*-newkey-x64.deb
dotnet-sdk-*-x64.deb
Actual:
dotnet-sdk-*-servicing.26159.104-newkey-x64.deb
dotnet-sdk-*-servicing.26159.104-x64.deb
  Stack Trace:
     at Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.ValidatePackageList(PackageType packageType) in /_/test/Microsoft.DotNet.Installer.Tests/LinuxInstallerTests.cs:line 766
   at Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.ValidateDebPackageList() in /_/test/Microsoft.DotNet.Installer.Tests/LinuxInstallerTests.cs:line 179
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
  Passed Microsoft.DotNet.Installer.Tests.LinuxInstallerTests.DebPackageMetadataTest(repo: "mcr.microsoft.com/dotnet/runtime-deps", tag: "10.0-noble") [1 s]

Links

Presumably this regex needs to be updated to include servicing:

// Remove version numbers from package names: "dotnet-runtime-10.0.0-rc.1.25480.112-x64.rpm" -> "dotnet-runtime-*-x64.rpm"
[GeneratedRegex(@"\d+\.\d+\.\d+(?:-(?:rc|rtm|preview)(?:\.\d+)*)?", RegexOptions.CultureInvariant)]
private static partial Regex RemoveVersionFromPackageNameRegex { get; }

Root Cause

unknown

Blocking

  • This issue is blocking

Affected Releases

  • .NET 10
  • .NET 10 (SDK band build)
  • .NET 11

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions