Repository navigation
Run the Rust suite on Linux and add a fourth web end-to-end shard - #285
Merged
Merged
Conversation
…ify read events in the Git watcher
yansfil
force-pushed
the
ci/rust-linux-four-shards
branch
from
October 1, 2026 12:12
e426c48 to
49b1ea2
Compare
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.
Refs with-hide/hide-private#104
Summary
조직의 macOS 동시 실행 한도는 5개인데,
verify가 매번 정확히 5개(rust, web e2e 3샤드, desktop e2e)를 점유해서 다른 PR이 슬롯을 기다립니다.Rust 워크스페이스 lane을
ubuntu-latest로 옮기고, 비워진 macOS 슬롯에 web e2e 4번째 샤드를 얹었습니다(web e2e N/4,--shard=N/4).이전 주기의 기준값: run 중앙값 14.2분(p90 25), web 샤드 10-13분(테스트 8-11분), rust 5.5분.
Linux 빌드로 처음 돌려 보니 실제 이식성 결함 둘이 드러나 별도 커밋으로 고쳤습니다.
hide-host/src/save.rs: cap-std는 Linux에서 디렉터리를O_PATH로 여는데, 커널은 이 fd의flock과fsync에EBADF를 답합니다. 그래서 Linux 장치에서는 모든 파일 저장이 "폴더를 잠글 수 없음"으로 거절되고, 폴더 fsync는 조용히 무시되었습니다. 잠금과 flush를openat(".", O_RDONLY)로 새로 연 fd로 하도록 고쳤습니다.herdr-core/src/worktrees.rs: inotify는 읽기도 Access 이벤트로 알리는데, Git 감시자가 이를 변경으로 세어git status가 다음git status를 부르는 순환이 생겼습니다. Access 이벤트는 무시합니다.Review
a74f75c7을 따로 빼도 됩니다. Linux lane은 이 둘 없이는 통과하지 않습니다.hide-host/src/save.rs- 저장 경로의 잠금 fd가 바뀜(새 fd를 소유하고 drop 시 닫음, 서로 다른 open file description이라 같은 폴더 저장끼리 여전히 배타적).herdr-core/src/worktrees.rs- 감시자 콜백이 Access 이벤트를 버림. Modify, Create, Name 이벤트는 그대로라 git의 lock-then-rename 쓰기는 여전히 잡힘..github/workflows/pr.yml- runs-on, rust job 주석, 샤드 matrix와--shard인자만 바꿨습니다.hide-ai의 libproc 경로,hide-kit의 hcoord 설치)를 CI에서 계속 보고 싶다면 desktop e2e 쪽에 좁은 macOS 단계를 따로 두는 방안이 있습니다. 필요한지 정해 주세요.Evidence
verify전체 초록(run 36853472234). rust workspace(Linux)는 fmt, clippy-D warnings,cargo test --workspace가 콜드 캐시로 5.2분입니다(기준 5.5분은 macOS). main의 첫 실행이 Linux 캐시를 저장하면 줄어듭니다.documents,view_areas,worktrees,save테스트와 lint가 통과함을 로컬에서 확인했습니다.overview.spec.ts:164)로 한 번 실패해 재실행했습니다. 그래서 이 run의 벽시계는 개선의 척도가 아닙니다. macOS 슬롯 수는 여전히 5개(web 4 + desktop 1)이고, 바뀐 것은 그 5개가 모두 e2e 작업이라 샤드당 시간이 줄었다는 점입니다.hide-ai/tests/process_ownership.rs의 libproc 기반 두 테스트는 원래cfg(target_os = "macos")였고 이제 CI에서 돌지 않습니다.hide-kit의 hcoord 설치 테스트 3개(without_a_runtime_for_hcoord...,the_kit_runs_nothing_from_a_folder...,removing_the_kit_takes_only_hides_parts...)를 macOS로 한정했습니다. hcoord는 launchd로만 데몬을 유지해 Linux에서는 설치하지 않는 것이 의도된 동작이기 때문입니다.a_first_apply_installs...는 Linux에서 hcoord가 Absent이고.hcoord가 없음을 단언하도록 바꿔 나머지 부분의 Linux 커버리지를 유지했습니다. 단언을 약하게 만든 곳은 없습니다.