Skip to content

fix(release): harden prerelease update fallback checks - #1793

Merged
brennanb2025 merged 3 commits into
mainfrom
brennanb2025/release-check-issue
May 14, 2026
Merged

brennanb2025 merged 3 commits into
mainfrom
brennanb2025/release-check-issue

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented May 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Hardens desktop release/update handling during GitHub release transitions:

  • keeps prerelease fallback results on the short retry cadence instead of treating them as a completed 24h check
  • adds a bounded fallback when the newest prerelease manifest is temporarily missing
  • adds a release publish gate that refuses to un-draft a release until updater manifests and referenced installer assets are present
  • adds release-cut instrumentation for draft/public visibility and atom-feed timing

Screenshots

No visual change.

Testing

  • pnpm lint
  • pnpm run typecheck:node
  • pnpm run typecheck:cli
  • pnpm run typecheck:web
  • pnpm test after rebuilding better-sqlite3 for the current Node ABI: 451 files passed, 5440 tests passed, 9 skipped
  • pnpm exec vitest run --config config/vitest.config.ts src/main/updater.test.ts src/main/updater.fallback.test.ts src/main/updater-prerelease-feed.test.ts
  • pnpm exec vitest run --config config/vitest.config.ts src/main/updater.test.ts -t "prerelease fallback"
  • DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer pnpm run build:release
  • pnpm run build:electron-vite
  • pnpm run build:cli
  • actionlint .github/workflows/release-cut.yml
  • YAML parse check for .github/workflows/release-cut.yml
  • git diff --check
  • GH_TOKEN="$(gh auth token)" GITHUB_REPOSITORY=stablyai/orca node config/scripts/verify-release-required-assets.mjs v1.4.0
  • GH_TOKEN="$(gh auth token)" GITHUB_REPOSITORY=stablyai/orca node config/scripts/verify-release-required-assets.mjs v1.4.1-rc.0
  • GH_TOKEN="$(gh auth token)" GITHUB_REPOSITORY=stablyai/orca node config/scripts/verify-release-required-assets.mjs v1.3.52-rc.3
  • Added/updated regression tests for missing-manifest prerelease fallback behavior

Release Build Verification

Verified the full local release build path with full Xcode selected via DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer:

  • build:relay completed for Linux and macOS relay targets
  • build:computer-macos built the universal macOS computer-use helper
  • verify:computer-native ran the Swift package tests and checked the helper app bundle/signature
  • build:electron-vite completed for main, preload, and renderer bundles
  • build:cli completed; it only printed the existing local /usr/local/bin/orca-dev symlink permission warning and still exited 0

The earlier local build:release failure was caused by this machine's active xcode-select pointing at stale Command Line Tools. With the installed full Xcode selected, the release build path passes.

Current Release-State Verification

Checked the live GitHub release state before updating this description:

  • latest stable release: v1.4.0, published 2026-05-14T00:08:47Z
  • latest prerelease: v1.4.1-rc.0, published 2026-05-14T03:07:59Z
  • branch app version under test: 1.3.51-rc.5

Ran the new release asset verifier against the current stable release, the current prerelease, and the latest release on the prior RC line. Each verified 15 required release assets, including updater manifests and manifest-referenced installer assets.

Update-Flow Verification

I specifically checked that the update flow remains safe after these changes:

  • Verified the changed update-available fallback path shows the fallback update but does not persist a completed-check timestamp.
  • Verified the fallback-available state schedules another automatic check after 60 minutes, so users do not stay pinned to the previous good release for the normal 24h cadence.
  • Verified normal non-fallback available/not-available results still record completed checks and keep the 24h background cadence.
  • Verified updater-focused tests cover prerelease users, missing latest-mac.yml / platform manifest 404s, fallback success, fallback failure, and duplicate event/promise error suppression.
  • Verified RC release handling keeps RCs marked as GitHub prereleases and prevents an RC from becoming the GitHub latest stable release.
  • Verified the publish gate fails closed before un-drafting if a required updater manifest, installer, blockmap, or manifest-referenced asset is missing or not uploaded.

AI Review Report

The update/release path was reviewed for client-side updater state transitions, release-cut workflow sequencing, draft-release safety, prerelease feed behavior, and cross-platform updater assets for macOS, Windows, and Linux. The main risk identified was that a fallback available update could be treated as a completed check, delaying the next probe for the newest release; this PR keeps that case on the short retry cadence and adds a regression test.

Cross-platform compatibility was checked for updater manifest names and release assets across latest-mac.yml, latest.yml, and latest-linux.yml. No keyboard shortcut, shortcut label, path separator, or SSH execution behavior is changed by this PR.

Security Audit

Reviewed input/network boundaries around GitHub release metadata, updater manifest parsing, and release workflow publication. The new release asset verifier reads GitHub API release assets using the workflow token and compares names/states/sizes; it does not execute downloaded content or expose secrets. Updater client changes only adjust feed selection, retry state, and status scheduling; no new IPC surface, shell execution, credential handling, or filesystem write path is introduced.

Notes

This is primarily a release-safety change. The release workflow changes are designed to fail closed: if draft state, RC prerelease state, or required assets are wrong, the release should remain unpublished instead of exposing a broken update.

Made with Orca 🐋

@brennanb2025
brennanb2025 merged commit e361b43 into main May 14, 2026
3 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/release-check-issue branch May 14, 2026 04:45
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant