Fetch only the release script in the unflag workflow - #3398
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
pwizla
commented
Aug 25, 2026
pwizla
left a comment
Collaborator
Author
There was a problem hiding this comment.
LGTM, let's test it with another dry run of the unflag workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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