Skip to content

Name how many servers the globe knows, and wait for that name in the server specs - #529

Merged
yansfil merged 2 commits into
mainfrom
test/server-picker-count
Oct 5, 2026
Merged

yansfil merged 2 commits into
mainfrom
test/server-picker-count

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Refs #433

Summary

server spec의 #433 allow 3개(web 2, desktop 1)를 없앱니다. globe를 계속 다시 눌러 picker가 원하는 server를 보일 때까지 기다리던 것을, globe의 접근성 이름이 server 수를 말하게 하고 그 이름을 한 번 기다린 뒤 한 번 누르는 것으로 바꿨습니다.

  • 제품 변경: Open server 버튼의 접근성 이름이 알려진 listener 수를 담습니다(Open server, 1 running, Open server, 2 running). 1개면 바로 page를 열고 2개 이상이면 picker를 여는 버튼이라, 스크린리더가 누르기 전에 어느 쪽인지 압니다. 수를 모를 때(원격 Workspace, 연결 없음, 아직 읽는 중이거나 실패한 discovery)는 0으로 말하지 않고 Open server 그대로입니다. 화면과 tooltip은 바뀌지 않습니다. en, ko, zh, ja 문구를 더했습니다.
  • docs/UI_BEHAVIOR.md의 globe 설명에 위 이름 규칙을 적었습니다.
  • RunningServers.test.tsx: 0, 1, 2개와 읽는 중일 때의 이름을 단정하는 test를 더했습니다.
  • web/e2e/server-session-search.spec.ts: Open server, 1 running을 기다리고 한 번 눌러 page tab이 열리는지, 다음 Open server, 2 running을 기다리고 한 번 눌러 picker에 2개가 있는지 봅니다. 재시도 안의 attempts 계수와 실패 시 debug 덤프를 없앴고, test 크기 baseline 항목도 지웠습니다.
  • desktop/e2e/server-session-search.spec.ts: 같은 방식으로 Open server, 2 running을 기다립니다.

Review

  • 판단해 주세요: 감독 답 (1)대로 test 전용 표시(data-server-count)가 아니라 접근성 이름에 수를 넣었습니다. 이름이 바뀌므로 getByRole("button", { name: "Open server" })처럼 정확한 이름으로 찾는 곳은 [data-open-server]로 바꿔야 합니다. 저장소 안에서는 RunningServers.test.tsx helper와 web/e2e/s6.spec.ts의 toolbar 순서 단정 둘이었습니다. s6는 순서와 아이콘만 보는 test라 globe 이름을 수가 있든 없든 맞게(/^Open server(, \d+ running)?$/) 바꿨습니다. 수 자체는 unit test가 단정합니다. desktop workspace-columns.spec.ts는 tooltip 문구만 보므로 그대로입니다.
  • 조심해서 볼 파일: web/src/RunningServers.tsx - unavailable이 참일 때만 수를 빼므로, discovery 상태가 늘면 그 상태가 unavailable에 드는지 같이 봐야 합니다.
  • 질문: 없음.

Evidence

  • 확인한 것: verify-web.sh web typecheck, web lint(test 크기 검사 포함), desktop lint, RunningServers.test.tsx 3개 통과. s6 수정 뒤 s6.spec.ts와 server-session-search.spec.ts를 이 branch의 build로 다시 돌려 통과(macOS).
  • 부하 반복 (macOS, yes 4개, 수정 전 spec과 수정 후 spec을 같은 build로 번갈아 10번씩, --retries=0): 수정 전 10/10, 수정 후 10/10. 수정 전도 흔들리지 않아 고친 위험은 읽기로 판단한 위험입니다(server 목록이 globe를 누른 뒤에 도착하면 picker나 바로 열기가 그때의 수로 정해짐).
  • 확인하지 못한 것: desktop spec은 로컬에서 돌리지 않았습니다. desktop e2e는 native 창을 앞으로 가져와 운영자의 창과 입력을 가로채므로 CI desktop lane 결과로만 봅니다(감독 답 (2)). 남은 e2e specs retry a whole interaction inside toPass or expect.poll #433 allow는 이 PR만 놓고 main 10에서 7입니다.

…server specs

