Crash with checks on large protocol buffers

未关闭
#14 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
go
领域
testing

调研方向

首先,通过对大型 Protocol Buffers 执行检查来重现 crash,并跟踪 private state member 如何通过 repr 反射系统进行渲染。检查库对 private member 和配置选项的处理方式;当大型值不再压垮 CI 输出,并且预期的 private-member 行为得到定义时,即可视为完成。

由索引模型根据 Issue 内容生成。

描述

I just updated to the latest version of assert and it seems to be causing havoc on our CI/CD system. The problem is that we have several checks on large protocol buffers. The private state member is then rendered through the repr reflection system and it can be hundreds of thousands (millions?) of lines.

  • Did the default behavior of printing private members change recently?
  • Is there some way that I can globally disable showing private members in the assert library without having to pass extra arguments to every assert call?
主要语言
Go
星标
196
派生
16
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

alecthomas/assert 的其他 Issue

查看 alecthomas/assert 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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