Repository navigation
브리지 테스트의 소켓 경로를 Unix 길이 제한 안에 둡니다 - #356
Merged
Merged
Conversation
The device bridge binds its bootstrap socket two folders below the test's temporary folder, so a long TMPDIR, such as a verification runner's own folder under the macOS per-user temp, pushed the socket path past the roughly hundred bytes a Unix socket allows; the bind failed and the bridge ended before it was ready. On Unix the test now takes a short folder under /tmp, as the real-Herdr tests already do.
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.
Related: #335 (이 테스트를 들여온 PR),
agents/prd/three-column-panel/prd.md구현 PR의 verify를 막고 있던 실패Summary
hided의a_remote_bridge_answers_this_device_and_ends_with_its_channel테스트는 TMPDIR이 길면 항상 실패합니다.기기 브리지는 테스트 임시 폴더 아래
bridges/<tmp>/bootstrap.sock에 소켓을 묶는데, Unix 소켓 경로는 약 100바이트(macOS 104)까지만 됩니다.macOS 사용자 임시 폴더 아래에 검증 러너가 자기 폴더를 만들면 경로가 약 113바이트가 되어 bind가 실패하고, 브리지는
ready를 보내기 전에 끝나 테스트가Disconnected로 멈춥니다.이제 Unix에서는 이 테스트만
/tmp아래 짧은 폴더를 씁니다.hided/tests/real_herdr.rs가 이미 쓰는 방식과 같고, Windows는 기본 임시 폴더 그대로입니다.제품 코드는 바꾸지 않았습니다.
Review
HIDE_WORKSPACE_BRIDGE_DIR가 긴 기계가 있다면 별도 이슈로 다뤄야 합니다.hided/src/workspace_cli.rs- 테스트 하나의 임시 폴더만 바뀝니다.Evidence
env -i, 러너 HOME,TMPDIR=$(os.tmpdir)/sasu-suite-XXXXXX,CI=1)에서 수정 후 5회 연속 통과.hided/src/workspace_cli.rs:424에서Disconnected로 실패(대조 1회). 원래 코드는 이 환경에서 5회 모두 실패했습니다.CI=1,env -i만 바꿨을 때는 통과했습니다.bash scripts/verify-cargo.sh lint통과.verify-cargo.sh test는 로컬에서 돌리지 않았습니다. 바뀐 것은 테스트 하나이고 CI가 전체를 돌립니다.