File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,19 @@ $Env:TEMP = 'Z:\'
43
43
Write-Host " `n Running podman-machine e2e tests"
44
44
45
45
if ($Env: TEST_FLAVOR -eq " machine-wsl" ) {
46
+ if ($Env: CI -eq " true" ) {
47
+ # Add a WSL configuration file
48
+ # The `kernelBootTimeout` configuration is to prevent CI/CD flakes
49
+ # See https://github.com/microsoft/WSL/issues/13301#issuecomment-3367452109
50
+ $wslConfigPath = " $env: UserProfile \.wslconfig"
51
+ $wslConfigContent = @"
52
+ [wsl2]
53
+ kernelBootTimeout=300000 # 5 minutes
54
+ "@
55
+ Set-Content - Path $wslConfigPath - Value $wslConfigContent - Encoding utf8
56
+ & wsl -- shutdown
57
+ }
58
+
46
59
# Output info so we know what version we are testing.
47
60
wsl -- version
48
61
Run- Command " $PSScriptRoot \win-collect-wsl-logs-start.ps1"
You can’t perform that action at this time.
0 commit comments