Skip to content

perf: start fixture agents concurrently - #1675

Merged
yansfil merged 4 commits into
mainfrom
perf/ci-fixture-readiness
Oct 25, 2026
Merged

yansfil merged 4 commits into
mainfrom
perf/ci-fixture-readiness

Conversation

@yansfil

@yansfil yansfil commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

두 fixture 에이전트의 시작을 함께 진행해 초기화 대기를 줄입니다.
각 시작은 기존처럼 입력 준비가 끝나야 성공하며, 한쪽이 실패해도 다른 쪽 종료를 확인한 뒤 fixture를 정리합니다.
이번 릴리스 범위는 병렬 시작과 회귀 검사입니다.
item 1(b)의 등록/입력 준비 분리와 PR B는 1.0.1 이후로 보류했습니다.
추가 성능 측정과 측정만을 위한 CI 반복은 종료했습니다.

Review

  • 판단해 주세요: 부분 실패, CLI timeout, worker 종료 때의 프로세스 소유권과 Windows 정리 경계를 확인해 주세요.
  • 조심해서 볼 파일: web/e2e/herdr-fixture.ts - shell 사전 검사와 실패 정리를 보존하면서 시작 대기만 겹칩니다.
  • 조심해서 볼 파일: web/e2e/herdr-fixture.spec.ts, fixture-worker-exit.spec.ts - 첫 입력·부분 실패와 실제 owner 종료 때의 CLI 정리 순서, 종료 거부 때 root 보존을 검사합니다.
  • 비용 검토: 동시 CLI 시작은 두 개이며 각각 30초 상한과 worker 종료 정리를 갖습니다.

Evidence

  • 최종 확인: fa329a2b7의 계획된 모든 lane과 verify, Design contract가 통과했습니다.
    Linux 375개, Windows web 60개, macOS desktop 117개·기존 skip 12개, Windows desktop 19개 통과이며 최종 실패·flake·retry는 없습니다.
  • 최초 후보: 최초 CI에서 기존 Linux 370개와 Windows 56개는 모두 통과했습니다.
    macOS desktop 117개 통과·기존 12개 skip, Windows desktop 19개 통과, Windows check도 통과했습니다.
  • 수정한 실패: 신규 입력 검사가 CLI의 빈 stdout을 JSON으로 읽어 Linux와 Windows에서 최초·재시도 모두 실패했습니다.
    실제 입력 assertion과 30초 실행 상한을 유지하고 CLI를 직접 호출하도록 수정했습니다.
    기존 flaky로 분류하지 않습니다.
  • 수정 검증: 빈 stdout 수정 후보는 필수 CI 통과, 기존 flake with-hide/hide-private#147는 최초 실패 후 retry 통과했습니다.
    독립 검토에서 발견된 worker 종료 순서와 회귀 검사 정리를 수정했습니다.
    fa329a2b7의 독립 정적 검토는 PASS이며, 동일 후보의 필수 CI가 모두 통과했습니다.
    로컬 native fixture 회귀 4개, fixture 파일 제한 타입 검사, lint·discovery와 pinned 계약 검사가 통과했습니다.
  • 확인하지 못한 것: 디스크 제한으로 로컬 전체 e2e, Cargo 빌드, 패키징을 실행하지 않았습니다.
    별도 전체 e2e TypeScript 검사는 기존 오류 때문에 실패했으며, 변경 파일 제한 검사의 통과를 전체 타입검사 통과로 주장하지 않습니다.
    독립 리뷰어는 최종 SHA에서 두 P2가 해소됐다고 판정했습니다.
    리뷰어는 runtime 검사를 실행하지 않았으며, 실행 증거는 author의 제한된 로컬 검사와 실제 PR CI입니다.
    SIGKILL/OOM은 Node exit hook 보장 밖입니다.
