Repository navigation
Closed
Labels
bugSomething isn't working
Description
What happened
core 로그에 pull_requests.failed가 "message":"gh timed out after 15000 ms"로 남았다.
core의 PR 조회(herdr-core/src/github.rs)는 gh pr list --state all --limit 200에 statusCheckRollup을 포함한 필드를 붙여 한 번에 묻고, 제한 시간은 15초다.
2026-10-04 이 Mac에서 같은 저장소에 대해 직접 쟀다.
| 조회 | 시간 |
|---|---|
core와 같은 필드(number,title,statusCheckRollup,headRefName,baseRefName,state,reviewDecision,isDraft,url,mergedAt,updatedAt,closingIssuesReferences) |
14.02초, 14.02초, 11.47초 |
위에서 statusCheckRollup과 closingIssuesReferences를 뺐을 때 |
4.27초 |
위에 closingIssuesReferences만 더했을 때 |
4.54초 |
위에 statusCheckRollup만 더했을 때 |
12.34초 |
열린 PR만, statusCheckRollup 포함 |
1.29초 |
워크트리 브랜치 25개를 GraphQL alias(pullRequests(headRefName:))로 묶고 statusCheckRollup { state }만 |
1.38 - 1.56초 |
시간 대부분은 머지되거나 닫힌 PR까지 200개 전부의 체크 결과를 묻는 데서 나온다.
GraphQL 비용은 dryRun 기준 100개 페이지당 3점, alias 25개 묶음은 2점이라 한도보다 지연이 문제다.
측정은 createdAt, closedAt이 필드에 추가되기 전 목록으로 했다.
What you expected
PR 목록 조회가 제한 시간 안에 여유 있게 끝난다.
같은 계열 도구의 사례는 이렇다.
- Superset은 같은 형태(PR 100개 목록 +
statusCheckRollup)가 큰 저장소에서 HTTP 504로 실패해 조회 방식을 바꿨다(host-service: PR sidebar badge never appears on large repos because GraphQL PullRequestsForSidebar query times out (504) ParadevAI/Paradev#4246, #4268). - Paseo는 GraphQL alias로 25개씩 묶고, 체크는 열린 PR에만 두 번째 쿼리로 묻고, 끝난 PR의 체크는 head SHA마다 한 번만 가져온다(Stop PR status polling from rate-limiting your entire GitHub account getpaseo/paseo#3825).
- Emdash는 열린 PR만 목록으로 가져오고 체크는
statusCheckRollup { state }만 묻는다.
Steps to reproduce
- 이 저장소에서
gh pr list --state all --limit 200 --json number,title,statusCheckRollup,headRefName,baseRefName,state,reviewDecision,isDraft,url,mergedAt,updatedAt,closingIssuesReferences를 실행한다. - 11 - 14초 걸린다.
Versions
- hide: 0.1.0-main.59c947a5
- Herdr: 0.9.1
- macOS: 15.1
- gh: 2.76.2
Diagnostics
{"component":"github","kind":"pull_requests.failed","generation":16,"available":true,"pull_requests":0,"message":"gh timed out after 15000 ms"}
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
Read pull request checks for open pull requests only
Connect a merged or closed pull request to a worktree only at its commit