Repository navigation
Read the daemon log when a desktop e2e run is cleaned up - #636
Merged
Merged
Conversation
The log of a failed attempt was copied in the test fixture's teardown, but specs clean their run up in their own afterEach, which runs first and removed the folder, so nothing was kept. Each cleanup now reads the end of its daemons' core logs, and the fixture writes them beside the report once the test's outcome is final and only when it failed. Refs #629
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
Related: #633
Summary
#633(desktop e2e가 실패한 시도의 private hided log를 남김)이 실제로는 아무것도 남기지 못하던 것을 고칩니다. 진단만 바뀌고 제품과 test 동작은 그대로입니다.
afterEach에서run.cleanup()을 먼저 부르고(desktop spec 33곳), 그 cleanup이 run 폴더를 지워 teardown에는 읽을 log가 없었습니다.isolate()의 cleanup이hide stop뒤, 폴더를 지우기 전에 그 run의 daemon log 끝을 읽어 둡니다. test fixture는 결과가 확정된 뒤 실패일 때만 그것을 그 시도의test-results에hided-<n>.jsonl로 씁니다.<run>,<repo>,<home>,<tmp>)는 Keep the private daemon's log for a failed desktop e2e attempt #633 그대로입니다. test 밖(worker의afterAll)에서 부르는 cleanup은 읽지 않습니다.Review
desktop/e2e/fixture.ts- failure path. 읽기 실패는 cleanup 오류로 모으고 다른 정리는 계속합니다. 통과한 test도 cleanup마다 log 끝(최대 256 KiB)을 한 번 읽고 버립니다.Evidence
test-results폴더에hided-1.jsonl(약 9.6 KB, 60줄)이 남았습니다./Users/,/private/var,/var/folders,runner경로는 0건이고 token, secret, password, authorization 이름의 field도 0건입니다.tab.control.ready,tab.focus.late_answer,pane.read_record같은 core 기록이 시간 순서대로 들어 있습니다.hided-*.jsonl이 없었습니다.