Skip to content

feat(workspaces): Prebuild snapshots after deploy - #1586

Open
sentry-junior[bot] wants to merge 5 commits into
mainfrom
feat/workspace-prebuild
Open

feat(workspaces): Prebuild snapshots after deploy#1586
sentry-junior[bot] wants to merge 5 commits into
mainfrom
feat/workspace-prebuild

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Adds an opt-in Prebuild after deploy setting to each Workspace.

Heartbeat only enqueues opted-in Workspace snapshot builds on a dedicated Vercel Queue. The queue callback owns the build with a full function lifetime. Existing snapshot cache and build locks still dedupe concurrent work.

The setting is stored in SQL and is available in the dashboard and Workspace API.

Requested by David Cramer.

--

View Junior Session [Sentry]

Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Aug 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 15, 2026 7:05am

Request Review

@github-actions

github-actions Bot commented Aug 15, 2026

Copy link
Copy Markdown

Dashboard visual evidence

Mode: path-selected
Selected: system

Triggered by:

  • packages/junior-dashboard/e2e/system.spec.ts
  • packages/junior-dashboard/src/client/pages/system/WorkspaceEditor.tsx
  • packages/junior-dashboard/src/client/pages/system/WorkspaceList.tsx
  • packages/junior-dashboard/src/client/pages/system/workspaceDraft.ts

System · desktop

System · desktop

Full-page screenshots from the mock dashboard. Not a pixel-diff gate.

@blacksmith-sh

This comment has been minimized.

Swallow list/query failures during app-start prebuild so tests and
partial environments stay up. Update Workspace e2e fixtures and the
schema migration count assertion for the new prebuild column.
@dcramer
dcramer marked this pull request as ready for review August 15, 2026 06:44
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 15, 2026
Comment thread packages/junior/src/app.ts Outdated
Comment thread packages/junior/src/chat/workspaces/validation.ts
Schedule Workspace prebuild from the heartbeat request waitUntil path
so Vercel extends lifetime for the snapshot build. Preserve an existing
prebuild value when a recipe PUT omits the field.
Heartbeat only enqueues opted-in Workspace snapshot builds. A dedicated
Vercel Queue callback owns the build with a full function lifetime.

Co-Authored-By: David Cramer <david@sentry.io>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2287bf2. Configure here.

Comment thread packages/junior/src/chat/workspaces/prebuild.ts
Remember only successful queue sends per process so a warm isolate can
retry failed Workspace prebuild enqueues on the next heartbeat.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant