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