Skip to content

docs(junior-qa): Prewarm the Docker sandbox snapshot - #2469

Merged
thomasjiangcy merged 3 commits into
mainfrom
docs/junior-qa-docker-prewarm
Oct 31, 2026
Merged

thomasjiangcy merged 3 commits into
mainfrom
docs/junior-qa-docker-prewarm

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

With the Docker sandbox provider, the first sandbox builds a dependency snapshot. With the small Docker base from #2472, that takes about 1 minute and makes an 837MB image. A sandbox from the saved snapshot starts in about 3s. This PR tells QA sessions how to build the snapshot before the first turn, and what the Docker sandbox has.

Changes to skills/junior-qa/SKILL.md:

  • A note that a Docker sandbox has only gh, jq and rg. Install other tools with sudo (a plain npm i -g fails with EACCES). Do not QA browser or Docker-in-sandbox behavior with this provider.
  • A new "Prewarm the Sandbox Snapshot" section. After pnpm dev is up, run pnpm cli -- snapshot create with the dev server's state settings (JUNIOR_STATE_ADAPTER=redis, REDIS_URL=redis://localhost:6382). With BullMQ, the dev server keeps the snapshot pointer in the Compose Redis. pnpm cli uses memory state by default. Without those settings, the command builds a second snapshot that the dev server never uses.
  • pnpm build after a pull. scripts/dev-server.mjs rebuilds only core and the dashboard. After feat(events)!: Let event automations run for any resource #2407, old plugin builds made pnpm dev fail with Junior plugin "github" events is invalid.
  • Two failure hints for those cases.

Docs only. junior snapshot create and the defaults of pnpm cli don't change. Merge after #2472, because the size, time and toolset notes describe its behavior.

Verification:

  • In a Vercel Sandbox with pnpm dev (BullMQ + Docker provider) running, the documented command printed resolve_outcome=cache_hit cache_hit=true. The same command without the Redis settings rebuilt the snapshot (rebuild_reason=cache_miss).
  • pnpm skills:check and prettier pass.

via @thomasjiangcy.

--

View Session [Sentry]

Document how to build the dependency snapshot before the first QA turn.
Run snapshot create with the dev server's Redis state, so the dev server
reuses the snapshot. Also note that pnpm dev does not rebuild plugin
packages after a pull.

Co-Authored-By: Thomas Jiang <[email protected]>
@vercel

vercel Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
junior-docs Ready Ready Preview Oct 31, 2026 5:39pm UTC

Request Review

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

2 screenshot changes — 2 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Child Agent Drawer · Desktop
Conversation Child Agent Drawer · Desktop
Changed
Conversation Child Agent Drawer · Mobile
Conversation Child Agent Drawer · Mobile
Changed

sentry-junior Bot and others added 2 commits October 31, 2026 17:37
The Docker provider now installs only gh, jq and ripgrep. Update the build
time and size, and say how to install missing tools.

Co-Authored-By: Thomas Jiang <[email protected]>
@thomasjiangcy
thomasjiangcy merged commit 4c50268 into main Oct 31, 2026
45 checks passed
@thomasjiangcy
thomasjiangcy deleted the docs/junior-qa-docker-prewarm branch October 31, 2026 17:48

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 944e1cdc Deployed Oct 31, 2026 by vercel[bot]
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