The Open server button's accessible name now carries the count of known
listeners (Open server, 2 running), so a screen reader can tell a globe
that opens a page at once from one that opens the picker; while the count
is unknown the name stays Open server, and the tooltip does not change.
The web and desktop server specs wait for that name once and click once,
instead of clicking the globe until the picker listed what they wanted.
The globe's accessible name now adds how many servers are known, so the
s6 toolbar check matches the name with or without that count; the count
itself is asserted in RunningServers.test.tsx.
@yansfil
yansfil added this pull request to the merge queue Oct 5, 2026
yansfil added a commit that referenced this pull request Oct 5, 2026
… holds (#534)

Refs #433

## Summary

desktop e2e의 #433 allow 3개(`browser.spec.ts` 2, `close-policy.spec.ts`
1)를 없앱니다. 세 곳 모두 browser page가 keyboard를 쥘 때까지 app 활성화, 창 focus, page
focus를 되풀이했습니다. 이제 한 번 활성화하고, 창의 `focus` event를 기다린 뒤, page에 한 번 focus를
줍니다. 제품 코드는 바뀌지 않았습니다.

- `desktop/e2e/fixture.ts` `focusPage(app, { url } | { title })`: macOS는
app이 활성화된 뒤에야 창을 key window로 만들고, 그때 Electron이 shell의 focus를 되돌립니다. 그
활성화가 끝나기 전에 page에 준 focus는 잠시 뒤 shell로 돌아갑니다. 그래서 창이 아직 key가 아니면 `focus`
event를 기다리고(10초 한도, 넘으면 이유와 함께 실패), 그 뒤 shell, 그다음 page에 focus를 줍니다.
page가 keyboard를 쥐지 못하면 그 자리에서 실패합니다.
- `browser.spec.ts` area cycle: `focusPage` 다음, page가 keyboard를 쥐고 있고
shell이 그 page를 받아들였다는 상태(`holds`와 `admitted`)를 행동 없이 기다립니다. 이전에는 둘을
250ms 간격으로 확인하며 focus를 되풀이했습니다.
- `browser.spec.ts` zoom, `close-policy.spec.ts`: `focusPage` 한 번.
close-policy는 page title이 `Close page`가 되기를(page가 load됨) 먼저 기다립니다.
- `docs/BUILD.md`: `@needs-focus` spec이 page에 keyboard를 줄 때 `focusPage`를
쓴다고 적었습니다.

## Review

- **판단해 주세요**: 창이 이미 key window이면 `focus` event를 기다리지 않습니다. key window는
app이 활성일 때만 될 수 있으므로, 그때는 기다릴 활성화가 없다고 봤습니다.
- **조심해서 볼 파일**: `desktop/e2e/fixture.ts` - main process 안에서 `focus`
event를 기다리는 Promise에 10초 한도를 두었습니다. 기다림의 상한이고 sleep이 아닙니다.
- **질문**: 없음.

## Evidence

