Repository navigation
test: start each agent through spawn and by a typed command in its own test - #2132
Merged
Merged
Conversation
…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.
This reverts commit e6c7a0d.
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: 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
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