Skip to content

Fetch only the release script in the unflag workflow - #3398

Merged
pwizla merged 1 commit into
mainfrom
repo/speed-up-unflag-checkout
Aug 25, 2026
Merged

Fetch only the release script in the unflag workflow#3398
pwizla merged 1 commit into
mainfrom
repo/speed-up-unflag-checkout

Conversation

@pwizla

@pwizla pwizla commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

This PR fixes a slow checkout in the unflag-released-prs workflow. The job needs exactly one file, the release-detection script, but the default checkout pulled the whole repository: roughly 865 MB of history, mostly images under static/. A dry run spent close to three minutes in the Checkout step before being cancelled, against about 20 seconds for workflows that genuinely need the tree.

Two settings are needed and neither is sufficient alone: sparse-checkout limits what is written to the working tree, and filter: blob:none limits what is transferred at all. Measured locally against this repository, sparse checkout on its own still fetched 417 MB in 21 seconds, while adding the blob filter brings it to 392 KB in about 1 second, with the script as the only file in the working tree.

The script remains a real file in the repository rather than being inlined into the workflow, so it can still be run locally against any strapi/strapi PR number.

Follows #3397

The default checkout pulled ~865 MB of history and ran for minutes. Sparse
checkout alone still transferred 417 MB in 21s; adding filter: blob:none brings
it to 392 KB in about 1s. The script stays a real file, still runnable locally.
@pwizla pwizla self-assigned this Aug 25, 2026
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview Aug 25, 2026 2:17pm

Request Review

@github-actions github-actions Bot added pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo internal PRs created by the Strapi core team labels Aug 25, 2026

@pwizla pwizla left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

LGTM, let's test it with another dry run of the unflag workflow

@pwizla pwizla modified the milestones: 7.1.1, 7.1.0 Aug 25, 2026
@pwizla
pwizla merged commit 1d4cede into main Aug 25, 2026
8 checks passed
@pwizla
pwizla deleted the repo/speed-up-unflag-checkout branch August 25, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal PRs created by the Strapi core team pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo

1 participant