Repository navigation
Conversation
Stack review passes the target checkout's .gitattributes path on every run. Some checkouts lack the file, which aborts ledger creation and leaves the findings step with empty input. Treat a missing attributes file as an empty source of generated-file patterns. Exercise the CLI against the omitted-option control and regenerate the packaged tool. Generated-by: Codex (GPT-6)
Exercise malformed UTF-8 and a directory passed as the optional attributes source. Check that a missing layer still identifies the required diff when the attributes file is also missing. Generated-by: Codex (GPT-6)
A mistyped clone path can drop the only rule identifying a file as generated, which hides duplicate findings across layers. Diagnose that case on stderr while producing the fallback ledger. Cover the missing parent and the quiet fallback for an existing clone with CLI regressions. Generated-by: Codex (GPT-6)
potiuk
approved these changes
Nov 10, 2026
potiuk
left a comment
Member
There was a problem hiding this comment.
Treating a missing root .gitattributes as "no extra generated-file patterns" fixes the empty-ledger failure for clones without one, while only FileNotFoundError is caught so real read errors still surface, and the CLI tests pin the quiet fallback, the wrong-path warning and the error paths.
This review was drafted by an AI-assisted tool and
confirmed by an Apache Magpie maintainer. The maintainer
approving this PR has read the findings and signed off. If
something feels off, please reply on the PR and a maintainer
will follow up.More on how Apache Magpie handles maintainer review:
Contributing guide.
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.
Summary
.gitattributes, so Step 3 can read it.Type of change
Test plan
Verified
e3e8182fagainst0e0c0a62.FileNotFoundError, an empty ledger, and the downstream JSON error on the base. With the patch, an existing directory without the file yields byte-identical stdout to omitting the option and empty stderr.stack_revieweach passed 92 tests and 15 subtests. Linuxpr-managementpassed 805 tests and 15 subtests. Ruff, formatting, and mypy passed.prek, range-selectedworkspace-pytest,git diff --check, and packaged-source consistency passed.Linked issues
Closes #2036
Generative AI disclosure
AI-assisted with Codex (GPT-6) for the implementation, tests, reproduction, and drafting. The contributor reviewed the final patch. All three commits carry
Generated-by:trailers.