Repository navigation
ci: run the desktop suite for every web shell and crate change - #1291
Merged
Merged
Conversation
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
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 #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 레인만 돌립니다.Review
herdr-core만 바꿨기 때문에, web만 넣으면 그 사례를 막지 못합니다. web만으로 줄이면 +48 대신 +23입니다.scripts/ci-plan.py- 레인을 잘못 빼면 PR은 초록인데 main만 빨개집니다.SHARED_WEB은 이제 Windows 레인만 더합니다.Evidence
scripts/tests/test_ci_plan.py58개 통과. #1106과 #1147의 실제 파일로 desktop e2e가 계획되는지 보는 회귀 테스트를 추가했습니다.scripts/tests390개 통과, invariant 스크립트 8개 통과.ci-plan.py에 다시 돌렸습니다(merge commit의 첫 부모 diff). desktop e2e 말고는 어떤 레인도 바뀌지 않았습니다.pr.yml과ci-plan.py를 바꾸므로 자기 CI가 전체 레인을 돕니다. 새 규칙이 좁게 계획하는 모습은 다음 PR부터 보입니다.추가 증거
PR 종류별 작업 수(옛 → 새,
runner_jobs기준):docs/TESTING.md의 docs-only 겹침이 #1260과 있습니다. merge-order 안내대로 머지 직전에 한 번 풀면 됩니다.