Repository navigation
test(cli): keep the socket-leaf row runnable under a long TMPDIR - #1257
Merged
Merged
Conversation
A long TMPDIR pushed tmp_path/lib/agent.sock past sun_path's 108 bytes, so the row died in bind with AF_UNIX path too long on such hosts. Relocate the row under a short /tmp root when the fixture path is long; the socket still sits at lib/agent.sock, and the row keeps executing on a short tmp (#1245).
Collaborator
Author
|
State change: this PR goes ready now (was draft until this comment). Reason: it is green at Head and base are unchanged by this comment; nothing in the body or the code moves. |
HugoXK
marked this pull request as ready for review
November 24, 2026 08:52
Collaborator
Author
|
@Birfy: review request for |
Collaborator
|
Review (Birfy) Tip SHA: 5909598
|
This was referenced Nov 24, 2026
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.
Fixes #1245
Tip SHA: 5909598
Red at
22ea7528915a761c579dc4c7f47d8444c159cd8a(main), verbatim:The bound leaf was 132 bytes in that run;
sun_pathis capped at 108.What changed: only
tests/test_apply_non_regular_leaf.py(plus onefragment): when the fixture's socket path would exceed 100 bytes, the row
builds its run under
tempfile.mkdtemp(dir="/tmp")and removes it infinally; the socket still sits atlib/agent.sock, so the product isexercised exactly as before. No product code, no other row touched.
Ran at the tip:
TMPDIR=$PWD/tmp/qa1245-long-dir python3 -m pytest tests/test_apply_non_regular_leaf.py -q-> 8 passedTMPDIR=/tmp python3 -m pytest tests/test_apply_non_regular_leaf.py -q-> 8 passed-k socket -rs-> 1 passed, 7 deselected, no skippython3 -m tools.changelog_fragments check-> 34 OKNot run: the full suite; this PR changes one test file and no product code.
No UI surface.
Bot: AgentDescent Dev-3