mirror of
https://github.com/Comfy-Org/github-workflows.git
synced 2026-11-05 00:17:37 +00:00
[PR #61] [MERGED] chore(check-pr-size): remove committed binary from git and ignore it (BE-4057) #72
Labels
No labels
cursor-review-catalog-drift
groom
groom
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/github-workflows#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/github-workflows/pull/61
Author: @mattmillerai
Created: 7/22/2026
Status: ✅ Merged
Merged: 8/4/2026
Merged by: @mattmillerai
Base:
main← Head:matt/be-4057-remove-committed-binary📝 Commits (2)
78cc2c6chore(check-pr-size): remove committed binary from git and ignore it (BE-4057)e9762b7Merge remote-tracking branch 'origin/main' into matt/be-4057-remove-committed-binary📄 Description
ELI-5
A big compiled program file (3.4MB) was accidentally saved into this repo's history — like accidentally stapling a printed photocopy into a recipe book when the recipe itself is already there. Nobody uses the copy (CI always cooks fresh from the recipe), it makes every download of the repo bigger, and it slowly goes stale. This PR deletes the copy and adds a note telling git to never save it again.
What
git rm scripts/check-pr-size/check-pr-size— the 3.4MB arm64 Mach-O binary committed in #51 (a localgo build ./...drops the binary next to the sources; it gotgit add -A-ed).scripts/check-pr-size/check-pr-sizeto the root.gitignoreso a local build can never be re-committed.Why it's safe
Nothing consumes the tracked binary:
pr-size.ymlbuilds the tool from source at run time (go build -o "${RUNNER_TEMP}/check-pr-size" .) — never touches a tracked binary.scripts/check-pr-size/check-pr-size→ zero references outside the deleted file itself..gitignorerules never affect tracked files, and this rule is an exact single-file path — it can't mask anything else.Verification
go test ./...inscripts/check-pr-size— green (this is exactly what the path-filteredtest-pr-size.ymlCI job runs).gofmt -l+go vet ./...— clean.go build -o /tmp/... .— builds fine.git check-ignore -vconfirms the new rule matches the binary path.Judgment calls
cursor-review.ymlalso builds the tool — on currentmainit has nocheck-pr-sizereference at all (stale ticket detail; doesn't change the fix, since the load-bearing claim — nothing consumes the tracked binary — is verified above)..gitignoreor a newscripts/check-pr-size/.gitignore; chose the existing root one (already present with a Python section) over adding a new file.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.