Skip to content

ci: run the desktop suite for every web shell and crate change - #1291

Merged
yansfil merged 1 commit into
mainfrom
1288-web-pr-ci-desktop-e2e
Oct 16, 2026
Merged

yansfil merged 1 commit into
mainfrom
1288-web-pr-ci-desktop-e2e

Conversation

@yansfil

@yansfil yansfil commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Closes #1288

Summary

desktop e2e는 앱 안에서 web 화면과 hided를 그대로 띄워 검사합니다.
그런데 PR CI는 desktop/나 일부 공유 web 파일을 바꿀 때만 desktop e2e를 돌렸습니다.
그래서 화면이나 core를 바꾼 PR이 초록으로 머지되고, main의 전체 실행에서 처음 깨졌습니다: #1106(세션 기록, 92분), #1147(레인을 닫아도 남는 파일 트리, 103분).
이제 web 화면 파일과 crate 변경은 web e2e와 함께 desktop e2e도 돌립니다. 앱이 열지 않는 폰 페이지(web/mobile.html, web/public/m)는 지금처럼 web 레인만 돌립니다.

web/src/Overview.tsx     old: checks, web-e2e, rust           new: + desktop-e2e
herdr-core/src/lib.rs    old: 15 jobs, macOS 0                new: 16 jobs, macOS 1
web/mobile.html          checks, web-e2e (unchanged)

Review

  • 판단해 주세요: macOS 비용입니다. 10-14~10-17에 머지된 PR 132개 중 desktop e2e를 돌리는 PR이 73개에서 121개로 늘어납니다(crate만 25, web만 18, 둘 다 5).
  • 판단해 주세요: crate까지 넣은 것. #1147은 web 파일 없이 herdr-core만 바꿨기 때문에, web만 넣으면 그 사례를 막지 못합니다. web만으로 줄이면 +48 대신 +23입니다.
  • 비용 검토: desktop e2e는 22분(10-16 macOS 실행 49개의 중앙값)이고, web e2e 샤드(18~20분 + 빌드 2분)와 비슷해서 큐가 없으면 PR 대기 시간은 거의 늘지 않습니다.
  • 비용 검토: macOS 슬롯은 5개입니다. 10-16 바쁜 9시간을 시뮬레이션하면 macOS 대기 p90이 4분에서 16분으로 늘어납니다(추정치, 실측 아님).
  • 조심해서 볼 파일: scripts/ci-plan.py - 레인을 잘못 빼면 PR은 초록인데 main만 빨개집니다. SHARED_WEB은 이제 Windows 레인만 더합니다.

Evidence

  • 확인한 것: scripts/tests/test_ci_plan.py 58개 통과. #1106과 #1147의 실제 파일로 desktop e2e가 계획되는지 보는 회귀 테스트를 추가했습니다.
  • 확인한 것: policy 레인 전체를 로컬에서 실행: scripts/tests 390개 통과, invariant 스크립트 8개 통과.
  • 확인한 것: 머지된 PR 132개를 옛/새 ci-plan.py에 다시 돌렸습니다(merge commit의 첫 부모 diff). desktop e2e 말고는 어떤 레인도 바뀌지 않았습니다.
  • 확인하지 못한 것: 머지 뒤 macOS 큐 대기 시간 실측. 위 p90은 10-16 작업 시각과 소요 시간으로 슬롯 5개를 시뮬레이션한 값입니다.
  • 확인하지 못한 것: 이 PR은 pr.yml과 ci-plan.py를 바꾸므로 자기 CI가 전체 레인을 돕니다. 새 규칙이 좁게 계획하는 모습은 다음 PR부터 보입니다.
추가 증거

PR 종류별 작업 수(옛 → 새, runner_jobs 기준):

herdr-core / hided        15 → 16, macOS 0 → 1
web shell                 10 → 11, macOS 0 → 1
desktop only               6 →  6, macOS 1
hide-platform             16 → 17, macOS 1 → 2
hide-kit / hooks          18 → 19, macOS 1 → 2 (desktop e2e, package)
documentation              3 →  3

docs/TESTING.md의 docs-only 겹침이 #1260과 있습니다. merge-order 안내대로 머지 직전에 한 번 풀면 됩니다.

The desktop suite drives the web shell and hided inside the app, but a pull request's plan left desktop e2e out unless the change touched desktop/ or one of the shared web files. A desktop spec that asserted what the change did then failed first on main's full run: #1106 (session record) and #1147 (file tree kept on a lane close) each kept main red for over 90 minutes.

The plan now adds desktop-e2e for every web shell file and every crate hided links, beside web-e2e. The phone page (web/mobile.html, web/public/m) stays web-only because the app never loads it. TESTING.md, CONTRIBUTING.md and pr.yml state the new rule, its cost and the job counts.

Closes #1288
@yansfil
yansfil merged commit 04b0ebf into main Oct 16, 2026
22 checks passed
@yansfil
yansfil deleted the 1288-web-pr-ci-desktop-e2e branch October 16, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

web 파일 변경 시 PR CI가 desktop e2e 레인을 건너뜀

1 participant