Skip to content

Lower the line cap of the Bazel group to its count - #2260

Open
Mikola Lysenko (mikolalysenko) wants to merge 1 commit into
mainfrom
chore/bazel-loc-cap-to-count
Open

Mikola Lysenko (mikolalysenko) wants to merge 1 commit into
mainfrom
chore/bazel-loc-cap-to-count

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

The line cap of the bazel group in scripts/loc-budget.json is the group's count again, 5202.

Why

The changes to the Bazel support that landed over the last two days each raised that cap. With each one setting its own count, every two of them conflicted on that one line, so the later ones all set one shared value, 5300, above what they reach together. They have all landed. The group counts 5202 implementation lines, and scripts/loc-budget.py asks that a cap is the count a reviewer saw.

What changes

One number: "max": 5300 becomes "max": 5202 for the bazel group, written by python3 -B scripts/loc-budget.py --lower.

Not changed

lock-readers (39,869 against a cap of 30,462) and lock-writers (106,016 against 88,362) are over their caps on main. --lower never raises a cap, and those groups grew in changes that are not about Bazel, so they are left for whoever owns them to raise where a reviewer sees it. CI only warns on this file.

How it was checked

python3 -B scripts/loc-budget.py prints bazel 5202 / 5202 ok on this branch.

Code review

One note, and no change for it: a cap that equals the count has no headroom, so the next two changes to the Bazel group that are open at the same time meet on this line again. That is how the script is meant to work (a change that grows a group raises the number where a reviewer sees it), and the series that needed the shared value has landed.

🤖 Generated with Claude Code

The changes to the Bazel support that landed over the last two days each
set the cap of the `bazel` group to one shared value, 5300, so that they
did not meet on that line. They are all in: the group counts 5202 lines,
and the cap is that count again (`scripts/loc-budget.py --lower`).

The two other groups are over their caps on main and are left as they
are: this change is about the Bazel group alone.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@mikolalysenko
Mikola Lysenko (mikolalysenko) marked this pull request as ready for review November 25, 2026 21:29
@cursor

cursor Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Single numeric budget update in CI warning config; no runtime or security impact.

Overview
Sets the bazel line budget in scripts/loc-budget.json from 5300 to 5202, matching the current implementation line count under crates/socket-patch-core/src/bazel/ after recent Bazel work landed (the cap had been left at a shared inflated value to avoid merge conflicts).

No other groups are touched; scripts/loc-budget.py --lower only decreases caps when count is below the stored max.

Reviewed by Cursor Bugbot for commit 87034fc. Configure here.

@mikolalysenko Mikola Lysenko (mikolalysenko) added the Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review label Nov 25, 2026
@mikolalysenko

Copy link
Copy Markdown
Collaborator Author

[agent] PR shepherd: review brief

What it does
It lowers the bazel group's line cap in scripts/loc-budget.json from 5300 back to its real count, 5202. The cap had been raised to one shared value so that the Bazel series wouldn't keep conflicting on that line. The whole series has landed now.

Risk
Low. It changes one number in a budget file that CI only warns on. No code changes.

Look here

Verified

  • python3 -B scripts/loc-budget.py on the current main (ff949a3) prints bazel 5202 / 5300, so 5202 is still the exact count.
  • The PR is mergeable, ci-ok and clippy pass on 87034fc, and no review threads are open.
  • CHANGELOG.md is untouched.

Changes I made
None.

Open questions
None. With the cap equal to the count, the next Bazel change has to raise it where a reviewer sees it. The script is designed to work that way.


Generated by Claude Code

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

Labels

Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant