Repository navigation
chore: GitHub collapses generated files in diffs, with the recipe that writes each one - #329
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 45 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ftovers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PiquelChips
force-pushed
the
chore/gitattributes-generated
branch
from
November 4, 2026 10:38
ed48ae7 to
b4e9e71
Compare
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.
GitHub showed generated files in PR diffs as if someone had written them by hand: the SQLx query cache (246 JSON files), the SDK test vectors and the TypeScript SDK's wire types. A small query change could bury the real diff under cache churn.
A new
.gitattributesmarks themlinguist-generated, so GitHub collapses them in diffs and leaves them out of language stats. Each line names the recipe that writes it:crates/database/.sqlx/**:just db preparetests/sdk-vectors/**/*.json:just sdk-vectors(thekeys/*.pemand README are hand-written, so they stay visible)packages/auth/src/protocol.ts:just sdk-typesgit check-attrmarks 321 tracked files as generated and leaves 4 hand-written ones unmarked. Linguist already treatsCargo.lockandpnpm-lock.yamlas generated, so they get no lines here.No CI change is needed, because CI already catches drift in all three:
rustjob runsjust test --workspace --run-ignored all. That runscrates/common/tests/sdk_vectors.rsandprotocol::typescript, which compare the committed files byte for byte unlessUPDATE_SDK_*is set.just db prepare-checkagainst the migrated schema. It fails on a missing or changed query; a cache file left over from a deleted query only warns, as before.changesfilter already sendstests/sdk-vectors/**andpackages/auth/src/protocol.tstorust, andcrates/**covers the cache.Reviewed with review-loop: 1 round with 2× GPT 6.1 Sol and Claude Opus 5.5. Verdict: approved
Note
Written by Claude Opus 5.5 in Claude Code and reviewed by GPT 6.1 Sol and Claude Opus 5.5 (via T3 Code)
🤖 Generated with Claude Code