Repository navigation
perf: start fixture agents concurrently - #1675
Merged
Merged
Conversation
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.
Summary
두 fixture 에이전트의 시작을 함께 진행해 초기화 대기를 줄입니다.
각 시작은 기존처럼 입력 준비가 끝나야 성공하며, 한쪽이 실패해도 다른 쪽 종료를 확인한 뒤 fixture를 정리합니다.
이번 릴리스 범위는 병렬 시작과 회귀 검사입니다.
item 1(b)의 등록/입력 준비 분리와 PR B는 1.0.1 이후로 보류했습니다.
추가 성능 측정과 측정만을 위한 CI 반복은 종료했습니다.
Review
web/e2e/herdr-fixture.ts- shell 사전 검사와 실패 정리를 보존하면서 시작 대기만 겹칩니다.web/e2e/herdr-fixture.spec.ts,fixture-worker-exit.spec.ts- 첫 입력·부분 실패와 실제 owner 종료 때의 CLI 정리 순서, 종료 거부 때 root 보존을 검사합니다.Evidence
fa329a2b7의 계획된 모든 lane과verify, Design contract가 통과했습니다.Linux 375개, Windows web 60개, macOS desktop 117개·기존 skip 12개, Windows desktop 19개 통과이며 최종 실패·flake·retry는 없습니다.
macOS desktop 117개 통과·기존 12개 skip, Windows desktop 19개 통과, Windows check도 통과했습니다.
실제 입력 assertion과 30초 실행 상한을 유지하고 CLI를 직접 호출하도록 수정했습니다.
기존 flaky로 분류하지 않습니다.
독립 검토에서 발견된 worker 종료 순서와 회귀 검사 정리를 수정했습니다.
fa329a2b7의 독립 정적 검토는 PASS이며, 동일 후보의 필수 CI가 모두 통과했습니다.로컬 native fixture 회귀 4개, fixture 파일 제한 타입 검사, lint·discovery와 pinned 계약 검사가 통과했습니다.
별도 전체 e2e TypeScript 검사는 기존 오류 때문에 실패했으며, 변경 파일 제한 검사의 통과를 전체 타입검사 통과로 주장하지 않습니다.
독립 리뷰어는 최종 SHA에서 두 P2가 해소됐다고 판정했습니다.
리뷰어는 runtime 검사를 실행하지 않았으며, 실행 증거는 author의 제한된 로컬 검사와 실제 PR CI입니다.
SIGKILL/OOM은 Node exit hook 보장 밖입니다.
Verification record
4881c71ef8575c43c0cbcce063455ab4e350c38c; first parallel candidate:9657b1891045b9be5bc23b06f86e184fce4db9af; stdout correction:dd264343c0fd79c26155e03ca3d57fc1a6771f7a; fixture ownership correction:d8446be6238834471be614a4014f6b2e7703e657; final recovery correction:fa329a2b7a681c264bebb484e147309730c7f921.SyntaxError: Unexpected end of JSON inputat fixture JSON parsing.The new partial-failure regression passed on both systems.
Corrected run 40205772294, attempt 1: required CI SUCCESS, Linux 371 passed + 1 flaky, Windows 58 passed, macOS desktop 117 passed / 12 existing skips, Windows desktop 19 passed.
The existing
plan-review.spec.ts:39test failed initially atcore.ywithTypeError: Cannot read properties of null (reading 'y'), then passed retry Gate pull requests with a verify workflow and add the contributor surface #1 (7.0s each); #1579 records the identical failure since PR fix: draw only the guide for an unnamed tab holding one agent #1578 before this change.Independent review rejected that candidate for one P2: pending CLI cleanup ran after server/root teardown on worker exit.
The final candidate owns pending CLI trees inside the fixture and synchronously confirms termination before shared-resource teardown.
Ownership-correction run 40207692618, attempt 1 was cancelled when the reviewed test-cleanup correction superseded it.
Final required run 40208605365, attempt 1: SUCCESS, every planned lane passed.
Linux 375 passed, Windows web 60 passed, macOS desktop 117 passed / 12 existing skips, Windows desktop 19 passed; no final-run failures, flakes or retries.
All four new regressions passed first attempt on Linux and Windows.
The previously flaky
plan-review.spec.ts:39passed first attempt in 6.8s on this head.CI checked merge
701582e74fd5763003b92ba05c99b91475e7be01against main12cdde5fe09f5ace92567c48f52e542708dc5f96.Since the measured exact baseline, main added one agent-reference-drop test and renamed one sidebar-menu test; that explains the final count of 375 instead of 374 and is outside this four-file diff.
Independent follow-up found that the new regression also needed confirmed CLI-group and server termination before deleting its roots; the final recovery correction reuses the fixture helper and checks actual pinned server-stop success.
Body-edit runs
40206041779,40206813894and40207837436were superseded/cancelled by the cleanup push; they are not passing validation or measurement samples.40125600864, attempt 1 is a nightly on
c216793eba46b3e9d4daef3a4d184823cbc3fa11, with unrelated failures outside its passing verify aggregate and one Linux flaky test; it is historical context, not an exact-base causal comparison.The earlier 323-test figure describes the historical duration table, not this baseline run.
The final cleanup fix adds two more owner-exit regressions, with no coverage removal.
Common test-attempt time was 4,395.451s baseline and 3,498.418s first candidate.
This is aggregate test time, not wall clock or a causal estimate from repeated samples.
Added regression attempts cost 13.7s on Linux and 17.6s on Windows, including both failed attempts of the new input probe.
Run creation to final update was 20:19 baseline versus 36:02 first candidate, including queue and unrelated full-run lanes in the baseline.
Sum of the eleven matched lane job durations was 172:01 versus 154:46 runner-minutes; build and policy jobs are excluded from that sum.
20261021.278.1in both runs.Node cache hits and Rust cache hits were present; cache contents, runner load and PR merge revisions are not controlled.
Windows check time is not attributed to fixture behavior.
No fixed startup-sleep replacement, assertion relaxation, retry/timeout change, test skip or shard-table change was made.
No additional measurement-only CI or repeat is planned under the release-priority instruction.
Run creation to final update: 19:36, including queue.
The source head is unchanged; the last PR-body check reuses these successful runtime lanes.
9e2af207e9aa8183d4aeca5fde9cc48e7909bb40cdbd7cf21608a6d3ea78075b.srcscope), lint and regression discovery: PASS.Final candidate fixture-specific TypeScript project: PASS, not a whole-e2e typecheck.
Native fixture regression run: 4 PASS (12.9s), using private pinned Herdr and Node only, with no browser, hided, Cargo or app packaging.
After the final test-cleanup edit, the two owner-exit cases reran: 2 PASS (5.0s).
An earlier local implementation draft failed those two new cases because
execFileignoresdetached; scoped types caught the invalid option too.The final code uses
spawnwith explicit 30-second timeout, 1 MiB per stream and private Unix groups; draft processes and roots were reclaimed.LC_ALL=Crerun: 14 PASS.Schema tests: 2 PASS.
Script discovery ran 673 tests, 21 normal platform skips, one locale failure closed by that focused rerun.
Two actual Cargo build tests were excluded locally under the resource restriction and left unchanged in the normal CI policy suite.
srconly.Deferred readiness files were checked separately before deferral and are not included in this PR.
Their stash/patch and the unpublished instrumentation commit remain local for later work.
Do: Stay as you are: no open pull request conflicts with it in code.dd264343c: FAIL, one P2 pending-CLI worker-exit ordering finding; fixed ind8446be62; regression cleanup follow-up fixed infa329a2b7, independent static review PASS on exact headfa329a2b7a681c264bebb484e147309730c7f921, both P2 findings resolved.The independent reviewer ran no runtime tests; final required CI passed on that same head.
Run artifacts remain local under
agents/runs/ci-fixture-readiness/and are never committed.