GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — docs(agents): Record four recurring review blockers by euxarist · Pull Request #899 · Twigpine/zero Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan includes up to 4 reviews per rolling hour; 3 remain after this review. Walkthrough
ChangesReview guidance
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This documentation-only change adds review guidance without changing product behavior, and no actionable merge-blocking risk remains after normal checks and review. Possibly related issues
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
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 `@AGENTS.md`:
- Around line 123-128: Update the “Hermetic tests” guidance in AGENTS.md to
explicitly require redirecting cache and state roots to temporary directories,
in addition to the existing config-root isolation. Ensure the procedure applies
to every test accessing config, cache, or state storage and retains the Windows
%AppData% requirement.
- Around line 106-115: Update the host-tool version-floor guidance in AGENTS.md
to distinguish support by Git subcommand: document that --end-of-options
requires Git 2.30 specifically for git rev-parse, including the exact command
and version. Ensure callers use a compatible fallback below that floor, and make
tests skip rather than fail when the required Git version is unavailable.
- Around line 129-135: Update the platform-specific errno guidance for
openat(O_DIRECTORY|O_NOFOLLOW) symlink handling to avoid assigning fixed errors
by OS; state that implementations may return ENOTDIR or ELOOP and must verify
the actual behavior on each supported target.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: cbdc5378-1efa-4526-9f7b-74c7eb667e50
AGENTS.md
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
All three addressed in Version floors are per subcommand. Correct, and it matters more than a wording fix. Cache and state roots. Also correct. The sentence named config, cache, and state, then gave a procedure covering only config. It now says to redirect every root the code under test resolves, and names Errno guidance. This one I had genuinely overreached on. The bullet asserted Verified |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@euxaristia heads up, we have both been editing Worth saying the overlap is complementary rather than duplicate, and that yours is the better half of it. Your "Prove the test fails without the change" is the general rule. My bullet ends with one specific instance of it, that a value which is not split does not prove split-value redaction works. Your phrasing names the mechanism better than mine does: a test that never reaches the behavior it names, because an earlier guard rejects the input first, so it passes with and without the fix. That is exactly what bit me twice in two days. On #891 a junction-based test could not distinguish the fix from the bug, because So if yours lands first I am happy to trim my closing sentence to a pointer at your bullet rather than restating it. If mine lands first, ignore that and I will rebase. No objection to any of the four from me. The version-floor one is the sort of thing that only shows up on someone else's machine, which is the same reason the Windows path work in #891 and #897 needed a second pair of hands. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I checked the four version claims against upstream release notes rather than taking them on trust, and all four hold: git branch --show-current in 2.22, --end-of-options in the shared parser in 2.24, git rev-parse learning it in 2.30, and branch.autoSetupMerge=inherit in 2.35 (2.37 adds simple, a different value). --show-current is where you say it is, internal/agent/command_prefix.go:470. Nothing over 80 columns. Splitting the flag's floor from the subcommand's floor is the detail most people would have missed, and it is the part that would actually have caught #671.
One thing to fix, then this is good to go.
The bullet says the Unix lever is "the relevant XDG_* variable for each", and attaches the ignores-XDG caveat only to Windows. Go ignores XDG on darwin too. From os/file.go:
case "darwin", "ios": dir = Getenv("HOME") dir += "/Library/Application Support" // UserConfigDir dir += "/Library/Caches" // UserCacheDir default: // Unix dir = Getenv("XDG_CONFIG_HOME")
Only the default branch reads XDG. So a contributor who follows this bullet on a Mac exports XDG_CONFIG_HOME, believes the test is now hermetic, and still writes into the developer's real ~/Library/Application Support. That is the exact failure the bullet exists to prevent, and Smoke (macos-latest) gates every PR, so it is not a theoretical target.
Suggested replacement for that clause:
Redirect every root the code under test resolves, not just config.
os.UserConfigDirandos.UserCacheDirreadXDG_CONFIG_HOMEandXDG_CACHE_HOMEonly on Linux and the BSDs. On macOS they derive fromHOME, and on Windows from%AppData%and%LocalAppData%. Setting the XDG variables alone still leaves a macOS run writing to the real home, so setHOMEas well, or take the directory as a parameter.
Yes, declare one, and I do not think you need to leave the number to us.
Nothing in main needs a modern git. The invocations are worktree add --detach, rev-parse with --show-toplevel / --abbrev-ref / --short / --verify / --is-inside-work-tree / --git-common-dir, ls-remote --symref, bundle create --all, bundle verify, status --porcelain -z --untracked-files=all, clone --depth 1 --, apply --whitespace=nowarn, merge-base, diff --numstat -z, and rev-list --count --since=. All long-established plumbing. I am deliberately not naming a version for the newest of those, because I did not pin it to a release note and I am not going to hold you to a standard I skip myself.
The point stands without the number: our code is not the binding constraint today, so the floor is a decision about which hosts we support, not a fact to be discovered. Pick one, put it in CONTRIBUTING.md, and your rule becomes checkable immediately. The first time code would bind is if #671 lands using git rev-parse --end-of-options, and your own bullet already pins that at 2.30.
I have a competing change to this same section in #900, so read the request above as one reviewer's opinion and not as me clearing a lane for my own PR.
They also do not collide, which corrects something I said elsewhere. git merge-tree --write-tree across both heads returns a clean tree carrying all five bullets, so neither of us has to rebase on the other and merge order does not matter.
Not yours: CI is red here for the repo-wide vulncheck outage, not for anything in this change. #903 fixes that.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…tion. os.UserConfigDir and os.UserCacheDir derive from HOME on macOS and AppData/LocalAppData on Windows rather than reading XDG variables. Refs Twigpine#899
Changes addressed
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Re-reviewed at f04082a3. The macOS gap is closed, and closed properly: the bullet now says os.UserConfigDir and os.UserCacheDir read the XDG variables only on Linux and the BSDs, that macOS derives from HOME, and that setting XDG alone still leaves a macOS run writing to the real home. That is the whole of what I was blocking on.
Checked the rest rather than assuming: it still merges clean against main now that #900 has landed, the merged file carries all five bullets, and nothing exceeds 80 columns.
The four version claims I verified last round against upstream release notes are unchanged and still correct.
Good change. It is the kind of rule that only pays off months later when it stops a round trip nobody remembers needing.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
hello this is approved already but theres failing tests please address @euxaristia |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This PR only changes AGENTS.md so the test failures must be from main |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@euxaristia The two red checks here are both the same step: Your branch is 7 commits behind
A rebase or a merge of Worth saying this is not only you. Nine open PRs are still on |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
These classes come up across unrelated pull requests, are not caught by CI, and nothing in AGENTS.md currently prevents them, so each is rediscovered by a reviewer at the cost of a round trip. Host tool version floors is the clearest case. Zero shells out to git and the project declares no minimum version anywhere, so adding a modern flag raises that floor silently and an older host fails with a usage error instead of a clear message. Prove-the-test-fails addresses a recurring shape where the problem is not a missing test but one that passes either way, because an earlier guard rejects the input before the behavior under test runs. Hermetic tests covers isolation helpers applied to some tests but not others reaching the same storage. Platform error codes extends the existing platform-truth rule, which covers path canonicalization but not errno and NTSTATUS values. Advisory lint findings are deliberately not included: deadcode and lint-static both run with continue-on-error in ci.yml, and section 3 already requires fixing findings the change introduces. Refs Twigpine#898
Three corrections from review, two of them to claims that were too strong. Git version floors are per subcommand, not per flag. --end-of-options reached the shared parser in 2.24 but git rev-parse only accepted it from 2.30, so recording the flag's general debut would still let a caller ship something that fails on 2.24 through 2.29. The hermetic-tests bullet named config, cache, and state but gave a procedure covering only config. It now covers each root, including %LocalAppData% for the cache root, which os.UserCacheDir resolves without consulting XDG. The errno bullet asserted ENOTDIR on Linux and Darwin. Only Linux was actually measured; Darwin was assumed, in a bullet whose whole point is not to assume. It now says the call may report either code and both should be accepted, which is what the guidance was trying to teach. Refs Twigpine#898
…tion. os.UserConfigDir and os.UserCacheDir derive from HOME on macOS and AppData/LocalAppData on Windows rather than reading XDG variables. Refs Twigpine#899
f04082a to
185c746
Compare
|
@kevincodex1 seems ready to me? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.