Skip to content

Commit 882cd4d

Browse files
authored
Bootstrapper missed an update resulting in FindDDLMViaEnumeration() looking for DDLM packages named ...ddlm-version... rather than ...ddlm.version... Local tests passed as they were named with dash but product DDLMs are named with . causing toplevel tests using production packages to fail. Fixed and updated local tests to use naming consistent with product to prevent future confusion (#5106)
1 parent 9342331 commit 882cd4d

File tree

14 files changed

+20
-20
lines changed

14 files changed

+20
-20
lines changed

dev/WindowsAppRuntime_BootstrapDLL/MddBootstrap.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -840,9 +840,9 @@ void FindDDLMViaEnumeration(
840840
// We need to look for DDLM packages in the package family for release <major>.<minor> and <versiontag>
841841
// But we have no single (simple) enumeration to match that so our logic's more involved compared
842842
// to FindDDLMViaAppExtension():
843-
// 1. Look for Framework packages with Name="microsoft.winappruntime.ddlm-<minorversion>*[-shorttag]"
843+
// 1. Look for Framework packages with Name="microsoft.winappruntime.ddlm.<minorversion>*[-shorttag]"
844844
// 1a. Enumerate all Framework packages registered to the user
845-
// 1b. Only consider packages whose Name starts with "microsoft.winappruntime.ddlm-<minorversion>."
845+
// 1b. Only consider packages whose Name starts with "microsoft.winappruntime.ddlm.<minorversion>."
846846
// 1c. If versiontag is specified, Only consider packages whose Name ends with [-shorttag]
847847
// 1d. Only consider packages whose PublisherID = "8wekyb3d8bbwe"
848848
// 2. Check if the package is in the <majorversion>.<minorversion> release
@@ -859,7 +859,7 @@ void FindDDLMViaEnumeration(
859859
}
860860
else
861861
{
862-
packageNamePrefix = L"microsoft.winappruntime.ddlm-";
862+
packageNamePrefix = L"microsoft.winappruntime.ddlm.";
863863
}
864864
const auto packageNamePrefixLength{ wcslen(packageNamePrefix) };
865865

test/DynamicDependency/Test_Win32/TestPackages.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation and Contributors.
1+
// Copyright (c) Microsoft Corporation and Contributors.
22
// Licensed under the MIT License.
33

44
namespace Test::Packages
@@ -37,7 +37,7 @@ namespace FrameworkWidgets
3737
#else
3838
# error "Unknown processor architecture"
3939
#endif
40-
#define TEST_PACKAGE_DDLM_NAME TEST_PACKAGE_DDLM_NAMEPREFIX L"-" TEST_PACKAGE_DDLM_VERSION L"-" TEST_PACKAGE_DDLM_ARCHITECTURE
40+
#define TEST_PACKAGE_DDLM_NAME TEST_PACKAGE_DDLM_NAMEPREFIX L"." TEST_PACKAGE_DDLM_VERSION L"-" TEST_PACKAGE_DDLM_ARCHITECTURE
4141
#define TEST_PACKAGE_DDLM_PUBLISHERID L"8wekyb3d8bbwe"
4242
#define TEST_PACKAGE_DDLM_FAMILYNAME TEST_PACKAGE_DDLM_NAME L"_" TEST_PACKAGE_DDLM_PUBLISHERID
4343
#define TEST_PACKAGE_DDLM_FULLNAME TEST_PACKAGE_DDLM_NAME L"_" TEST_PACKAGE_DDLM_VERSION L"_" TEST_PACKAGE_DDLM_ARCHITECTURE L"__" TEST_PACKAGE_DDLM_PUBLISHERID
@@ -73,7 +73,7 @@ namespace DynamicDependencyLifetimeManagerGC
7373
constexpr PCWSTR c_PackagePublisherId = TEST_PACKAGE_DDLM_PUBLISHERID;
7474
}
7575

76-
#define TEST_PACKAGE_DDLMGC1000_NAME TEST_PACKAGE_DDLMGC_NAMEPREFIX L"-1.0.0.0-" TEST_PACKAGE_DDLM_ARCHITECTURE
76+
#define TEST_PACKAGE_DDLMGC1000_NAME TEST_PACKAGE_DDLMGC_NAMEPREFIX L".1.0.0.0-" TEST_PACKAGE_DDLM_ARCHITECTURE
7777
namespace DynamicDependencyLifetimeManagerGC1000
7878
{
7979
constexpr PCWSTR c_PackageDirName = L"DynamicDependencyLifetimeManagerGC1000";
@@ -99,7 +99,7 @@ namespace DynamicDependencyLifetimeManagerGC1000
9999
constexpr const UINT32 c_Version_MajorMinor = GetPackageVersionMajorMinor();
100100
}
101101

102-
#define TEST_PACKAGE_DDLMGC1010_NAME TEST_PACKAGE_DDLMGC_NAMEPREFIX L"-1.0.1.0-" TEST_PACKAGE_DDLM_ARCHITECTURE
102+
#define TEST_PACKAGE_DDLMGC1010_NAME TEST_PACKAGE_DDLMGC_NAMEPREFIX L".1.0.1.0-" TEST_PACKAGE_DDLM_ARCHITECTURE
103103
namespace DynamicDependencyLifetimeManagerGC1010
104104
{
105105
constexpr PCWSTR c_PackageDirName = L"DynamicDependencyLifetimeManagerGC1010";

test/DynamicDependency/Test_WinRT/TestPackages.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ namespace DynamicDependencyLifetimeManagerGC
7373
constexpr PCWSTR c_PackagePublisherId = TEST_PACKAGE_DDLM_PUBLISHERID;
7474
}
7575

76-
#define TEST_PACKAGE_DDLMGC1000_NAME TEST_PACKAGE_DDLMGC_NAMEPREFIX L"-1.0.0.0-" TEST_PACKAGE_DDLM_ARCHITECTURE
76+
#define TEST_PACKAGE_DDLMGC1000_NAME TEST_PACKAGE_DDLMGC_NAMEPREFIX L".1.0.0.0-" TEST_PACKAGE_DDLM_ARCHITECTURE
7777
namespace DynamicDependencyLifetimeManagerGC1000
7878
{
7979
constexpr PCWSTR c_PackageDirName = L"DynamicDependencyLifetimeManagerGC1000";
@@ -99,7 +99,7 @@ namespace DynamicDependencyLifetimeManagerGC1000
9999
constexpr const UINT32 c_Version_MajorMinor = GetPackageVersionMajorMinor();
100100
}
101101

102-
#define TEST_PACKAGE_DDLMGC1010_NAME TEST_PACKAGE_DDLMGC_NAMEPREFIX L"-1.0.1.0-" TEST_PACKAGE_DDLM_ARCHITECTURE
102+
#define TEST_PACKAGE_DDLMGC1010_NAME TEST_PACKAGE_DDLMGC_NAMEPREFIX L".1.0.1.0-" TEST_PACKAGE_DDLM_ARCHITECTURE
103103
namespace DynamicDependencyLifetimeManagerGC1010
104104
{
105105
constexpr PCWSTR c_PackageDirName = L"DynamicDependencyLifetimeManagerGC1010";

test/DynamicDependency/data/DynamicDependencyLifetimeManager.Msix/appxmanifest-arm64.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
IgnorableNamespaces="uap uap3 uap5 com rescap">
1111

1212
<Identity
13-
Name="WindowsAppRuntime.Test.DDLM-4.1.1967.333-arm64"
13+
Name="WindowsAppRuntime.Test.DDLM.4.1.1967.333-arm64"
1414
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
1515
Version="4.1.1967.333"
1616
ProcessorArchitecture="arm64" />

test/DynamicDependency/data/DynamicDependencyLifetimeManager.Msix/appxmanifest-x64.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
IgnorableNamespaces="uap uap3 uap5 com rescap">
1111

1212
<Identity
13-
Name="WindowsAppRuntime.Test.DDLM-4.1.1967.333-x64"
13+
Name="WindowsAppRuntime.Test.DDLM.4.1.1967.333-x64"
1414
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
1515
Version="4.1.1967.333"
1616
ProcessorArchitecture="x64" />

test/DynamicDependency/data/DynamicDependencyLifetimeManager.Msix/appxmanifest-x86.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
IgnorableNamespaces="uap uap3 uap5 com rescap">
1111

1212
<Identity
13-
Name="WindowsAppRuntime.Test.DDLM-4.1.1967.333-x86"
13+
Name="WindowsAppRuntime.Test.DDLM.4.1.1967.333-x86"
1414
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
1515
Version="4.1.1967.333"
1616
ProcessorArchitecture="x86" />

test/DynamicDependency/data/DynamicDependencyLifetimeManagerGC1000.Msix/appxmanifest-arm64.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
IgnorableNamespaces="uap uap3 uap5 com rescap">
1111

1212
<Identity
13-
Name="WindowsAppRuntime.Test.DDLM.GC-1.0.0.0-arm64"
13+
Name="WindowsAppRuntime.Test.DDLM.GC.1.0.0.0-arm64"
1414
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
1515
Version="1.0.0.0"
1616
ProcessorArchitecture="arm64" />

test/DynamicDependency/data/DynamicDependencyLifetimeManagerGC1000.Msix/appxmanifest-x64.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
IgnorableNamespaces="uap uap3 uap5 com rescap">
1111

1212
<Identity
13-
Name="WindowsAppRuntime.Test.DDLM.GC-1.0.0.0-x64"
13+
Name="WindowsAppRuntime.Test.DDLM.GC.1.0.0.0-x64"
1414
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
1515
Version="1.0.0.0"
1616
ProcessorArchitecture="x64" />

test/DynamicDependency/data/DynamicDependencyLifetimeManagerGC1000.Msix/appxmanifest-x86.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
IgnorableNamespaces="uap uap3 uap5 com rescap">
1111

1212
<Identity
13-
Name="WindowsAppRuntime.Test.DDLM.GC-1.0.0.0-x86"
13+
Name="WindowsAppRuntime.Test.DDLM.GC.1.0.0.0-x86"
1414
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
1515
Version="1.0.0.0"
1616
ProcessorArchitecture="x86" />

test/DynamicDependency/data/DynamicDependencyLifetimeManagerGC1010.Msix/appxmanifest-arm64.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
IgnorableNamespaces="uap uap3 uap5 com rescap">
1111

1212
<Identity
13-
Name="WindowsAppRuntime.Test.DDLM.GC-1.0.1.0-arm64"
13+
Name="WindowsAppRuntime.Test.DDLM.GC.1.0.1.0-arm64"
1414
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
1515
Version="1.0.1.0"
1616
ProcessorArchitecture="arm64" />

test/DynamicDependency/data/DynamicDependencyLifetimeManagerGC1010.Msix/appxmanifest-x64.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
IgnorableNamespaces="uap uap3 uap5 com rescap">
1111

1212
<Identity
13-
Name="WindowsAppRuntime.Test.DDLM.GC-1.0.1.0-x64"
13+
Name="WindowsAppRuntime.Test.DDLM.GC.1.0.1.0-x64"
1414
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
1515
Version="1.0.1.0"
1616
ProcessorArchitecture="x64" />

test/DynamicDependency/data/DynamicDependencyLifetimeManagerGC1010.Msix/appxmanifest-x86.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
IgnorableNamespaces="uap uap3 uap5 com rescap">
1111

1212
<Identity
13-
Name="WindowsAppRuntime.Test.DDLM.GC-1.0.1.0-x86"
13+
Name="WindowsAppRuntime.Test.DDLM.GC.1.0.1.0-x86"
1414
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
1515
Version="1.0.1.0"
1616
ProcessorArchitecture="x86" />

test/inc/WindowsAppRuntime.Test.Metadata.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#else
4141
# error "Unknown processor architecture"
4242
#endif
43-
#define WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAME WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAMEPREFIX L"-" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_VERSION_STRING L"-" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_ARCHITECTURE
43+
#define WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAME WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAMEPREFIX L"." WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_VERSION_STRING L"-" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_ARCHITECTURE
4444
#define WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_PUBLISHERID WINDOWSAPPRUNTIME_TEST_MSIX_PUBLISHERID
4545
#define WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_FAMILYNAME WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAME L"_" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_PUBLISHERID
4646
#define WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_FULLNAME WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAME L"_" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_VERSION_STRING L"_" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_ARCHITECTURE L"__" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_PUBLISHERID

test/inc/WindowsAppRuntime.Test.Package.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#else
5050
# error "Unknown processor architecture"
5151
#endif
52-
#define WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAME WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAMEPREFIX L"-" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_VERSION_STRING L"-" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_ARCHITECTURE
52+
#define WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAME WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAMEPREFIX L"." WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_VERSION_STRING L"-" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_ARCHITECTURE
5353
#define WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_PUBLISHERID WINDOWSAPPRUNTIME_TEST_MSIX_PUBLISHERID
5454
#define WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_FAMILYNAME WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAME L"_" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_PUBLISHERID
5555
#define WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_FULLNAME WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_NAME L"_" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_VERSION_STRING L"_" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_ARCHITECTURE L"__" WINDOWSAPPRUNTIME_TEST_PACKAGE_DDLM_PUBLISHERID

0 commit comments

Comments
 (0)