Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions eng/helix/content/runtests.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ set $installPlaywright=%7
REM Batch only supports up to 9 arguments using the %# syntax, need to shift to get more

set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
set DOTNET_NOLOGO=1
set DOTNET_GENERATE_ASPNET_CERTIFICATE=false
set PLAYWRIGHT_BROWSERS_PATH=%CD%\ms-playwright

REM Avoid https://github.com/dotnet/aspnetcore/issues/41937 in current session.
Expand Down
2 changes: 2 additions & 0 deletions eng/helix/content/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ MAGENTA="\033[0;95m"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
export DOTNET_NOLOGO=1
export DOTNET_GENERATE_ASPNET_CERTIFICATE=false

# Avoid https://github.com/dotnet/aspnetcore/issues/41937 in current session.
unset ASPNETCORE_ENVIRONMENT
Expand Down
11 changes: 11 additions & 0 deletions eng/tools/HelixTestRunner/TestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ public bool SetupEnvironment()
EnvironmentVariables.Add("PATH", Options.Path);
EnvironmentVariables.Add("helix", Options.HelixQueue);

// Skip the .NET SDK first-run experience. On macOS Helix machines, the
// first-run HTTPS dev cert generation hangs for >2 minutes, causing the
// HelixTestRunner timeout to kill the dotnet process (exit code 130).
//
// DOTNET_SKIP_FIRST_TIME_EXPERIENCE is deprecated and no longer honored
// in .NET 8+. The replacement is individual controls:
// - DOTNET_NOLOGO: suppresses the welcome banner
// - DOTNET_GENERATE_ASPNET_CERTIFICATE: skips dev cert generation (the hang)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be related to #66727

EnvironmentVariables.Add("DOTNET_NOLOGO", "1");
EnvironmentVariables.Add("DOTNET_GENERATE_ASPNET_CERTIFICATE", "false");

ProcessUtil.PrintMessage($"Current Directory: {Options.HELIX_WORKITEM_ROOT}");
var helixDir = Options.HELIX_WORKITEM_ROOT;
ProcessUtil.PrintMessage($"Setting HELIX_DIR: {helixDir}");
Expand Down
Loading