Skip to content

Commit 2c79103

Browse files
authored
Merge pull request #11 from philnach/fix/net-aspire-playwright-download-timeout
Set PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT to fix CDN timeout failures in .NET Aspire scenario
2 parents 3315415 + d052d25 commit 2c79103

6 files changed

Lines changed: 20 additions & 2 deletions

File tree

scenarios/macos/mac_net_aspire/mac_net_aspire.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class MacNetAspire(core.app_scenario.Scenario):
1515

1616
module = __module__.split('.')[-1]
17-
prep_version = "6"
17+
prep_version = "7"
1818
resources = module + "_resources"
1919

2020

scenarios/macos/mac_net_aspire/mac_net_aspire_resources/mac_net_aspire_prep.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ log "-- Setting Python version"
157157
pyenv global 3.12.10
158158
check_status "Setting Python global version"
159159

160+
# Increase Playwright browser download timeout (default is too short for slow CDN)
161+
export PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT=300000
162+
log "-- Set PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT=300000 (5 minutes)"
163+
160164
# Verify Python version
161165
PYTHON_VERSION=$(python --version 2>&1 | awk '{print $2}')
162166
if [ "$PYTHON_VERSION" != "3.12.10" ]; then

scenarios/macos/mac_net_aspire/mac_net_aspire_resources/mac_net_aspire_run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ if [ ! -f "build.sh" ]; then
125125
fi
126126
log "✓ build.sh found"
127127

128+
# Increase Playwright browser download timeout (default is too short for slow CDN)
129+
export PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT=300000
130+
log "-- Set PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT=300000 (5 minutes)"
131+
128132
# ============================================================================
129133
# Clean phase (not timed)
130134
# ============================================================================

scenarios/windows/net_aspire/net_aspire.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class NetAspire(core.app_scenario.Scenario):
1515

1616
module = __module__.split('.')[-1]
17-
prep_version = "6"
17+
prep_version = "7"
1818
resources = module + "_resources"
1919

2020

scenarios/windows/net_aspire/net_aspire_resources/net_aspire_prep.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,12 @@ if ($isARM64) {
207207
$env:DOTNET_INSTALL_DIR = "C:\Program Files\dotnet"
208208
"-- Set DOTNET_INSTALL_DIR=$($env:DOTNET_INSTALL_DIR) to use system SDK" | log
209209

210+
# -------------------------------------------------------------------
211+
# Increase Playwright browser download timeout (default is too short for slow CDN)
212+
# -------------------------------------------------------------------
213+
$env:PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT = "300000"
214+
"-- Set PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT=300000 (5 minutes)" | log
215+
210216
# -------------------------------------------------------------------
211217
# Initial restore (so run iterations only need build)
212218
# -------------------------------------------------------------------

scenarios/windows/net_aspire/net_aspire_resources/net_aspire_run.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ $env:DOTNET_INSTALL_DIR = "C:\Program Files\dotnet"
130130
"-- All installed SDKs:" | log
131131
dotnet --list-sdks 2>&1 | ForEach-Object { " $_" | log }
132132

133+
# Increase Playwright browser download timeout (default is too short for slow CDN)
134+
$env:PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT = "300000"
135+
"-- Set PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT=300000 (5 minutes)" | log
136+
133137
# ============================================================================
134138
# Clean phase (not timed)
135139
# ============================================================================

0 commit comments

Comments
 (0)