- **확인한 것**: `verify-web.sh desktop typecheck`, `desktop lint`(test 크기
검사 포함) 통과. `#433` 표시는 desktop e2e에 남지 않습니다.
- **확인하지 못한 것**: 이 세 test는 로컬에서 돌리지 않았습니다. `@needs-focus` test는 app을 앞으로
가져와 운영자의 창과 keyboard를 가로채므로, macOS runner의 CI desktop e2e lane(전체 suite를
돌림) 결과로만 확인합니다. 그래서 부하 반복 결과도 없습니다. 고친 위험은 읽기로 판단한 위험입니다(활성화가 끝나기 전 page
focus가 shell로 돌아가는 경합을 재시도가 가림).
- 이 PR, #529, #531이 들어가면 main의 `#433` allow는 0입니다. overview의 hover card
하나는 #531에서 고유 이유가 적힌 예외로 남습니다.
@yansfil
yansfil merged commit e89466b into main Oct 5, 2026
27 checks passed
@yansfil
yansfil deleted the test/server-picker-count branch October 5, 2026 16:47
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 9, 2026
…ore (with-hide#2149)

Closes with-hide/hide-private#561
Closes with-hide/hide-private#495
Closes with-hide/hide-private#564
Closes with-hide/hide-private#605

## Summary

e2e 픽스처가 두 번째 에이전트를 너무 일찍 시작해서, 코어가 "다른 시작이 아직 진행 중"이라며 거절하고 픽스처는 30초를
기다리다 실패했습니다.
코어는 시작 하나가 끝나기 전에는 새 시작을 받지 않는데, 첫 에이전트의 행은 그 시작이 끝나기 전에 먼저 보입니다.
이제 테스트는 행이 아니라 코어가 그 시작에 준 답(시작 패널이 읽는 것과 같은 영수증, `task_operation`)을
기다렸다가 다음 시작을 보냅니다. 거절되면 30초를 기다리지 않고 코어의 이유로 바로 실패합니다.

화면 변경 없음: 테스트 코드와 문서만 바뀝니다.

## Review

- **조심해서 볼 파일**: `web/e2e/daemon-actions.ts` `startAgentInCheckout` -
코어의 task slot 규칙(`herdr-core/src/runtime/session.rs:3994-4003`)을 그대로
읽는지, `started` 외의 답은 모두 실패로 끝나는지.
- **조심해서 볼 파일**: `web/e2e/engine-fixture.ts` - 첫 시작이 끝난 뒤에야 두 번째 시작(또는
family의 spawn)이 나갑니다. 기다림은 코어 신호뿐이고 timeout·sleep·retry는 늘리지 않았습니다.
- **원인이 다른 것**: with-hide#444 with-hide#445 with-hide#459 with-hide#479 with-hide#496 은 픽스처가 아니라 spec 안의 기다림에서 실패하고
로그에 거절이 없어 이 PR에서 다루지 않습니다.
- **Herdr 레인에서만 난 것**: with-hide#260 with-hide#489 with-hide#502 with-hide#510 with-hide#511 with-hide#519 with-hide#533 은 `*-herdr-*`
레인에서만 났고 그 레인은 #2069로 지워졌습니다. #2069와 아래 반복 run을 적은 댓글로 닫습니다.
- **열어 두는 것**: with-hide#490 with-hide#492 with-hide#523 with-hide#529 with-hide#532(`agent_pane_required`)는 이 PR이
끝내지 않습니다. 원인은 with-hide/hide-private#630에서 따로 다룹니다.

## Evidence

- **확인한 것**: own engine으로 바뀐 뒤 "second fixture agent" 실패 6건 중 5건(#561
x2, with-hide#495, with-hide#564, with-hide#605; Linux·Windows)의 setup snapshot과 hided 로그를 봤습니다. 모두
두 번째 시작의 request id로 `task_operation.busy` 거절이 남아 있습니다. 나머지 1건(#561, run
42076071271)은 로그를 받지 않았고 오류 줄만 같습니다.
- **확인한 것**: 실패 로그 순서는 tab.create 완료 -> busy 거절 -> 첫 시작의
`agent.started`, 통과한 실행은 tab.create 몇 ms 뒤 `agent.started` -> 두 번째
시작입니다.
- **확인한 것**: `web`·`desktop` typecheck, lint(e2e 크기 검사 포함) 통과.
- **확인한 것**: a79a97b, run 42202678411의 Linux 전체 e2e(6 shard)와 Windows
`@platform` e2e를 3번 돌렸습니다. 닫는 11개 제목은 매번 통과했고 재시도도 없었습니다.
- attempt 1: Linux 6/6, Windows 1/1 통과. 재시도 후 통과: `desk-lane` "Desk is
off on a new install"(Linux 4/6), with-hide#444 close-subtree(Linux 6/6)
  - attempt 2: Linux 6/6, Windows 1/1 통과, 재시도 없음
- attempt 3: Linux 6/6, Windows 1/1 통과. 재시도 후 통과: `desk-lane` 같은
테스트(Linux 4/6)
- **범위 밖**: #444가 attempt 1에서 재시도 후 통과한 것과 `desk-lane`이 두 번 재시도 후 통과한 것은
픽스처 원인이 아닙니다. 이 노드 범위 밖이고 따로 묶여 있습니다.
- **확인하지 못한 것**: 로컬 e2e는 돌리지 않았습니다(Rust debug 빌드 디스크 부족). macOS 웹 e2e는
PR CI에 없어 반복하지 않았고, 이 묶음의 21개 이슈 중 macOS에서 난 것은 없습니다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant