Skip to content

Line normalization for devcontainer hash - #191

Merged
ejfine merged 3 commits into
mainfrom
agents-keywords
Aug 4, 2026
Merged

Line normalization for devcontainer hash#191
ejfine merged 3 commits into
mainfrom
agents-keywords

Conversation

@ejfine

@ejfine ejfine commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Why is this change necessary?

When developers are not using a devcontainer and are running on windows, the CRLF vs LF generated different hashs

How does this change address the issue?

Normalizes line endings

What side effects does this change have?

N/A

How is this change tested?

Downstream repo

Other

Tweaked AGENTS.md to stop Coderabbit from telling us to use kwargs for test functions

Summary by CodeRabbit

  • Bug Fixes

    • Improved file integrity checks by consistently normalizing line endings before hashing.
    • Preserved special handling for lockfiles and continued ignoring directory-like symbolic links.
  • Documentation

    • Clarified Python testing guidelines for pytest-injected parameters.

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@ejfine, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

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: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: f32d1897-d60e-40bb-bfe4-53c7c3cf3e6e

📥 Commits

Reviewing files that changed from the base of the PR and between d959e97 and 458745b.

📒 Files selected for processing (1)
  • AGENTS.md

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.

❤️ Share

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

@ejfine
ejfine marked this pull request as ready for review August 4, 2026 14:50
@ejfine
ejfine requested a review from idonaldson August 4, 2026 14:50

@coderabbitai coderabbitai 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/hash_git_files.py:
- Around line 92-93: Update the checksum logic around the file hashing flow to
avoid CRLF-to-LF normalization for binary files. Apply normalization only to an
explicit, reliably identified set of text paths, while hashing all other files’
raw bytes so binary content changes always affect the checksum; keep the
existing checksum accumulation behavior unchanged.
- Around line 92-93: Update the hashing logic in the file-processing and
extra-path hashing flows to read files in bounded chunks instead of calling
read_bytes(). Normalize CRLF incrementally, carrying a trailing carriage return
between chunks so split "\r\n" sequences are handled correctly, and feed each
normalized chunk into zlib.adler32 while preserving the existing checksum
behavior.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1a20513f-f176-4210-9bdf-5c4fbd972575

📥 Commits

Reviewing files that changed from the base of the PR and between 611b22a and d959e97.

📒 Files selected for processing (2)
  • .github/workflows/hash_git_files.py
  • AGENTS.md

Comment thread .github/workflows/hash_git_files.py
@ejfine
ejfine merged commit bf8a187 into main Aug 4, 2026
7 checks passed
@ejfine
ejfine deleted the agents-keywords branch August 4, 2026 16:41
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.

2 participants