bazel-contrib / bazel-contrib/rules_python

Python coverage

未关闭
#2,248 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
need: repro
主要语言
Starlark
星标
688
派生
721
平均合并
15 小时 7 分钟
30 天内合并 PR
76

描述

Upgrading rules_python in Bazel and running tests again version 0.36.0 showed problems with coverage support.

To reproduce run `bazel test //src/test/shell/bazel:bazel_coverage_hermetic_py_test` from Bazel repository. It fails saying the test has failed, but this previously with builtin Python rules wasn't the case.

I went down the rabbit hole, but I couldn't figure it out. I think that this test should be moved out of Bazel into rules_python, if it isn't already.

贡献指南

打开贡献指南

调研方向

在 Bazel 仓库中使用 `bazel test //src/test/shell/bazel:bazel_coverage_hermetic_py_test` 重现失败。阅读现有的 coverage 测试和 rules_python 的 coverage 支持,以确定该测试应放在这里还是 rules_python 中。完成的标准是测试归属明确,并且 coverage 行为不再报告意外失败。

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

评估

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

把新 issue 发到你的邮箱

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