Skip to content

ci: sync code-size budget with master - #1701

Closed
Soham-o wants to merge 5 commits into
1jehuang:masterfrom
Soham-o:fix/692-sync-code-size-baseline
Closed

Soham-o wants to merge 5 commits into
1jehuang:masterfrom
Soham-o:fix/692-sync-code-size-baseline

Conversation

@Soham-o

@Soham-o Soham-o commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • refresh scripts/code_size_budget.json to the current production Rust file sizes on master
  • preserve the 1200 LOC threshold and existing tracked debt
  • add newly oversized production files introduced by recent merged work
  • keep the code-size ratchet meaningful for subsequent regressions instead of failing on inherited baseline drift

Fixes #692.

Validation

  • baseline generated from upstream master at 77f4f9d50bb41ae849da9ffaab7ea25e7815e096
  • current master Quality Guardrails run 3269 reproduced the failure before this change
  • no production source files changed; this PR only synchronizes the ratchet baseline

@greptile-apps

greptile-apps Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low risk] Updates code size and panic tracking budgets.

No outstanding findings block merging.

Summary

The PR refreshes the code-size, test-size, and panic budgets. The harness example’s panic budget now uses its actual path.

Reviews (4) · Last reviewed commit: "ci: correct harness panic budget path"

Comment thread scripts/code_size_budget.json Resolved
Comment thread scripts/panic_budget.json Resolved
@mg-mg-mg

mg-mg-mg commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Current-master heads-up from pristine a0c41dc2f (2026-10-06): scripts/check_code_size_budget.py still reports 17 oversized-file regressions, including newly oversized crates/jcode-app-core/src/tool/mcp.rs (1338 LOC) and crates/jcode-tui/src/tui/app/hotkey_feedback.rs (1216 LOC). scripts/check_test_size_budget.py also reports three grown test files. This PR baseline was generated at 77f4f9d, so it no longer covers the current master drift. I did not alter your branch or open a competing budget-baseline PR. The independent rustfmt failure is isolated in #1739. Until the budget policy or baseline is reconciled with current master, unrelated PRs (including #1727) remain red on Quality Guardrails.

Soham-o commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

I revisited this against current upstream master at ac2a0b09848a9ecc09942b8faf196b3af69a65bb (2026-10-15), rather than continuing from this PR's October 4 base.

Using the repository's own scripts on a branch based on that exact upstream snapshot:

  • python scripts/check_code_size_budget.py --update, followed by the normal checker, passed (116 tracked oversized production files).
  • python scripts/check_test_size_budget.py --update, followed by the normal checker, passed (47 tracked oversized test files).
  • python scripts/check_panic_budget.py passed unchanged (162 total across 57 files).

Both regenerated size-budget files are byte-for-byte identical to those already on current upstream master. This PR's branch is hundreds of commits behind and its baseline changes are now redundant/stale, so I'm closing it instead of opening a duplicate replacement. Thanks for the earlier review feedback.

@Soham-o Soham-o closed this Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI red on master: code-size ratchet exceeded by desktop2/transcript.rs (2364 -> 2799 LOC)

2 participants