Unable to view job logs gh run view --log
- 主要语言
- Go
- 星标
- 46.3k
- 派生
- 9k
- 平均合并
- 2 天 6 小时
- 30 天内合并 PR
- 97
描述
### Describe the bug
Running gh run view --log --job #jobNumber results in failure for logs of bigger size. This issue also occurs when downloading logs archives via GitHub webpage for the workflow.
### Affected version
gh version
gh version 2.74.0 (2025-05-29)
https://github.com/cli/cli/releases/tag/v2.74.0
### Steps to reproduce the behavior
1. Type this 'gh run view --log --job #jobNumber'
2. The output 'failed to get run log: stream error: stream ID 1; CANCEL; received from peer'
### Expected vs actual behavior
Error while trying to view logs for a job and the same issue occurs via GitHub.com as well, tried on chrome and safari. On safari after downloading for sometime I get 'The network connection is lost'. In some cases retrying the download archive works but CLI fails for specific jobs(I suspect it's to do with large log size). Log sizes are ~500MB for some workflows.
贡献指南
调研方向
首先,使用日志大小约为 500MB 的 job 重现 `gh run view --log --job #jobNumber`,并将其与从 GitHub.com 下载日志存档进行比较。当大型 job 日志可以查看或下载,且不会出现报告中的流错误或网络连接丢失时,该问题即得到解决。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github, go
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100