From 2d83fd2a93f5006de6c2198eaf40079f13940f7a Mon Sep 17 00:00:00 2001 From: Hampus Date: Fri, 9 Oct 2026 08:22:21 +0200 Subject: [PATCH] ci(desktop): keep the logs from Windows update checks (#3348) --- .../workflows/desktop-windows-release-check.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/desktop-windows-release-check.yaml b/.github/workflows/desktop-windows-release-check.yaml index ac688f26f..4349db17b 100644 --- a/.github/workflows/desktop-windows-release-check.yaml +++ b/.github/workflows/desktop-windows-release-check.yaml @@ -120,8 +120,21 @@ jobs: } $installed = Get-Content (Join-Path $installRoot 'current\sq.version') -Raw -ErrorAction SilentlyContinue Write-Host "installed package after update: $installed" - if (Test-Path $logPath) { Get-Content $logPath | Select-String -Pattern 'Serving the renderer|reported its build|NativeModulePreflight|elf-update|shell update|Velopack' | Select-Object -Last 20 | ForEach-Object { Write-Host $_.Line } } + $logs = Join-Path $env:RUNNER_TEMP "logs\$from" + New-Item -ItemType Directory -Force -Path $logs | Out-Null + if (Test-Path $logPath) { Copy-Item $logPath $logs } + Get-ChildItem -Path $installRoot -Filter '*.log' -ErrorAction SilentlyContinue | Copy-Item -Destination $logs + if (Test-Path $logPath) { Get-Content $logPath | Select-String -Pattern 'Bootstrap|ShellSelfUpdate|Velopack|velopack|NativeModulePreflight|reported its build' | Select-Object -Last 40 | ForEach-Object { Write-Host $_.Line } } if ($null -eq $reported) { $failures += "$from did not reach Desktop and Web $env:VERSION" } else { Write-Host "$from updated: $reported" } Get-Process | Where-Object { $_.Path -like "$installRoot*" } | Stop-Process -Force -ErrorAction SilentlyContinue } if ($failures.Count -gt 0) { throw ($failures -join "`n") } + + - name: Upload update logs + if: always() && env.UPDATE_FROM != '' + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: update-logs-${{ matrix.arch }} + path: ${{ runner.temp }}/logs + if-no-files-found: ignore + retention-days: 7