File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7171 } else {
7272 Write-Error "Could not find daemon log in $env:TEMP\omnipkg"
7373 }
74+
75+ # --- ADD THIS TEARDOWN STEP ---
76+ - name : Force Teardown After Run 2
77+ if : always()
78+ shell : pwsh
79+ run : |
80+ Write-Host "Forcefully terminating any lingering daemon processes..."
81+ # Find the PID from the file and kill it. taskkill is robust.
82+ $pidPath = "$env:TEMP\omnipkg\${{ env.OMNIPKG_ENV_ID }}\omnipkg_daemon.pid"
83+ if (Test-Path $pidPath) {
84+ $pid = Get-Content $pidPath
85+ taskkill /F /PID $pid
86+ }
87+ Write-Host "Removing temp directory to ensure clean state for next run..."
88+ Remove-Item -Path "$env:TEMP\omnipkg\${{ env.OMNIPKG_ENV_ID }}" -Recurse -Force -ErrorAction SilentlyContinue
7489
7590 - name : Run Demo Again (Verify Caching)
7691 shell : cmd
8297 shell : pwsh
8398 run : type "$env:TEMP\omnipkg\omnipkg_daemon.log"
8499
100+ # --- ADD THIS TEARDOWN STEP ---
101+ - name : Force Teardown After Run 2
102+ if : always()
103+ shell : pwsh
104+ run : |
105+ Write-Host "Forcefully terminating any lingering daemon processes..."
106+ # Find the PID from the file and kill it. taskkill is robust.
107+ $pidPath = "$env:TEMP\omnipkg\${{ env.OMNIPKG_ENV_ID }}\omnipkg_daemon.pid"
108+ if (Test-Path $pidPath) {
109+ $pid = Get-Content $pidPath
110+ taskkill /F /PID $pid
111+ }
112+ Write-Host "Removing temp directory to ensure clean state for next run..."
113+ Remove-Item -Path "$env:TEMP\omnipkg\${{ env.OMNIPKG_ENV_ID }}" -Recurse -Force -ErrorAction SilentlyContinue
114+
85115 - name : Run Demo Again (Verify Caching)
86116 shell : cmd
87117 run : omnipkg demo 8 --non-interactive
You can’t perform that action at this time.
0 commit comments