Repository navigation
fix: stop hiding the cause of native desktop fixture failures - #2221
Merged
Merged
Conversation
… an unhandled rejection The host's background requests (the Hide AI wake after attaching, the browser route release) chained a catch onto fetch's result. The first fetch in a process loads its HTTP client, and a load that fails throws from the call itself, so the catch never saw it: the throw left sendWake inside the discovery that attached the window and surfaced as an unhandled rejection, which the fixture's host log check turned into a failed handoff test. Both requests now go through inBackground, which runs the call inside the guard and ends every failure in the caller's log line.
…ts fixture steps need Six native specs threw one AggregateError over their body and their teardown. The flaky report and the history classifier read the error's first line and its located expect diagnostic, both inside a nested error, so four issues named no cause. finishNative throws the first failure itself and appends each failed teardown step by name. The causes the job logs showed, each a step that went on before the core had acted: - the family fixture spawned its child once the parent's row named its session, before the delivery observation that lets the pane call spawn existed (agent_pane_required); it now polls the read-only agent show. - splitPane returned on the pane the core drew ahead of the engine, so a close sent next ran beside the split and was never answered; it now waits for the tab's geometry line to empty. - the task list spec read the parent's second line after the page's own 5 s limit; it now waits for the label line on the parent's raised ask and dumps both rows when that gives up.
…d register the teardown unit test
…de from the answer, and pair the geometry phases with the core's
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.
Closes with-hide/hide-private#291
Refs with-hide/hide-private#130 (남은 증상이 있어 열어 둠), Refs with-hide/hide-private#537 (제품 경합은 with-hide/hide-private#722), #515는 코어 라벨 적용 문제로 따로 남김 (with-hide/hide-private#515)
Summary
데스크톱 e2e 여섯 개가 실패하면
AggregateError: ... fixture or teardown failed한 줄만 남아서, 이슈 네 개가 몇 주 동안 원인을 적지 못했습니다.실제 원인은 job 로그 안쪽에 있었고 서로 달랐습니다.
close the app,stop the stack)과 함께 그 아래에 붙입니다. 이슈에 원인이 바로 적힙니다.fetch를 쓸 때 로드가 던지면 처리되지 않은 거절이 되어 테스트가 실패했습니다. 이제 로그 한 줄로만 남습니다.agent_pane_required3개를 고쳤습니다. 부모 에이전트가 자식을 띄우기 전에 코어가 부모를 호출자로 알아볼 때까지 기다립니다. 나머지 6개(macOS 4, Windows 1 포함)는 다른 증상이라 이슈를 열어 둡니다.Review
session-workflow가 4번 실패했고, 실패마다 자식 행의 문구(record_summary)는 있는데 부모의 raised askwhat이 null이며 30초가 지나도 바뀌지 않습니다(지연이 아니라 고정된 상태). 코어의 라벨 적용(hide-core/src/labels/overlay.rs,label.proves)을 의심하지만 확정하지 못했습니다. 제품 수정은 별도 PR로 가야 합니다.hide-core/src/runtime/operations.rs의queue_pane_close는several을 엔진이 확정한 레이아웃으로 정해, 분할이 확정되기 전에 원래 pane을 닫으면 대기열을 건너뜀)은 이 PR에서 바꾸지 않았고 with-hide/hide-private#722에서 다룹니다.desktop/src/main/host.ts- 호스트의 failure path입니다. 요청을inBackground로 보내도 로그 이름과 필드는 그대로입니다.web/e2e/daemon-actions.ts-splitPane은 web e2e 세 스펙과 데스크톱 세 스펙이 함께 씁니다. 탭의 지오메트리 작업이 비는 것을 기다립니다.web/e2e/engine-fixture.ts- 가족 픽스처가hide agent show here를 폴링합니다. 읽기 전용 호출이고 스폰은 한 번만 보냅니다.Evidence
Stopped at a permission request, Make ⌘K a navigation palette for agents, projects, issues and pull requests #291markResourceTiming, Flaky test: the Explorer creates, renames, moves and trashes entries #537 분할 확정 전에 나간 닫기입니다. #130은 기록된 run 9개 중 3개가agent_pane_required(Windows 2, macOS 1)이고, macOS 4개는session-work-ledger.spec.ts:44hover()다음 클릭이 "element is not visible"로 시간 초과, Windows 1개는launchShellrelaunch 시간 초과입니다. 뒤의 두 증상은 이 PR이 고치지 않았습니다.finishNative5개,inBackground3개입니다.--repeat-each 10 --retries 0, 스펙 7개)을 돌렸습니다. 6개 스펙(agent-handoff, agent-spawn, session-work-ledger, usage, usage-history, restoration)은 10번 모두 통과했습니다.session-workflow는 6/10이고 실패 4번은 모두 #515의 증상입니다.Verification record
a558c20dd, head: 이 PR의 headbash scripts/verify-web.sh desktop typecheck|lint|test,web typecheck|lint통과python3 scripts/merge-order.py --branch fix/flaky-desktop-fixture: 겹치는 열린 PR 없음, Stay as you are