Repository navigation
Windows desktop lane: the Electron app's @platform tests and the packaged window on every relevant pull request - #967
Merged
Merged
Conversation
… pull request that can change them - desktop-e2e.yml: one reusable desktop e2e job, called by pr.yml for the macOS suite and the new windows-desktop lane, and by the nightly's three systems; the Windows lane keeps the window it drew as an artifact. - ci-plan.py plans windows-desktop for the desktop host, its @platform specs and helpers, the web code it drives, and the crates that differ by system. - package.yml opens the unpacked Windows hide.exe with its window (packaged-window.spec.ts) and keeps the shell it draws. - TESTING, CONTRIBUTING and INSTALL say the Windows window is now checked.
yansfil
added a commit
that referenced
this pull request
Oct 15, 2026
Related: #1149 ## Summary 충돌을 풀려고 main을 합쳐 push하면, 바뀐 것이 문서뿐이어도 PR이 계획한 레인이 처음부터 다시 돕니다. 이제 그런 push는 이 PR의 마지막 초록 `verify`를 재사용하고 `policy`만 돌립니다. plan 요약에 재사용한 실행 ID가 남습니다. 재사용은 두 조건이 모두 참일 때만입니다. - **A. PR이 더하는 것이 그대로**: 그 실행의 head를 지금 main에 합친 결과와 이번 merge가 `policy`만 읽는 경로(문서, `design/`, `POLICY_ONLY`)에서만 다릅니다. 코드, 테스트가 읽는 가이드, 계약이 다르면 다시 돕니다. - **B. main이 PR 파일을 건드리지 않음**: 그 실행이 본 main 이후 main이 바꾼 파일 중, PR이 바꾼 파일이면서 레인이 읽는 것이 없습니다. #1133처럼 겹치면 다시 돕니다. - **실패는 일반 plan**: 실행이나 기록이 없거나, 기록의 head가 다르거나, API·다운로드·fetch·비교가 실패하면 지금처럼 계획하고, 요약에 이유를 씁니다. 각 PR 실행은 레인이 실제로 확인한 main과 head를 `ci-plan` 아티팩트로 남깁니다. 재사용한 실행은 원래 실행을 가리켜, 비교는 항상 레인이 돈 실행과 합니다. 머지 직전 `premerge-check.py`는 지금처럼 merge 결과에서 돕니다. ## Review - **판단해 주세요**: 재사용해도 `policy`(리눅스 잡 1개, 약 70초)는 돕니다. 스크립트 테스트와 불변식이 바뀐 문서를 읽기 때문입니다. brief의 "레인을 다시 돌리지 않고"보다 하나 더 돕니다. - **판단해 주세요**: B는 브리프대로 파일 겹침만 봅니다. main이 PR이 고친 함수를 쓰는 새 파일을 더한 경우는 지금의 "뒤처진 초록 PR 머지" 정책과 같이 premerge-check와 main push 런에 맡깁니다. - **조심해서 볼 파일**: `scripts/ci-plan.py` `plan` - 재사용 분기는 `NotReused`, git 실패, `OSError`, `ValueError`를 모두 일반 plan으로 돌립니다. 통과로 가는 길은 두 조건이 참일 때 하나뿐입니다. - **조심해서 볼 파일**: `scripts/ci-plan.py` `still_stands` - 충돌이 난 merge-tree 결과는 충돌 표시가 남은 채 비교되어, 코드 충돌을 다르게 푼 push는 A에서 걸립니다. - **조심해서 볼 파일**: `.github/workflows/pr.yml` plan 잡 - `actions: read` 권한, `GH_TOKEN`, 기록 업로드(`continue-on-error`: 업로드 실패는 다음 실행이 일반 plan이 될 뿐). - **비용 검토**: 재사용을 시도할 때만 commit과 tree를 받습니다(blob 없이, main 전체 이력 약 9 MB). GitHub에서 받은 depth 2 체크아웃 기준 첫 판정 11.6초(로컬 망). ## Evidence - **확인한 것**: `python3 -m unittest discover -s scripts/tests -p 'test_*.py'` 360개 통과. - **확인한 것**: 실제 git 저장소로 만든 테스트 7개: 문서 충돌만 푼 재push는 재사용, main과 겹친 코드(#1133 모양), 코드로 푼 충돌, PR 코드 변경, 테스트가 읽는 가이드 변경은 재실행, 실행 없음·조회 실패·받을 수 없는 커밋은 일반 plan. - **확인한 것**: 조건 B 제거, 조건 A 제거, READERS를 문서로 취급, 실패를 재사용으로, 다른 fork 실행 포함, 기록 head 미확인의 변조 6개가 각각 테스트를 실패시킵니다. - **확인한 것**: 실제 이력 재생. PR 39개에서 초록 실행 뒤에 온 실행 52개를 판정했습니다. 재사용 3, PR이 레인 경로를 바꿔 재실행 45, main 겹침으로 재실행 4. 표는 아래. - **확인한 것**: #1133(브리프의 반드시 재실행 사례)은 재실행입니다. 재병합에서 `persistence.rs` 충돌을 풀어 A가 걸리고, B만 따로 봐도 main과 겹친 레인 경로 6개로 걸립니다. - **확인한 것**: GitHub에서 depth 2로 받은 #1143 merge 체크아웃에서 fetch, merge-tree, 판정이 끝까지 돌았습니다(재실행 판정, 같은 head 재판정은 재사용). 실제 API 조회는 초록 실행을 찾고 기록이 없어 일반 plan으로 갑니다. - **확인하지 못한 것**: 머지 전 실행은 기록을 남기지 않았으므로 재사용은 이 PR 머지 뒤의 초록 실행부터 됩니다. - **확인하지 못한 것**: 이 PR의 첫 실행은 `ci-plan.py`를 바꿔 전체 레인입니다. 문서만 다시 push해 재사용이 실제로 일어나는지는 이 PR에서 따로 확인합니다. <details><summary>재생 결과 (재사용과 main 겹침 사례)</summary> 재생: 각 실행의 merge commit 첫 부모를 그 실행의 main으로 보고, head를 그 main에 합쳐 다시 만든 merge로 이 PR의 판정을 돌렸습니다. | PR | 실행 | 그 전 초록 실행 이후 바뀐 것 | 판정 | | --- | --- | --- | --- | | #967 | 38137531799 | `docs/VERIFICATION.md` 한 줄 | 재사용 (원래 전체 레인) | | #966 | 38173834278 | 베이스 브랜치 병합, 베이스가 바꾼 3개 파일은 PR과 안 겹침 | 재사용 | | #1010 | 38274906653 | 같은 head, 같은 main에서 다시 돈 실행 | 재사용 | | #1133 | 38689861115 | main 병합, `persistence.rs` 충돌을 코드로 해결 | 재실행 (A, B 모두) | | #1114 | 38668610949 | main이 PR도 바꾼 `hided/tests/it/core_move.rs`를 바꿈 | 재실행 (B) | | #991 | 38214789905 | main이 PR도 바꾼 `memory.rs` 등 4개를 바꿈 | 재실행 (B) | | #969 | 38142050470 | main이 PR도 바꾼 `pr.yml`을 바꿈 | 재실행 (B) | | #1143 | 38699835291 | main이 PR도 바꾼 `design/tokens.json` 등 10개를 바꿈 | 재실행 (B) | 나머지 44개는 PR이 레인이 읽는 경로를 바꿔 재실행입니다. </details>
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
Windows에서 Electron 데스크톱 앱 창을 띄우는 검사는 nightly에만 있었고, 패키지된
hide.exe는 창 없이만 시작해 봤습니다.이 PR은 데스크톱 e2e를 재사용 워크플로 하나(
desktop-e2e.yml)로 모으고, PR마다 Windows에서 데스크톱@platform테스트를 도는windows desktoplane을 더합니다.packagelane의 Windows job은 압축을 푼hide.exe를 창과 함께 열어 셸이 그려지는지 보고 스크린샷을 artifact로 남깁니다.이후 Windows 에이전트 지원 PR들이 이 lane과 패키지 창 검사를 씁니다.
windows desktop: 데스크톱 호스트, 그@platformspec과 helper, 호스트가 쓰는 web 코드, OS별로 다른 crate가 바뀌면 계획됩니다.desktop e2elane과 nightly 세 시스템도 같은 워크플로를 부릅니다(단계는 nightly의 것과 같음).test_ci_plan.py의 수 갱신).Review
.github/workflows/nightly.yml- matrix job이 재사용 워크플로를 부르면서 job 이름이desktop e2e (<system> ...) / desktop e2e nightly-<system>이 됩니다. 열린 nightly-failure 이슈는 없습니다..github/workflows/package.yml- Windows job에 창 검사 단계가 붙어 package lane이 몇 분 길어집니다.Evidence
python3 -m unittest discover -s scripts/tests -p 'test_*.py'323개 통과(lane 계획 새 케이스 포함).pnpm --dir desktop typecheck,lint(e2e 크기 예산 포함) 통과.desktop e2e (windows @platform)6개 테스트가 5분 40초에 통과(이 lane이 도는 것과 같은 집합).windows desktoplane과 패키지 창 검사의 결과와 스크린샷은 이 PR의 run에서 확인합니다.