Skip to content

fix: match a filed flaky issue by its test's file and whole name - #2146

Merged
yansfil merged 1 commit into
mainfrom
fix/flaky-reporter-match
Nov 6, 2026
Merged

yansfil merged 1 commit into
mainfrom
fix/flaky-reporter-match

Conversation

@yansfil

@yansfil yansfil commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Related: with-hide/hide-private#221, #167, #262 (already closed; their later comments came from a renamed or sibling test)

Summary

테스트 이름을 바꾸거나 같은 파일에 앞 20자가 같은 형제 테스트가 있으면, flaky 보고기가 새 flake를 옛 이슈에 계속 달았습니다.
보고기가 직접 연 이슈는 - Test: 줄에 파일과 테스트 전체 이름이 적혀 있으므로, 이제 그 둘이 정확히 같을 때만 같은 테스트로 봅니다.
이름이 바뀐 테스트와 형제 테스트는 새 이슈를 엽니다. 사람이 쓴 이슈(잘린 제목을 인용)만 기존대로 파일과 앞 20자로 찾습니다.
화면 변경은 없습니다.

스크린샷 없음: 화면을 건드리지 않는 스크립트 변경

Review

  • 판단해 주세요: 직접 쓴 이슈가 - Test: + 백틱 파일 + 따옴표 이름 형식을 그대로 쓰면 자동 이슈로 취급되어 잘린 제목으로는 더 이상 안 잡힙니다.
  • 조심해서 볼 파일: scripts/ci-flaky-report.py tracks() - 이슈 매칭 한 곳. nextest 이름의 부분 문자열 매칭(a_burst / a_burst_more)도 같이 사라집니다.

Evidence

  • 확인한 것: scripts/tests/test_ci_flaky_report.py 81개 통과(새 6개: 형제, 이름 변경, 다른 파일, nextest 포함 관계, 사람이 쓴 이슈). 옛 tracks()로는 형제·이름 변경 테스트가 실패하는 것도 확인.
  • 확인하지 못한 것: 실제 GitHub에 대한 실행. 이슈 조회·생성은 기존 테스트의 가짜 호출로만 확인했습니다.

@yansfil
yansfil added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 66eacf7 Nov 6, 2026
43 checks passed
@yansfil
yansfil deleted the fix/flaky-reporter-match branch November 6, 2026 10:00
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.

1 participant