Skip to content

fix(desktop): create Sentry release before finalize#642

Merged
jeevanpillay merged 1 commit intomainfrom
feat/desktop-rc3-release-finalize-fix
May 6, 2026
Merged

fix(desktop): create Sentry release before finalize#642
jeevanpillay merged 1 commit intomainfrom
feat/desktop-rc3-release-finalize-fix

Conversation

@jeevanpillay
Copy link
Copy Markdown
Member

Summary

PR #641 dropped `sentry-cli releases new` from the upload flow, assuming `sourcemaps upload --release X` would auto-create the release entity. It doesn't — it uploads the artifact bundle and tags it, but the release record itself stays absent. `releases finalize` then errors with "Release not found" and the workflow fails after sourcemaps have already uploaded.

Failed run: 25420266590

Fix

Restore `sentry-cli releases new ` as the first step. Full flow: new → upload (main) → upload (renderer) → finalize.

Test plan

  • `node --check apps/desktop/scripts/upload-sourcemaps.mjs` clean
  • CI green
  • Re-cut rc.3: artifact bundles uploaded with debug-ids (proven in failing run); release entity exists; finalize succeeds; workflow undrafts the release; `latest-mac-{arm64,x64}.json` Sparkle feeds present in the 6-asset release

PR #641 dropped the `sentry-cli releases new` step from the upload flow,
assuming `sourcemaps upload --release X` would auto-create the release
entity. It does not — it writes the artifact bundle and tags it with a
release name, but the release record itself stays absent. The subsequent
`releases finalize` then errors with "Release not found" and the workflow
fails after every sourcemap has already uploaded.

Restore `sentry-cli releases new <release>` as the first step. The full
flow is now: new -> upload (main) -> upload (renderer) -> finalize.

Failed run that surfaced this:
https://github.com/lightfastai/lightfast/actions/runs/25420266590

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
lightfast-app Skipped Skipped May 6, 2026 6:39am
lightfast-platform Skipped Skipped May 6, 2026 6:39am
lightfast-www Skipped Skipped May 6, 2026 6:39am

Request Review

@vercel vercel Bot temporarily deployed to Preview – lightfast-www May 6, 2026 06:39 Inactive
@vercel vercel Bot temporarily deployed to Preview – lightfast-platform May 6, 2026 06:39 Inactive
@vercel vercel Bot temporarily deployed to Preview – lightfast-app May 6, 2026 06:39 Inactive
@jeevanpillay jeevanpillay merged commit 9d2d392 into main May 6, 2026
14 checks passed
@jeevanpillay jeevanpillay deleted the feat/desktop-rc3-release-finalize-fix branch May 6, 2026 06:41
jeevanpillay added a commit that referenced this pull request May 6, 2026
Pull in 5 desktop release PRs that landed since fork:
- #638 codesign pre-fixes
- #639 release-pipeline fixes
- #640 Vite sourcemaps
- #641 observability hardening (IPC routing + debug-id symbolication)
- #642 Sentry release/finalize fix

Conflicts resolved:
- apps/desktop/src/main/windows/factory.ts — comment-only divergence on
  the Vite/CJS __dirname workaround. Took main's more detailed wording.
- apps/desktop/src/renderer/src/main.ts — main removed renderer-side
  Sentry init (the v10 SDK silently no-op'd; events forward via IPC to
  main now). Our HEAD's initSentryBrowser block referenced sentryInit
  which main also dropped. Took main's version.
- pnpm-lock.yaml — regenerated against the merged package.json files.

Verified: 38/38 desktop tests pass; @lightfast/desktop and
@lightfast/app typechecks clean. Live PKCE sign-in re-verification
deferred to post-commit step.
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