Skip to content

Fix PR Preview Cleanup - #1177

Merged
CryZe merged 1 commit into
LiveSplit:masterfrom
CryZe:fix-preview-cleanup
Nov 14, 2026
Merged

CryZe merged 1 commit into
LiveSplit:masterfrom
CryZe:fix-preview-cleanup

Conversation

@CryZe

@CryZe CryZe commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

Cloudflare Pages rejects deployment listings larger than 25 entries with HTTP 400. Cleanup requested 100, so every Remove PR preview run failed before deleting any previews.

Request 25 deployments per page and use the same size to detect the last page when Cloudflare omits pagination metadata. Keep collecting every page before deleting deployments so cleanup removes older builds without skipping entries as the list changes.

Add a regression case that rejects oversized requests and checks both pagination response forms, with matching PR deployments on separate pages and other PR deployments left untouched.

Cloudflare Pages rejects deployment listings larger than 25 entries with
HTTP 400. Cleanup requested 100, so every Remove PR preview run failed
before deleting any previews.

Request 25 deployments per page and use the same size to detect the last
page when Cloudflare omits pagination metadata. Keep collecting every
page before deleting deployments so cleanup removes older builds without
skipping entries as the list changes.

Add a regression case that rejects oversized requests and checks both
pagination response forms, with matching PR deployments on separate
pages and other PR deployments left untouched.
@CryZe CryZe added bug CI Affects the Continuous Integration. labels Nov 14, 2026 — with ChatGPT Codex Connector
@CryZe CryZe self-assigned this Nov 14, 2026
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

LiveSplit One preview removed

This PR has closed or merged, so its preview deployments were deleted.

@CryZe
CryZe merged commit 1b044e0 into LiveSplit:master Nov 14, 2026
5 checks passed
@CryZe
CryZe deleted the fix-preview-cleanup branch November 14, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug CI Affects the Continuous Integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant