Skip to content

[pull] main from tldraw:main#552

Merged
pull[bot] merged 1 commit into
code:mainfrom
tldraw:main
May 20, 2026
Merged

[pull] main from tldraw:main#552
pull[bot] merged 1 commit into
code:mainfrom
tldraw:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 20, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…Rs (#8746)

The `prune-preview-deploys` workflow already tears down preview workers,
Supabase branches, fly.io zero-cache apps, and Zero litestream R2
backups, but it didn't touch `dotcom-deploy-assets-cache` — the R2
bucket where `coalesceWithPreviousAssets`
(`internal/scripts/deploy-dotcom.ts:957`) writes a tarball per deploy.
Closed PRs were leaving `pr-<n>/` folders behind forever.

This PR adds a fifth prune pass over that bucket, reusing the existing
closed-for-2-days filter via `processItems`. Since both R2 prunes were
near-duplicates, I refactored them into shared `listR2PrPrefixes` /
`deleteR2Prefix` helpers parameterized by an `R2BucketRef` ({client,
bucket, label}). Adding more buckets in future is one literal each. Net
diff is +43/-80.

`staging/` and `production/` prefixes are intentionally untouched —
they're required by `coalesceWithPreviousAssets` for rollback safety.

Also broadens the fly.io app regex from `^pr-\d+-zero-cache$` to
`^pr-\d+-zero-(cache|rm|vs)$` so preview `zero-rm` and `zero-vs` apps
get torn down alongside `zero-cache`. Without this, the leftover apps
kept writing new litestream backups into already-pruned `pr-<n>/`
prefixes in the Zero R2 bucket, so the same prefix kept reappearing in
nightly runs.

Closes #8745.

### Change type

- [x] `other`

### Test plan

- Workflow runs daily on cron; will be exercised on the next scheduled
run after merge. Reuses the same `R2_ACCESS_KEY_ID` /
`R2_ACCESS_KEY_SECRET` secrets the dotcom deploy job already uses for
this bucket, so no new secrets needed.
@pull pull Bot locked and limited conversation to collaborators May 20, 2026
@pull pull Bot added the ⤵️ pull label May 20, 2026
@pull pull Bot merged commit 1645a2d into code:main May 20, 2026
@pull pull Bot had a problem deploying to bemo-canary May 20, 2026 09:13 Failure
@pull pull Bot had a problem deploying to deploy-production May 20, 2026 09:13 Failure
@pull pull Bot had a problem deploying to npm deploy May 20, 2026 09:13 Failure
@pull pull Bot had a problem deploying to bemo-canary May 20, 2026 09:13 Failure
@pull pull Bot had a problem deploying to vsce publish May 20, 2026 09:13 Failure
@pull pull Bot had a problem deploying to deploy-staging May 20, 2026 09:13 Failure
@pull pull Bot had a problem deploying to deploy-staging May 20, 2026 09:13 Error
@pull pull Bot had a problem deploying to npm deploy May 20, 2026 09:13 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant