cli / cli/cli

Unable to view job logs gh run view --log

未关闭
#11,059 23 条评论 6 个 reaction 已指派 0 人 在 GitHub 查看
gh-run platform
主要语言
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。