Skip to content

Commit

Permalink
ci(fix): Restart LxssManager if it shutsdown during remove finch VM s…
Browse files Browse the repository at this point in the history
…tep (#1179)

Signed-off-by: Subash Kotha <[email protected]>
Co-authored-by: Subash Kotha <[email protected]>
  • Loading branch information
subashkotha and Subash Kotha authored Nov 12, 2024
1 parent 35578b6 commit 3a81c08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-and-test-msi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
$ErrorActionPreference = 'Ignore'
taskkill /f /im wslservice.exe 2> nul || cmd /c "exit /b 0"
wsl --list --verbose
sc query LxssManager | findstr "STATE" | findstr /C:"STOPPED" > nul && net start LxssManager
wsl --shutdown
wsl --unregister lima-finch
wsl --list --verbose
Expand Down Expand Up @@ -152,6 +153,7 @@ jobs:
$ErrorActionPreference = 'Ignore'
taskkill /f /im wslservice.exe 2> nul || cmd /c "exit /b 0"
wsl --list --verbose
sc query LxssManager | findstr "STATE" | findstr /C:"STOPPED" > nul && net start LxssManager
wsl --shutdown
wsl --unregister lima-finch
wsl --list --verbose
Expand Down Expand Up @@ -206,6 +208,7 @@ jobs:
$ErrorActionPreference = 'Ignore'
taskkill /f /im wslservice.exe 2> nul || cmd /c "exit /b 0"
wsl --list --verbose
sc query LxssManager | findstr "STATE" | findstr /C:"STOPPED" > nul && net start LxssManager
wsl --shutdown
wsl --unregister lima-finch
wsl --list --verbose
Expand Down Expand Up @@ -252,6 +255,7 @@ jobs:
$ErrorActionPreference = 'Ignore'
taskkill /f /im wslservice.exe 2> nul || cmd /c "exit /b 0"
wsl --list --verbose
sc query LxssManager | findstr "STATE" | findstr /C:"STOPPED" > nul && net start LxssManager
wsl --shutdown
Start-Sleep -s 10
wsl --unregister lima-finch
Expand Down Expand Up @@ -288,6 +292,7 @@ jobs:
$ErrorActionPreference = 'Ignore'
taskkill /f /im wslservice.exe 2> nul || cmd /c "exit /b 0"
wsl --list --verbose
sc query LxssManager | findstr "STATE" | findstr /C:"STOPPED" > nul && net start LxssManager
wsl --shutdown
wsl --unregister lima-finch
wsl --list --verbose
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
$ErrorActionPreference = 'Ignore'
taskkill /f /im wslservice.exe 2> nul || cmd /c "exit /b 0"
wsl --list --verbose
sc query LxssManager | findstr "STATE" | findstr /C:"STOPPED" > nul && net start LxssManager
wsl --shutdown
wsl --unregister lima-finch
wsl --list --verbose
Expand Down Expand Up @@ -97,6 +98,7 @@ jobs:
$ErrorActionPreference = 'Ignore'
taskkill /f /im wslservice.exe 2> nul || cmd /c "exit /b 0"
wsl --list --verbose
sc query LxssManager | findstr "STATE" | findstr /C:"STOPPED" > nul && net start LxssManager
wsl --shutdown
wsl --unregister lima-finch
wsl --list --verbose
Expand Down

0 comments on commit 3a81c08

Please sign in to comment.