Skip to content

Normalize globstar exclude patterns for backups#645

Merged
scuffi merged 2 commits intomainfrom
patch/normalize-backup-exclude-patterns
Apr 28, 2026
Merged

Normalize globstar exclude patterns for backups#645
scuffi merged 2 commits intomainfrom
patch/normalize-backup-exclude-patterns

Conversation

@scuffi
Copy link
Copy Markdown
Contributor

@scuffi scuffi commented Apr 27, 2026

Summary

This PR fixes createBackup() excludes that use gitignore-style globstar patterns like **/node_modules and dist/**.

Previously, these patterns could make it through to the backup pipeline in a form that mksquashfs does not support, which could produce empty archives. This change normalizes those exclude patterns before archive creation and applies the same behavior in both the Durable Object and container backup paths so local and production flows stay consistent.

Testing

  • Added regression coverage for SDK backup paths
  • Verified container backup-service tests still pass
  • Verified targeted SDK backup tests pass

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 27, 2026

🦋 Changeset detected

Latest commit: 5e128ae

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/sandbox-sdk/@cloudflare/sandbox@645

commit: 5e128ae

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 27, 2026

🐳 Docker Images Published

Variant Image
Default cloudflare/sandbox:0.0.0-pr-645-5e128ae
Python cloudflare/sandbox:0.0.0-pr-645-5e128ae-python
OpenCode cloudflare/sandbox:0.0.0-pr-645-5e128ae-opencode
Musl cloudflare/sandbox:0.0.0-pr-645-5e128ae-musl
Desktop cloudflare/sandbox:0.0.0-pr-645-5e128ae-desktop

Usage:

FROM cloudflare/sandbox:0.0.0-pr-645-5e128ae

Version: 0.0.0-pr-645-5e128ae


📦 Standalone Binary

For arbitrary Dockerfiles:

COPY --from=cloudflare/sandbox:0.0.0-pr-645-5e128ae /container-server/sandbox /sandbox
ENTRYPOINT ["/sandbox"]

Download via GitHub CLI:

gh run download 25043096529 -n sandbox-binary

Extract from Docker:

docker run --rm cloudflare/sandbox:0.0.0-pr-645-5e128ae cat /container-server/sandbox > sandbox && chmod +x sandbox

@scuffi scuffi marked this pull request as ready for review April 28, 2026 09:00
Copy link
Copy Markdown
Contributor

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

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 potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

Copy link
Copy Markdown
Collaborator

@whoiskatrin whoiskatrin left a comment

Choose a reason for hiding this comment

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

Nice 👍🏼 this was my miss, thanks for picking this up

@scuffi scuffi merged commit 2d0687b into main Apr 28, 2026
30 of 32 checks passed
@scuffi scuffi deleted the patch/normalize-backup-exclude-patterns branch April 28, 2026 09:09
@sandy-bonk sandy-bonk Bot mentioned this pull request Apr 28, 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.

2 participants