Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

ci(mount-windows): clean up processes and don't let Logs step fail job (#11174)

Chris Luff0d5a9adf3b
diff --git a/.github/workflows/mount-windows.yml b/.github/workflows/mount-windows.yml
index cd9db56854..91f61d8093 100644
--- a/.github/workflows/mount-windows.yml
+++ b/.github/workflows/mount-windows.yml
@@ -185,8 +185,19 @@ jobs:
if (Test-Path S:\walk) { throw "directory survived recursive delete" }
Write-Host "::endgroup::"
+ # Tear down everything we started so the runner's later steps (Logs,
+ # post-checkout) launch into a clean environment. A WinFsp mount left
+ # active and a weed.exe holding winfsp-x64.dll have been seen to make
+ # the next step's pwsh.exe fail with STATUS_DLL_INIT_FAILED
+ # (0xC0000142), which fails a job whose actual test step passed.
+ try { Stop-Mount } catch { Write-Host "no mount to stop at teardown: $_" }
+ Get-CimInstance Win32_Process -Filter "Name = 'weed.exe'" |
+ ForEach-Object { Stop-Process -Id $_.ProcessId -Force -ErrorAction SilentlyContinue }
+ Start-Sleep -Seconds 3
+
- name: Logs
if: always()
+ continue-on-error: true
shell: pwsh
run: |
foreach ($f in 'C:\seaweed-mount.log','C:\seaweed-mount.err.log','C:\seaweed-remount.log','C:\seaweed-remount.err.log','C:\seaweed-remount2.log','C:\seaweed-remount2.err.log','C:\seaweed-dirmount.log','C:\seaweed-dirmount.err.log','C:\seaweed-mini.log','C:\seaweed-mini.err.log') {