Repository navigation
Split the s2 journey into one test per contract - #478
Merged
Merged
Conversation
Each test starts from its own stack, so a contract that fails on one platform no longer takes the assertions after it down, and the s2 entry leaves the test size baseline.
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
…ves (#480) Related: #478 (base branch), #475 ## Summary Contract 7 of the split s2 spec ran the system `less`, which cannot say what reached it, and on the Windows retry (#475) the wheel and `q` had no visible effect on it. This replaces `less` with a small pager fixture (`web/e2e/alt-screen-program.ts`, a `fixtureProgram` Node script) that enters the alternate screen, logs every byte it reads, and leaves on `q`. The test now asserts the exact bytes the PTY got: one cursor key per wheel batch (down, then up) and `q`, nothing else, and that the shell prompt returns after the alternate screen closes. ## Review - **판단해 주세요**: the expected bytes `ESC[B ESC[A q` are what Herdr 0.9.1 sends on macOS for a wheel over a non-mouse alternate screen, one key per batch whatever its lines (15, 150 and 1 lines all gave one key); if Windows differs, the failure prints the actual bytes. - **조심해서 볼 파일**: `web/e2e/s2.spec.ts` contract 7 only - every earlier assertion is kept (two `terminal_scroll`, direction, no key event for the wheel, prompt returns); new ones are added. - **질문**: #475 stays open until a Windows run shows whether `q` reached the PTY. ## Evidence - **확인한 것**: contract 7 passed 3 of 3 on macOS against the #478 build; the shell-pane wheel test still passes; web typecheck and lint pass; the fixture ran under a pty with `ESC[B ESC[A q` and logged them verbatim. - **확인하지 못한 것**: Windows (the program runs through the `fixtureProgram` launcher there); CI is the only check.
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
web/e2e/s2.spec.ts의 test 하나(440줄, expect 132개)가 checkout, 탭, split, wheel, 클릭, 선택, zoom, 메뉴, sheet, 재연결을 이어 붙여 검사했습니다.Windows에서 두 시도가 모두 실패하면(#424 zoom 지연, #475 less 뒤 프롬프트) 그 뒤의 계약 검사도 함께 사라지고 Windows e2e를 타는 PR이 전부 막혔습니다.
계약마다 자기 stack(
startFlow)에서 시작하는 test 10개로 나눴습니다. 단언은 옮기기만 했고, 앞 단계 상태에 기대던 곳만 setup으로 바꿨습니다.#475(less)와 #424(zoom)는 각자의 test로 떨어져 나갔고 고치지 않았습니다.
Review
web/e2e/s2.spec.ts- 옮긴 단언 목록(아래)과 setup으로 바뀐 곳,web/e2e/test-size-baseline.json- s2 항목만 삭제.의도한 변경: 탭 전환 test의 탭 수, 클릭 test 끝의 shell 재포커스와
focus_pane == +2단언(드래그 단계에서 옮김), less test의terminal_scroll이 1부터 셈, 각 test 앞에 agent 준비(claude) 대기가 setup으로 들어감.Evidence
web typecheck,web lint(크기 검사 포함)104c2eeb의 main run 37271288128): s2만 본 시간이고 두 run 모두 재시도 없이 통과했습니다.s2.spec.ts:55한 줄4.5배, 늘어난 시간은 Linux +84초, macOS +94초, Windows +100초입니다. test당 약 810초의 stack 시작이 대부분입니다.startFlow(Herdr + hided + page) 한 번setup이 test당 약 8.1초로 시간의 대부분입니다. 합치면 격리가 줄어서 #475, #424와 서로 다른 표면만 따로 두고 나머지 작은 계약 쌍은 한 test로 묶었습니다.
Verification record
splitShell이 Herdr의 focus 확인(pane current)까지 기다리고 고정 1초settledFocus4곳을 뺐고, 탭 close 뒤 첫 탭의 pane 2개 단언을 되살렸습니다.beta와 탭 두 개를 만듭니다.@platformlane이 stack 10개를 띄우므로 Windows lane 시간을 확인하세요.verify-web.sh web lint(크기 검사 포함),web typecheck,e2e/s2.spec.ts10/10.