Verification record
  • Base: 4881c71ef8575c43c0cbcce063455ab4e350c38c; first parallel candidate: 9657b1891045b9be5bc23b06f86e184fce4db9af; stdout correction: dd264343c0fd79c26155e03ca3d57fc1a6771f7a; fixture ownership correction: d8446be6238834471be614a4014f6b2e7703e657; final recovery correction: fa329a2b7a681c264bebb484e147309730c7f921.
  • First run 40202931637, attempt 1: FAILED only on the new first-input probe in Linux shard 4 and Windows; each failed both initial and retry attempts with SyntaxError: Unexpected end of JSON input at 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:39 test failed initially at core.y with TypeError: 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:39 passed first attempt in 6.8s on this head.
    CI checked merge 701582e74fd5763003b92ba05c99b91475e7be01 against main 12cdde5fe09f5ace92567c48f52e542708dc5f96.
    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, 40206813894 and 40207837436 were superseded/cancelled by the cleanup push; they are not passing validation or measurement samples.
  • Baseline 40196397672, attempt 1 is a successful push on the exact base.
    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.
  • Exact-base Linux test-name comparison: 370 common tests, zero removed, two new regressions in the measured first candidate.
    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.
  • Existing-measurement job / e2e step durations, baseline → first candidate:
Lane Baseline job / e2e First candidate job / e2e
Linux 1/6 15:20 / 12:35 13:13 / 10:24
Linux 2/6 16:50 / 13:55 10:29 / 8:15
Linux 3/6 14:41 / 12:45 12:54 / 10:01
Linux 4/6 13:25 / 10:58 12:33 / 9:28 (probe failed)
Linux 5/6 14:02 / 11:37 14:53 / 11:31
Linux 6/6 15:14 / 12:21 13:04 / 10:03
Windows web 19:50 / 12:40 17:21 / 9:51 (probe failed)
Windows check 17:15 / - 16:09 / -
macOS desktop 1/2 17:04 / 10:29 17:35 / 10:26
macOS desktop 2/2 18:07 / 11:16 16:22 / 10:00
Windows desktop 10:13 / 3:40 10:13 / 3:11
  • Queue: baseline measured jobs 1–3s; first candidate Linux/Windows 1–2s, macOS desktop 1/2 17:59 and 2/2 1:55.
    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.
  • Hosted images were Ubuntu 26.04, macOS 15 arm64 and Windows 2025 VS2026; Windows image version was 20261021.278.1 in 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.
  • Final-head validation job / e2e step durations (not another controlled performance sample):
Lane Job E2E Queue
windows check 17:58 - 2s
windows desktop / desktop e2e windows 1/1 10:23 3:36 2s
desktop e2e / desktop e2e macos 2/2 17:12 9:16 2s
desktop e2e / desktop e2e macos 1/2 16:18 9:22 2s
windows e2e / web e2e windows 1/1 17:02 10:02 2s
web e2e / web e2e linux 3/6 12:35 9:48 1s
web e2e / web e2e linux 4/6 12:12 9:21 1s
web e2e / web e2e linux 5/6 13:09 10:48 1s
web e2e / web e2e linux 2/6 11:43 9:17 2s
web e2e / web e2e linux 1/6 13:16 10:29 1s
web e2e / web e2e linux 6/6 12:28 9:53 1s

Run creation to final update: 19:36, including queue.
The source head is unchanged; the last PR-body check reuses these successful runtime lanes.

  • Pinned contract: Herdr 0.9.5, protocol 22, schema SHA256 9e2af207e9aa8183d4aeca5fde9cc48e7909bb40cdbd7cf21608a6d3ea78075b.
  • Local: standard web typecheck (src scope), 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 execFile ignores detached; scoped types caught the invalid option too.
    The final code uses spawn with explicit 30-second timeout, 1 MiB per stream and private Unix groups; draft processes and roots were reclaimed.
  • Local: entrypoint script tests initially failed because the inherited unsupported locale injected stderr; LC_ALL=C rerun: 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.
  • Separate e2e TypeScript checking exposed pre-existing errors because the normal web typecheck includes src only.
    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.
  • First-push merge-order result: Do: Stay as you are: no open pull request conflicts with it in code.
  • Independent review at dd264343c: FAIL, one P2 pending-CLI worker-exit ordering finding; fixed in d8446be62; regression cleanup follow-up fixed in fa329a2b7, independent static review PASS on exact head fa329a2b7a681c264bebb484e147309730c7f921, 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.

@yansfil
yansfil merged commit ff9a7be into main Oct 25, 2026
63 checks passed
@yansfil
yansfil deleted the perf/ci-fixture-readiness branch October 25, 2026 16:16
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