Skip to content
Merged
Prev Previous commit
Next Next commit
test(release): classify upgrade gate and exercise native handoff on PRs
  • Loading branch information
SivanCola committed Nov 13, 2026
commit 1b2b91b342fa3db083b4ed9dfd6d76d2ad042785
48 changes: 47 additions & 1 deletion .github/workflows/verify-windows-auto-update.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Verify published Windows automatic updates

on:
pull_request:
paths:
- 'scripts/test-windows-legacy-update.ps1'
- 'scripts/test-windows-startup-recovery.ps1'
- '.github/workflows/verify-windows-auto-update.yml'
workflow_call:
inputs:
version:
Expand All @@ -16,8 +21,49 @@ permissions:
contents: read

jobs:
handoff-smoke:
name: self-test published v0.0.7 handoff (${{ matrix.arch }})
if: github.repository == 'SivanCola/deepzora' && github.event_name == 'pull_request'
strategy:
fail-fast: false
matrix:
include:
- runner: windows-latest
arch: amd64
- runner: windows-11-arm
arch: arm64
runs-on: ${{ matrix.runner }}
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
ref: ${{ github.sha }}
persist-credentials: false
- name: Exercise the handoff harness using an immutable signed repair target
shell: pwsh
run: |
$cpu = if ('${{ matrix.arch }}' -eq 'amd64') { 'x64' } else { 'arm64' }
$expected = if ($cpu -eq 'x64') { 'b19176ec83b500975235e554ce4935207dbefb3c987ba58dcf735a4120c7ad25' } else { '6c253aee4082c157334511593350b0be84b33a5e111e8356fdfd651fd42b18b6' }
$installer = Join-Path $env:RUNNER_TEMP 'repair-target.exe'
Invoke-WebRequest "https://github.com/SivanCola/deepzora/releases/download/desktop-v0.0.7/Deepzora-0.0.7-Windows-$cpu-Setup.exe" -OutFile $installer -TimeoutSec 180
if ((Get-FileHash -Algorithm SHA256 -LiteralPath $installer).Hash.ToLowerInvariant() -ne $expected) { throw 'Repair target differs from the sealed v0.0.7 installer' }
# No candidate is available on a PR. Repairing with the original signed
# version exercises the exact same native driver without publishing,
# credentials, model calls or claiming v0.0.8 upgrade qualification.
./scripts/test-windows-legacy-update.ps1 -InstallerPath $installer -ExpectedVersion v0.0.7 -Architecture '${{ matrix.arch }}' -EvidenceDirectory "$env:RUNNER_TEMP/legacy-handoff-smoke"
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
if: always()
with:
name: legacy-handoff-smoke-${{ matrix.arch }}-${{ github.run_attempt }}
path: |
${{ runner.temp }}/legacy-handoff-smoke/**/*.json
${{ runner.temp }}/legacy-handoff-smoke/**/*.log
!${{ runner.temp }}/legacy-handoff-smoke/*/installed/**
!${{ runner.temp }}/legacy-handoff-smoke/**/cache/**
if-no-files-found: ignore
retention-days: 7
policy:
if: github.repository == 'SivanCola/deepzora' && github.ref == 'refs/heads/main' && github.ref_protected
if: github.repository == 'SivanCola/deepzora' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.ref_protected
runs-on: ubuntu-latest
outputs:
required: ${{ steps.policy.outputs.required }}
Expand Down
5 changes: 3 additions & 2 deletions docs/desktop-contract/INVENTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Every entry carries one class: `keep-business` is implemented in Go and exposed
| persistence | 16 | 0 | 0 | 16 |
| shell-file | 1 | 24 | 0 | 25 |
| artifact | 11 | 0 | 0 | 11 |
| ci-job | 20 | 0 | 0 | 20 |
| **all** | | | | **658** |
| ci-job | 21 | 0 | 0 | 21 |
| **all** | | | | **659** |

## Desktop commands (Go `App` methods bound to the UI)

Expand Down Expand Up @@ -723,5 +723,6 @@ Every entry carries one class: `keep-business` is implemented in Go and exposed
| `release-desktop.yml/resolve` | | .github/workflows/release-desktop.yml | keep-business (保留业务实现) | version/channel resolution unchanged |
| `release-desktop.yml/signing-contract` | | .github/workflows/release-desktop.yml | keep-business (保留业务实现) | payload list covers the Electron executables and native modules |
| `release-desktop.yml/windows-build` | | .github/workflows/release-desktop.yml | keep-business (保留业务实现) | builds and smoke-tests unsigned x64 and ARM64 packages on native Windows runners before signing |
| `release-desktop.yml/windows-legacy-upgrade` | | .github/workflows/release-desktop.yml | keep-business (保留业务实现) | qualifies published v0.0.7 installed and portable clients upgrading through their original signed helper |
| `release-desktop.yml/windows-runtime-acceptance` | | .github/workflows/release-desktop.yml | keep-business (保留业务实现) | installs and starts the exact signed x64 and ARM64 installers on native runners |
| `release-desktop.yml/windows-sign` | | .github/workflows/release-desktop.yml | keep-business (保留业务实现) | Certum signs native-tested x64 and ARM64 payloads and rebuilt installers on x64 |
7 changes: 7 additions & 0 deletions docs/desktop-contract/inventory.json
Original file line number Diff line number Diff line change
Expand Up @@ -5134,6 +5134,13 @@
"class": "keep-business",
"owner": "builds and smoke-tests unsigned x64 and ARM64 packages on native Windows runners before signing"
},
{
"kind": "ci-job",
"name": "release-desktop.yml/windows-legacy-upgrade",
"location": ".github/workflows/release-desktop.yml",
"class": "keep-business",
"owner": "qualifies published v0.0.7 installed and portable clients upgrading through their original signed helper"
},
{
"kind": "ci-job",
"name": "release-desktop.yml/windows-runtime-acceptance",
Expand Down
1 change: 1 addition & 0 deletions tools/desktopinventory/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var ciJobs = map[string]struct {
"release-desktop.yml/windows-build": {classKeepBusiness, "builds and smoke-tests unsigned x64 and ARM64 packages on native Windows runners before signing"},
"release-desktop.yml/windows-sign": {classKeepBusiness, "Certum signs native-tested x64 and ARM64 payloads and rebuilt installers on x64"},
"release-desktop.yml/windows-runtime-acceptance": {classKeepBusiness, "installs and starts the exact signed x64 and ARM64 installers on native runners"},
"release-desktop.yml/windows-legacy-upgrade": {classKeepBusiness, "qualifies published v0.0.7 installed and portable clients upgrading through their original signed helper"},
"release-desktop.yml/mac-universal-intel": {classKeepBusiness, "validates the exact universal DMG from the build matrix on an Intel runner"},
"release-desktop.yml/publish": {classKeepBusiness, "manifest, minisign and mirror unchanged"},
"release-desktop.yml/attest-signing-contract": {classKeepBusiness, "attests the extended payload list"},
Expand Down
Loading