Skip to content

Commit 2536cdc

Browse files
committed
Revert "[automated] Merge branch 'release/9.0' => 'release/9.0-staging' (dotnet#116514)"
This reverts commit c9dfa92.
1 parent b9f365b commit 2536cdc

File tree

11 files changed

+25
-133
lines changed

11 files changed

+25
-133
lines changed

eng/pipelines/libraries/helix-queues-setup.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ jobs:
7575
# Limiting interp runs as we don't need as much coverage.
7676
- (Debian.12.Amd64.Open)Ubuntu.2204.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-12-helix-amd64
7777

78+
# Linux s390x
79+
- ${{ if eq(parameters.platform, 'linux_s390x') }}:
80+
- Ubuntu.2004.S390X.Experimental.Open
81+
82+
# Linux PPC64le
83+
- ${{ if eq(parameters.platform, 'linux_ppc64le') }}:
84+
- Ubuntu.2204.PPC64le.Experimental.Open
85+
7886
# OSX arm64
7987
- ${{ if eq(parameters.platform, 'osx_arm64') }}:
8088
- OSX.1200.ARM64.Open

eng/pipelines/runtime-community.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ extends:
7171
eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_libraries.containsChange'], true),
7272
eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_mono_excluding_wasm.containsChange'], true),
7373
eq(variables['isRollingBuild'], true))
74+
# extra steps, run tests
75+
postBuildSteps:
76+
- template: /eng/pipelines/libraries/helix.yml
77+
parameters:
78+
creator: dotnet-bot
79+
testRunNamePrefixSuffix: Mono_$(_BuildConfig)
80+
condition: >-
81+
or(
82+
eq(variables['librariesContainsChange'], true),
83+
eq(variables['monoContainsChange'], true),
84+
eq(variables['isRollingBuild'], true))
7485
7586
#
7687
# Build the whole product using Mono

src/installer/tests/HostActivation.Tests/NativeHosting/Comhost.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -111,35 +111,6 @@ public void ActivateClass_IgnoreAppLocalHostFxr()
111111
}
112112
}
113113

114-
[Fact]
115-
public void ActivateClass_IgnoreWorkingDirectory()
116-
{
117-
using (TestArtifact cwd = TestArtifact.Create("cwd"))
118-
{
119-
// Validate that hosting components in the working directory will not be used
120-
File.Copy(Binaries.CoreClr.MockPath, Path.Combine(cwd.Location, Binaries.CoreClr.FileName));
121-
File.Copy(Binaries.HostFxr.MockPath_5_0, Path.Combine(cwd.Location, Binaries.HostFxr.FileName));
122-
File.Copy(Binaries.HostPolicy.MockPath, Path.Combine(cwd.Location, Binaries.HostPolicy.FileName));
123-
124-
string[] args = {
125-
"comhost",
126-
"synchronous",
127-
"1",
128-
sharedState.ComHostPath,
129-
sharedState.ClsidString
130-
};
131-
sharedState.CreateNativeHostCommand(args, TestContext.BuiltDotNet.BinPath)
132-
.WorkingDirectory(cwd.Location)
133-
.Execute()
134-
.Should().Pass()
135-
.And.HaveStdOutContaining("New instance of Server created")
136-
.And.HaveStdOutContaining($"Activation of {sharedState.ClsidString} succeeded.")
137-
.And.ResolveHostFxr(TestContext.BuiltDotNet)
138-
.And.ResolveHostPolicy(TestContext.BuiltDotNet)
139-
.And.ResolveCoreClr(TestContext.BuiltDotNet);
140-
}
141-
}
142-
143114
[Fact]
144115
public void ActivateClass_ValidateIErrorInfoResult()
145116
{

src/installer/tests/HostActivation.Tests/NativeHosting/NativeHostingResultExtensions.cs renamed to src/installer/tests/HostActivation.Tests/NativeHosting/FunctionPointerResultExtensions.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using System.IO;
65

76
namespace Microsoft.DotNet.CoreSetup.Test.HostActivation.NativeHosting
87
{
9-
internal static class NativeHostingResultExtensions
8+
internal static class FunctionPointerResultExtensions
109
{
1110
public static FluentAssertions.AndConstraint<CommandResultAssertions> ExecuteFunctionPointer(this CommandResultAssertions assertion, string methodName, int callCount, int returnValue)
1211
{
@@ -48,21 +47,5 @@ public static FluentAssertions.AndConstraint<CommandResultAssertions> ExecuteWit
4847
{
4948
return assertion.HaveStdOutContaining($"{assemblyName}: Location = '{location}'");
5049
}
51-
52-
public static FluentAssertions.AndConstraint<CommandResultAssertions> ResolveHostFxr(this CommandResultAssertions assertion, Microsoft.DotNet.Cli.Build.DotNetCli dotnet)
53-
{
54-
return assertion.HaveStdErrContaining($"Resolved fxr [{dotnet.GreatestVersionHostFxrFilePath}]");
55-
}
56-
57-
public static FluentAssertions.AndConstraint<CommandResultAssertions> ResolveHostPolicy(this CommandResultAssertions assertion, Microsoft.DotNet.Cli.Build.DotNetCli dotnet)
58-
{
59-
return assertion.HaveStdErrContaining($"{Binaries.HostPolicy.FileName} directory is [{dotnet.GreatestVersionSharedFxPath}]");
60-
}
61-
62-
public static FluentAssertions.AndConstraint<CommandResultAssertions> ResolveCoreClr(this CommandResultAssertions assertion, Microsoft.DotNet.Cli.Build.DotNetCli dotnet)
63-
{
64-
return assertion.HaveStdErrContaining($"CoreCLR path = '{Path.Combine(dotnet.GreatestVersionSharedFxPath, Binaries.CoreClr.FileName)}'")
65-
.And.HaveStdErrContaining($"CoreCLR dir = '{dotnet.GreatestVersionSharedFxPath}{Path.DirectorySeparatorChar}'");
66-
}
6750
}
6851
}

src/installer/tests/HostActivation.Tests/NativeHosting/Ijwhost.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -89,32 +89,6 @@ public void LoadLibrary_ContextConfig(bool load_isolated)
8989
}
9090
}
9191

