Skip to content

chore(check-pr-size): remove committed binary from git and ignore it (BE-4057)#61

Open
mattmillerai wants to merge 1 commit into
mainfrom
matt/be-4057-remove-committed-binary
Open

chore(check-pr-size): remove committed binary from git and ignore it (BE-4057)#61
mattmillerai wants to merge 1 commit into
mainfrom
matt/be-4057-remove-committed-binary

Conversation

@mattmillerai

Copy link
Copy Markdown
Contributor

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

Why it's safe

Nothing consumes the tracked binary:

  • pr-size.yml builds the tool from source at run time (go build -o "${RUNNER_TEMP}/check-pr-size" .) — never touches a tracked binary.
  • Repo-wide grep for scripts/check-pr-size/check-pr-size → zero references outside the deleted file itself.
  • .gitignore rules never affect tracked files, and this rule is an exact single-file path — it can't mask anything else.

Verification

  • go test ./... in scripts/check-pr-size — green (this is exactly what the path-filtered test-pr-size.yml CI job runs).
  • gofmt -l + go vet ./... — clean.
  • Simulated the workflow build step locally: go build -o /tmp/... . — builds fine.
  • git check-ignore -v confirms the new rule matches the binary path.

Judgment calls

  • The ticket said cursor-review.yml also builds the tool — on current main it has no check-pr-size reference at all (stale ticket detail; doesn't change the fix, since the load-bearing claim — nothing consumes the tracked binary — is verified above).
  • Ticket offered root .gitignore or a new scripts/check-pr-size/.gitignore; chose the existing root one (already present with a Python section) over adding a new file.

…(BE-4057)

The 3.4MB compiled check-pr-size binary was accidentally committed in #51
(a local 'go build ./...' drops it next to the sources and it got swept up
by 'git add -A'). Nothing consumes it: pr-size.yml builds the tool from
source into ${RUNNER_TEMP} at run time, so the tracked copy only bloats
clones and silently drifts from the sources. Remove it and gitignore the
build artifact path so it can't be re-committed.
@mattmillerai mattmillerai added agent-coded Authored by the agent-work loop cursor-review Multi-model cursor review labels Jul 22, 2026
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 55 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b6226676-ac04-4a53-b6cf-d30fd4b6b0a6

📥 Commits

Reviewing files that changed from the base of the PR and between cc325ca and 78cc2c6.

📒 Files selected for processing (2)
  • .gitignore
  • scripts/check-pr-size/check-pr-size
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch matt/be-4057-remove-committed-binary
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch matt/be-4057-remove-committed-binary

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔍 Cursor Review — Consolidated panel

Triggered by @mattmillerai.

✅ No high-signal findings.

Panel: 8/8 reviewers contributed findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-coded Authored by the agent-work loop cursor-review Multi-model cursor review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant