Repository navigation
Keep the private daemon's log for a failed desktop e2e attempt - #633
Merged
Merged
Conversation
A failed desktop e2e attempt left only the host log, and the daemon's own core log, with the order of its focus, tab and pane records, was removed with the run's folders. The fixture now copies the end of each private daemon's Logs/core.jsonl (at most 256 KiB, whole records) into the attempt's test-results folder, with the run's folders, the repository, the home and the temporary folder written as placeholders. Refs #629
This was referenced Oct 6, 2026
yansfil
added a commit
that referenced
this pull request
Oct 6, 2026
Refs #629 Related: #633 ## Summary #633(desktop e2e가 실패한 시도의 private hided log를 남김)이 실제로는 아무것도 남기지 못하던 것을 고칩니다. 진단만 바뀌고 제품과 test 동작은 그대로입니다. - 원인: #633은 test fixture의 teardown에서 log를 복사했습니다. 그런데 spec들은 자기 `afterEach`에서 `run.cleanup()`을 먼저 부르고(desktop spec 33곳), 그 cleanup이 run 폴더를 지워 teardown에는 읽을 log가 없었습니다. - 고침: `isolate()`의 cleanup이 `hide stop` 뒤, 폴더를 지우기 전에 그 run의 daemon log 끝을 읽어 둡니다. test fixture는 결과가 확정된 뒤 실패일 때만 그것을 그 시도의 `test-results`에 `hided-<n>.jsonl`로 씁니다. - 크기 cap(파일마다 끝 256 KiB, 잘린 첫 record는 버림)과 경로 placeholder(`<run>`, `<repo>`, `<home>`, `<tmp>`)는 #633 그대로입니다. test 밖(worker의 `afterAll`)에서 부르는 cleanup은 읽지 않습니다. ## Review - **조심해서 볼 파일**: `desktop/e2e/fixture.ts` - failure path. 읽기 실패는 cleanup 오류로 모으고 다른 정리는 계속합니다. 통과한 test도 cleanup마다 log 끝(최대 256 KiB)을 한 번 읽고 버립니다. ## Evidence - **확인한 것**: desktop typecheck, lint(e2e test size budget 포함) 통과. - **확인한 것 (실패 시 남음)**: TEMP #632(do not merge)를 이 branch 위로 다시 돌렸습니다(run 37451613232, keys.spec cycle test 하나에 강제 실패, macOS desktop lane만). 첫 시도와 retry 각각의 `test-results` 폴더에 `hided-1.jsonl`(약 9.6 KB, 60줄)이 남았습니다. - **확인한 것 (내용)**: 60줄 모두 JSON으로 읽힙니다. `/Users/`, `/private/var`, `/var/folders`, `runner` 경로는 0건이고 token, secret, password, authorization 이름의 field도 0건입니다. `tab.control.ready`, `tab.focus.late_answer`, `pane.read_record` 같은 core 기록이 시간 순서대로 들어 있습니다. - **확인한 것 (#633이 남기지 못함)**: 같은 TEMP를 #633 위에서 돌린 run 37449504611의 artifact에는 두 시도 모두 `hided-*.jsonl`이 없었습니다.
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.
Refs #629
Summary
desktop e2e가 실패한 시도에서 private hided의 core log를 남깁니다. 진단만 더하고 제품과 test 동작은 바뀌지 않습니다.
desktop.log)만 출력했고, hided의Logs/core.jsonl은 run 폴더와 함께 지워졌습니다. #629는 그래서 core의 focus 순서 없이 Herdr log로만 분류해야 했습니다.Logs/core.jsonl끝을 그 시도의test-results폴더에hided-<n>.jsonl로 복사합니다. CI의hide-desktop-e2e-logsartifact가 이 폴더를 이미 올립니다.e2e.log_tail(남긴 크기와 전체 크기)을 적습니다.<run>,<repo>,<home>,<tmp>로 바꿉니다(JSON escape된 Windows 철자 포함). core log에는 token이나 credential을 쓰는 record가 없습니다.docs/TESTING.mdflaky 절에 한 문장을 더했습니다.Review
desktop/e2e/fixture.ts- failure path. 복사는 앱을 닫은 뒤,hide stop과 폴더 삭제 전에 하고, 실패하면 teardown 오류로 모읍니다(다른 정리는 계속).Evidence
testInfo.status !== testInfo.expectedStatus)으로만 봤습니다. 이 PR의 CI desktop lane에서 녹색 run의 artifact가 없는 것으로 확인됩니다.