92-
[Fact]
93-
public void LoadLibrary_IgnoreWorkingDirectory()
94-
{
95-
using (TestArtifact cwd = TestArtifact.Create("cwd"))
96-
{
97-
// Validate that hosting components in the working directory will not be used
98-
File.Copy(Binaries.CoreClr.MockPath, Path.Combine(cwd.Location, Binaries.CoreClr.FileName));
99-
File.Copy(Binaries.HostFxr.MockPath_5_0, Path.Combine(cwd.Location, Binaries.HostFxr.FileName));
100-
File.Copy(Binaries.HostPolicy.MockPath, Path.Combine(cwd.Location, Binaries.HostPolicy.FileName));
101-
102-
string [] args = {
103-
"ijwhost",
104-
sharedState.IjwApp.AppDll,
105-
"NativeEntryPoint"
106-
};
107-
sharedState.CreateNativeHostCommand(args, TestContext.BuiltDotNet.BinPath)
108-
.WorkingDirectory(cwd.Location)
109-
.Execute()
110-
.Should().Pass()
111-
.And.HaveStdOutContaining("[C++/CLI] NativeEntryPoint: calling managed class")
112-
.And.HaveStdOutContaining("[C++/CLI] ManagedClass: AssemblyLoadContext = \"Default\" System.Runtime.Loader.DefaultAssemblyLoadContext")
113-
.And.ResolveHostFxr(TestContext.BuiltDotNet)
114-
.And.ResolveHostPolicy(TestContext.BuiltDotNet)
115-
.And.ResolveCoreClr(TestContext.BuiltDotNet);
116-
}
117-
}
11892

11993
[Fact]
12094
public void LoadLibraryWithoutRuntimeConfigButActiveRuntime()

src/installer/tests/HostActivation.Tests/NativeHosting/LoadAssemblyAndGetFunctionPointer.cs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Collections.Generic;
5-
using System.IO;
65
using System.Linq;
76

87
using Microsoft.DotNet.Cli.Build.Framework;
@@ -232,37 +231,6 @@ public void CallDelegateOnComponentContext_UnhandledException()
232231
.And.ExecuteFunctionPointerWithException(entryPoint, 1);
233232
}
234233

