Skip to content

fix: keep a project's pull requests when a question beside the list fails - #1236

Merged
yansfil merged 5 commits into
mainfrom
fix/1189-pr-extra-queries
Oct 16, 2026
Merged

yansfil merged 5 commits into
mainfrom
fix/1189-pr-extra-queries

Conversation

@yansfil

@yansfil yansfil commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Closes #1189

Summary

프로젝트의 PR 읽기는 PR 목록 말고도 세 가지를 더 묻습니다: 로그인한 계정, 나에게 온 리뷰 요청, 머지 큐 자리입니다.
지금은 이 셋 중 하나만 실패해도 그 프로젝트의 PR이 앱 어디에도 보이지 않았습니다.
이제 PR 목록이 읽히면 읽기는 성공입니다. 실패한 질문에 기대던 판정(내 PR인지, 나나 우리 팀에 리뷰가 요청됐는지, 큐에 있는지)만 "모름"으로 남습니다.
판정할 수 없는 PR은 자기가 속할 수도 있는 그룹이 아니라 평범한 Waiting에 두고, 그 줄에 무엇을 알 수 없는지 적습니다. 배너나 시트는 없습니다.
PRs 옆 ⚠는 그대로 쓰고, 툴팁이 어떤 질문을 못 읽었는지 말합니다.
이 PR은 PRD work-tab-pr-lens D-25의 "하나라도 실패하면 읽기 전체 실패" 규칙을 대체합니다. D-25는 로컬 PRD라 이 본문에만 적습니다.

머지 큐를 못 읽었을 때: 목록은 그대로고 ⚠ 툴팁이 이유를 말합니다

머지 큐만 못 읽은 경우입니다. 큐에 있을 수 있는 #31, #32만 Not judged로 Waiting에 앉고, 충돌 PR(#34)과 리뷰 PR(#33)은 그대로 판정됩니다.

Review

  • 판단해 주세요: 판정할 수 없는 PR을 어디에 둘까요. 저는 평범한 Waiting을 골랐습니다. Needs You는 "내 차례"라는 뜻이라 틀리게 말할 수 있고, Blocked는 "고쳐야 함"이라 틀립니다.
  • 판단해 주세요: 그 줄은 Not judged · can't tell if it is yours처럼 읽힙니다. 같은 모양으로 checking(머지 상태 확인 중)이 있어 흐린 색을 맞췄는데, 더 조용하거나 더 분명하게 하고 싶은지 봐 주세요.
  • 판단해 주세요: 계정을 못 읽으면 세션이 닿지 않은 내 PR 후보 전부가 Waiting으로 가서 Needs You가 비고, Work 아이콘 숫자도 비어 있습니다. 숫자를 틀리게 세는 것보다 낫다고 봤습니다.
  • 조심해서 볼 파일: herdr-core/src/github.rs - 세 질문을 따로 묻고, 목록이 이미 정한 것(요청이 내 이름을 부르는 경우)은 계속 정합니다. review_ask의 표가 그 규칙입니다.
  • 조심해서 볼 파일: herdr-core/src/agent_state/work/board.rs - listed와 standing이 "모름"을 "아님"으로 읽지 않는 자리입니다.
  • 조심해서 볼 파일: herdr-core/src/runtime/projects.rs - 뒤 읽기가 실패해 지난 목록을 남길 때 안 읽힌 질문 이름도 같이 남깁니다. 지난 목록을 남기는 동작 자체는 바꾸지 않았습니다.
  • 조심해서 볼 파일: herdr-core/src/github_store.rs - 저장 파일 스키마를 2로 올렸습니다. 옛 파일은 버려지고 다음 읽기가 새로 씁니다.
  • 질문: 이 질문들이 실제로 얼마나 자주 실패하는지는 아직 근거가 없습니다. 그럴듯한 원인은 GitHub Enterprise의 GraphQL 차이, 좁은 토큰, 요청 한도입니다. 빈도는 주장하지 않습니다.

Evidence

  • 확인한 것: Rust 단위 테스트가 질문 셋을 하나씩, 그리고 셋 모두 실패시켰을 때 각 PR의 판정을 확인합니다(github.rs 8개, board.rs 4개, 런타임 1개). 기대값은 구현이 아니라 규칙 표에서 적었습니다.
  • 확인한 것: 가짜 gh로 Playwright 4개가 질문별로 실패시킨 뒤 목록, 그룹, 이유 줄, ⚠의 접근 이름과 툴팁 문구를 확인합니다(web/e2e/work-prs.spec.ts, macOS, 파일의 10개 모두 통과. main을 합친 뒤에는 새 4개만 다시 돌렸습니다).
  • 확인한 것: verify-cargo.sh test -p herdr-core, lint, verify-web.sh web typecheck, lint, test와 check-no-attribution, check-no-workstation-identity.
  • 확인한 것: hided의 opener_lifecycle::thirteenth_quick_launch_is_over_budget가 전체 실행에서 한 번 실패했고 단독 실행에서는 통과했습니다. 이 변경과 무관한 시간 예산 테스트로 보지만 원인은 따로 보지 않았습니다.
  • 확인하지 못한 것: 실제 GitHub나 GitHub Enterprise, 실제 gh의 실패 모양. 실패는 가짜 gh의 종료 코드로만 만들었습니다.
  • 확인하지 못한 것: 설치된 앱과 Windows, Linux. 이 변경은 플랫폼 코드를 건드리지 않아 CI의 Windows와 Linux 레인에 맡깁니다.
  • 확인하지 못한 것: 일본어와 중국어 문구는 번역 검토를 받지 않았습니다. 영어와 한국어만 화면으로 봤습니다.
추가 증거

세 질문이 모두 실패: 목록 전체가 Waiting에 있고 툴팁이 셋을 모두 말합니다

세 질문이 모두 실패한 경우입니다. 초안, 봇, 머지된 PR은 목록만으로 정해져 그대로입니다.

…ails

The pull request list alone decides whether a project's GitHub read
succeeds. The signed-in account, the review requests and the merge queue
are asked and judged on their own; one that fails leaves what is derived
from it unknown on every pull request (mine, asked of me or my team, the
queue place) and is named in the project's status, instead of failing the
whole read and hiding the list.

A pull request that cannot be judged waits in the plain Waiting group with
an unjudged reason, never in a group it may not belong to, and is listed
whenever it may be the operator's. Closes #1189.
The warning on PRs now also shows while the list is current but a question
beside it was not answered, and its tooltip names the account, the review
requests or the merge queue in plain words, after the age of the list when
the read itself failed. A pull request that could not be judged says so in
its reason line.
The status model owns what each of the account, the review requests and
the merge queue leaves unknown and where a pull request that cannot be
judged waits; the UI guide owns the warning's tooltip and the reason line.
…ke gh

One case per question failing alone, and all three together: the list stays,
the unjudged pull requests wait in Waiting with their reason, and the
warning names the questions.
The unanswered-question cases open the warning's tooltip, assert its words and
save the lane with the tooltip beside it.
@yansfil
yansfil merged commit e4ebd5b into main Oct 16, 2026
22 checks passed
@yansfil
yansfil deleted the fix/1189-pr-extra-queries branch October 16, 2026 07:18
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.

PR 부가 정보(리뷰 요청, 머지 큐) 읽기가 실패하면 그 프로젝트의 PR이 전부 사라진다

1 participant