Skip to content

Stabilize process streams and releases#827

Draft
ghostwriternr wants to merge 18 commits into
nextfrom
naresh/stabilize-next-release
Draft

Stabilize process streams and releases#827
ghostwriternr wants to merge 18 commits into
nextfrom
naresh/stabilize-next-release

Conversation

@ghostwriternr

@ghostwriternr ghostwriternr commented Jul 17, 2026

Copy link
Copy Markdown
Member

Keep process log and port-watch subscriptions connected until they
settle. These subscriptions outlive the RPC call that creates them, so
ordinary idle cleanup was closing their control connection and truncating
command output and port waits.

Make the reusable E2E environment safe under overlapping deployments. CI
now fences the current PR revision, always redeploys immutable artifacts,
waits for all five container applications to finish rolling out, removes
stuck old-version instances, and smoke-tests every runtime before Vitest
or Playwright begins. Worker-only changes preserve existing containers
because Cloudflare only starts a rollout when the configured image changes.

Serialize branch releases so older builds cannot overwrite newer ones,
make the terminal assertion tolerate asynchronous shell prompts, and add
the internal workspace version required by preview publishing.

@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 37f17f9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/sandbox Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ghostwriternr
ghostwriternr enabled auto-merge (squash) July 17, 2026 13:18

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@ghostwriternr ghostwriternr changed the title Serialize branch release workflows Stabilize process streams and releases Jul 17, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jul 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@cloudflare/sandbox@827

commit: 37f17f9

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

🐳 Docker Images Published

Variant Image
Default cloudflare/sandbox:0.0.0-pr-827-37f17f9c
Python cloudflare/sandbox:0.0.0-pr-827-37f17f9c-python
OpenCode cloudflare/sandbox:0.0.0-pr-827-37f17f9c-opencode
Musl cloudflare/sandbox:0.0.0-pr-827-37f17f9c-musl

Usage:

FROM cloudflare/sandbox:0.0.0-pr-827-37f17f9c

Version: 0.0.0-pr-827-37f17f9c


📦 Standalone Binary

For arbitrary Dockerfiles:

COPY --from=cloudflare/sandbox:0.0.0-pr-827-37f17f9c /container-server/sandbox /sandbox
ENTRYPOINT ["/sandbox"]

Download via GitHub CLI:

gh run download 29599322840 -n sandbox-binary

Extract from Docker:

docker run --rm cloudflare/sandbox:0.0.0-pr-827-37f17f9c cat /container-server/sandbox > sandbox && chmod +x sandbox

@ghostwriternr
ghostwriternr force-pushed the naresh/stabilize-next-release branch 4 times, most recently from ffa2892 to c285625 Compare July 17, 2026 15:18
@ghostwriternr

Copy link
Copy Markdown
Member Author

Temporarily closing to run the existing privileged cleanup for the saturated disposable E2E environment. Will reopen after cleanup completes.

auto-merge was automatically disabled July 17, 2026 15:24

Pull request was closed

@ghostwriternr ghostwriternr reopened this Jul 17, 2026
Prevent an older build from replacing a newer Worker and container
release when several commits reach a release branch close together.
Shell prompts can arrive before command output, so collect terminal data
until the expected command result is observed.
Process subscriptions outlive the RPC calls that create them. Keep their
control connection active until each stream settles so idle cleanup cannot
truncate command output or port waits.
Preview publishing resolves workspace dependency versions and requires
every internal package to declare one.
@ghostwriternr
ghostwriternr force-pushed the naresh/stabilize-next-release branch from c285625 to 61e6eea Compare July 17, 2026 15:34
@ghostwriternr
ghostwriternr marked this pull request as draft July 20, 2026 10:57
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