235-
[Fact]
236-
public void CallDelegateOnComponentContext_IgnoreWorkingDirectory()
237-
{
238-
using (TestArtifact cwd = TestArtifact.Create("cwd"))
239-
{
240-
// Validate that hosting components in the working directory will not be used
241-
File.Copy(Binaries.CoreClr.MockPath, Path.Combine(cwd.Location, Binaries.CoreClr.FileName));
242-
File.Copy(Binaries.HostPolicy.MockPath, Path.Combine(cwd.Location, Binaries.HostPolicy.FileName));
243-
244-
var component = sharedState.Component;
245-
string[] args =
246-
{
247-
ComponentLoadAssemblyAndGetFunctionPointerArg,
248-
sharedState.HostFxrPath,
249-
component.RuntimeConfigJson,
250-
component.AppDll,
251-
sharedState.ComponentTypeName,
252-
sharedState.ComponentEntryPoint1,
253-
};
254-
255-
sharedState.CreateNativeHostCommand(args, sharedState.DotNetRoot)
256-
.WorkingDirectory(cwd.Location)
257-
.Execute()
258-
.Should().Pass()
259-
.And.InitializeContextForConfig(component.RuntimeConfigJson)
260-
.And.ExecuteFunctionPointer(sharedState.ComponentEntryPoint1, 1, 1)
261-
.And.ResolveHostPolicy(TestContext.BuiltDotNet)
262-
.And.ResolveCoreClr(TestContext.BuiltDotNet);
263-
}
264-
}
265-
266234
public class SharedTestState : SharedTestStateBase
267235
{
268236
public string HostFxrPath { get; }

src/native/corehost/apphost/standalone/hostfxr_resolver.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,6 @@ hostfxr_resolver_t::hostfxr_resolver_t(const pal::string_t& app_root)
118118
{
119119
m_status_code = StatusCode::CoreHostLibMissingFailure;
120120
}
121-
else if (!pal::is_path_rooted(m_fxr_path))
122-
{
123-
// We should always be loading hostfxr from an absolute path
124-
m_status_code = StatusCode::CoreHostLibMissingFailure;
125-
}
126121
else if (pal::load_library(&m_fxr_path, &m_hostfxr_dll))
127122
{
128123
m_status_code = StatusCode::Success;

src/native/corehost/fxr/standalone/hostpolicy_resolver.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,6 @@ int hostpolicy_resolver::load(
180180
return StatusCode::CoreHostLibMissingFailure;
181181
}
182182

183-
// We should always be loading hostpolicy from an absolute path
184-
if (!pal::is_path_rooted(host_path))
185-
return StatusCode::CoreHostLibMissingFailure;
186-
187183
// Load library
188184
// We expect to leak hostpolicy - just as we do not unload coreclr, we do not unload hostpolicy
189185
if (!pal::load_library(&host_path, &g_hostpolicy))

src/native/corehost/fxr_resolver.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ int load_fxr_and_get_delegate(hostfxr_delegate_type type, THostPathToConfigCallb
5555
return StatusCode::CoreHostLibMissingFailure;
5656
}
5757

58-
// We should always be loading hostfxr from an absolute path
59-
if (!pal::is_path_rooted(fxr_path))
60-
return StatusCode::CoreHostLibMissingFailure;
61-
6258
// Load library
6359
if (!pal::load_library(&fxr_path, &fxr))
6460
{

src/native/corehost/hostpolicy/deps_resolver.cpp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -830,21 +830,15 @@ bool deps_resolver_t::resolve_probe_dirs(
830830
}
831831
}
832832

833-
// If the deps file is missing for the app, add known locations.
834-
// For libhost scenarios, there is no app or app path
835-
if (m_host_mode != host_mode_t::libhost && !get_app_deps().exists())
833+
// If the deps file is missing add known locations.
834+
if (!get_app_deps().exists())
836835
{
837-
assert(!m_app_dir.empty());
838-
839836
// App local path
840837
add_unique_path(asset_type, m_app_dir, &items, output, &non_serviced, core_servicing);
841838

842-
if (m_coreclr_path.empty())
843-
{
844-
// deps_resolver treats being able to get the coreclr path as optional, so we ignore the return value here.
845-
// The caller is responsible for checking whether coreclr path is set and handling as appropriate.
846-
(void) file_exists_in_dir(m_app_dir, LIBCORECLR_NAME, &m_coreclr_path);
847-
}
839+
// deps_resolver treats being able to get the coreclr path as optional, so we ignore the return value here.
840+
// The caller is responsible for checking whether coreclr path is set and handling as appropriate.
841+
(void) file_exists_in_dir(m_app_dir, LIBCORECLR_NAME, &m_coreclr_path);
848842
}
849843

850844
// Handle any additional deps.json that were specified.

0 commit comments

Comments
 (0)