Repository navigation
File one issue per nightly failure and close it when its lane passes - #712
Merged
Merged
Conversation
…ly report job Each lane's report step writes a test that failed its retry too as a Failed test annotation; the nightly report job, the one writer, opens an issue per failure with candidate pull requests and an expiry, comments once per attempt, caps a run at ten, and closes a lane's issues when a scheduled run passes it. The umbrella report and its test go.
…sues # Conflicts: # docs/TESTING.md # scripts/tests/test_ci_plan.py
This was referenced Oct 7, 2026
Closed
yansfil
added a commit
that referenced
this pull request
Oct 8, 2026
Related: yansfil/sasu#30 (`/ship merge`가 이 검사를 매 머지마다 돌리고 출력을 보여 주게 하는 쪽) ## Summary Hide와 GitHub은 PR과 이슈를 `Closes #N` 같은 closing keyword로만 잇는데, 10-06~07에 이슈를 끝낸 PR 7개(#607 #612 #614 #622 #631 #634 #712)가 이 줄 없이 머지됐고 이슈는 손으로 닫혀 연결이 남지 않았습니다. 이제 `scripts/premerge-check.py`가 닫는 이슈가 없는 PR에 머지 명령 바로 위에서 알림을 한 줄 찍습니다. 막지는 않습니다. 이슈 없이 시작한 PR(PRD 작업, CI·문서 변경)도 많기 때문입니다. ``` note: #454 closes no issue. If it finishes one, put `Closes #<issue>` on the body's Closes line before merging (editing the body does not rerun `verify`); with no issue, merge as it is. #454 may merge now: gh pr merge 454 --merge --match-head-commit a1eda76... ``` ## Review - **판단해 주세요**: 알림만 하고 막지 않는 수준이 맞는지. 막으려면 "이슈 없음"을 PR 본문에 명시하는 규칙이 따로 필요합니다. ## Evidence - **확인한 것**: 실제 PR로 실행. 이슈를 닫는 #781에는 알림 없음, 닫는 이슈가 없는 #454에는 위 알림이 찍히고 머지 가능 판정은 그대로. - **확인한 것**: `test_premerge_check.py`에 알림 유무 테스트 1개 추가, `scripts/tests` 206개 통과, `check-no-attribution` 통과. - **확인하지 못한 것**: PR을 만드는 순간의 알림은 없습니다. 머지 직전에만 알려서, 그때 본문을 고치는 흐름입니다.
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
nightly 실패는 지금까지 issue #412 한 곳에 lane 이름만 댓글로 쌓였습니다. 어떤 테스트인지 알 수 없었고, 녹색이 되어도 닫히지 않았습니다(10-07 package (macos)의
server-session-search.spec.ts:29실패를 아무도 몰랐음).이제 실패 하나가
nightly-failureissue 하나입니다. 재발하면 같은 issue에 댓글이 달리고, lane이 녹색이 되면 issue가 닫힙니다.ci-flaky-report.py)는 재시도까지 실패한 테스트를 job의Failed testannotation으로 남기기만 합니다(실행 요약 화면에도 이름이 보임). flaky issue 쓰기는 그대로입니다.ci-flaky-report.py --nightly)이 issue를 쓰는 유일한 곳입니다.Nightly failure (<lane>): <테스트 또는 step>(200자 상한)이라 같은 테스트가 macOS와 Windows에서 실패하면 제목이 다른 issue 둘입니다. 준비 단계에서 실패했으면infralabel을 답니다.clean),- Expires:이틀 뒤.17 17 * * *(02:17 KST)로 옮겼습니다. 정각 예약은 GitHub가 늦춰, 03:00 KST 예약이 07:30~08:50 KST에 시작했습니다.nightly-report.cjs(Nightly CI is failing #412 umbrella)와 그 테스트, policy job의 node test 단계. 원인 후보·표식·상한을 두 언어에 두지 않으려고 report 로직을 Python 한 곳으로 옮겼습니다. #412는 머지 뒤 감독이 닫습니다.Review
Failed tests not annotated하나에 남은 수를 적고, runner 자신의 몫으로 하나를 비워 둡니다.Failed test가 하나도 없으면 단계 실패 issue로 엽니다.issues: write는 주지 않았습니다. release.yml과 pr.yml(#700의packagelane)이 package.yml을contents: read로 부르기 때문입니다. annotation은 권한이 필요 없고, 그 job의 flaky는 job summary에 "not filed"로 남습니다.2/4)를 뗀 것입니다.verify / verifygate는 다른 lane 실패를 따라 실패하므로 lane에서 뺐습니다. step 실패의 원인 후보 경로는 그 lane이 거친 workflow와 그 workflow가 부르는scripts/입니다.scripts/ci-flaky-report.pyNightly(failure path). GitHub API 오류는 report job을 실패시켜 조용히 넘어가지 않습니다.nightly.ymlreport job 권한(actions,checks,pull-requestsread)도 함께 봐 주세요.Report flaky and failed tests로 바꿨습니다.Evidence
scripts/tests/test_ci_flaky_report.py39개 통과(가짜 jobs·annotations·logs·issues·compare·PR 응답).all일 때만 닫음.python3 -m unittest discover -s scripts/tests189개 통과. policy job의 구조 검사,check-no-workstation-identity, attribution 검사 통과.Failed testannotation이 없기 때문입니다. 나머지(jobs, steps, 이전 run, compare, PR 파일)는 실제 API를 읽기만 했습니다.desktop/e2e/server-session-search.spec.ts:29, 원인 후보 Clean up Settings: six tabs, seven agents, a Hide AI tab and Reopen for unheard panes #668.dry-run: 10-07 run 37541045200
dry-run: 10-06 run 37391023049 (제목만)