Skip to content

test: start each agent through spawn and by a typed command in its own test - #2132

Merged
yansfil merged 4 commits into
mainfrom
fix/agent-start-e2e-split
Nov 6, 2026
Merged

yansfil merged 4 commits into
mainfrom
fix/agent-start-e2e-split

Conversation

@yansfil

@yansfil yansfil commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Related: with-hide/hide-private#516, with-hide/hide-private#522, with-hide/hide-private#588

Summary

에이전트 시작 e2e 하나가 시작을 네 번(픽스처 부모, 부모가 띄운 자식, spawn 시작, 친 명령 시작) 연달아 하면서 30초 한 번의 예산을 나눠 썼습니다.
부하 걸린 Windows 러너에서 패널 하나 띄우는 데 0.5-2.4초씩 걸리면 마지막 단계 전에 시간이 바닥나 가끔 실패했습니다(경쟁이 아니라 단계 수 문제).
이제 spawn 시작과 친 명령 시작을 에이전트마다 따로 된 시험으로 나누고, 둘 다 자식 없이 부모 에이전트 하나만 띄우는 픽스처(startCaller)에서 돌립니다. 시험 하나가 시작 두 번만 합니다.
대기 시간은 늘리지 않았고, 각 대기는 지금처럼 스냅숏의 상태(에이전트 종류, idle)를 기다립니다.

스크린샷 없음: 화면을 바꾸지 않는 e2e 시험과 픽스처 변경입니다.

Review

  • 판단해 주세요: 시험이 11개에서 22개(Windows npm 8개 포함)가 되어 스택 시작이 늘어납니다. 대신 시험 하나의 시작 수가 4에서 2로 줄어 한 경로의 흔들림이 다른 경로를 가리지 않습니다(docs/TESTING.md, Keep the size of a test bounded).
  • 조심해서 볼 파일: web/e2e/engine-fixture.ts - family/agents 픽스처의 첫 에이전트 시작과 휴식 대기를 함수로 뺐습니다. 기존 픽스처의 동작은 그대로여야 합니다.
  • 조심해서 볼 파일: web/e2e/agent-start-platform.spec.ts - Windows npm 시험 4개도 같은 방식으로 spawn/친 명령 두 시험씩(8개)으로 나눴습니다. 이 8개는 20회 반복 run에 들어가지 않았습니다.

Evidence

Verification record

…n test

One test started a fixture parent, the parent's spawned child, a spawned
agent and a typed agent, all against one 30 s budget. On a loaded Windows
runner, where each pane holder took 0.5 to 2.4 s to start, the four starts
used the budget up before the last step. Each start path is now its own test
on a fixture of the family's parent alone (startCaller), so each pays for
two starts.
@yansfil
yansfil added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit b78948d Nov 6, 2026
34 checks passed
@yansfil
yansfil deleted the fix/agent-start-e2e-split branch November 6, 2026 00:18
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