Always upload test.xml from the public test jobs

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
bash, cpp, github-actions, typescript
领域
devops

调研方向

Start with the test jobs in .github/workflows/bzl-changes.yml and the existing "Upload test logs and crash reports" step, which shows how to copy symlinked files out of bazel-testlogs/. Add an actions/upload-artifact step with if: always() after each bazel test run in tools/ci/run_tests.sh and tools/ci/test_modules.sh, with a job- and matrix-specific name and 7-day retention. Done when a green and a red public run both produce downloadable test.xml artifacts. Workflow changes need a maintainer to run CI, so expect a wait.

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

描述

The test jobs in .github/workflows/bzl-changes.yml (for example "Run: C++ Tests" and "Run: Module Tests") never upload Bazel's per-test test.xml results. At most, some of them upload logs when they fail. So there's no record of which tests ran, passed or failed on a green run, and no way to see which tests are flaky over time.

What to do

  • After each step that runs bazel test (through tools/ci/run_tests.sh, tools/ci/test_modules.sh and similar), add an actions/upload-artifact step with if: always() that uploads the test.xml files from bazel-testlogs/.
  • Give each artifact a name that includes the job and matrix entry, so runs can be told apart.
  • bazel-testlogs contains symlinks. Copy the real files first, the way the existing "Upload test logs and crash reports" step does.
  • Keep the retention short (for example 7 days), and pin the action to a commit SHA like the other upload steps.

Done when: every public run, green or red, has downloadable test.xml results for each test job.

Changes to .github/workflows need a maintainer to run them, so expect a short wait on CI. See CONTRIBUTING.md before opening a pull request.

主要语言
C++
星标
16.4k
派生
538
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

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

Snapchat/Valdi 的其他 Issue

查看 Snapchat/Valdi 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

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