inconsistent test count reported in Jenkins if tests are flaky

Open
#335 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cmake

Research direction

Start with the nightly job configuration that runs ctest --rerun-failed and inspect how Test.xml is passed to Jenkins. Compare the initial and rerun result behavior, then check upstream CMake issue 16314 before deciding whether this repository has an actionable workaround. Done means Jenkins reports a consistent test count without breaking flaky-test reruns.

Written by the indexing model from the issue text.

Description

duplicate

The nightly jobs reruns failed test with ctest --rerun-failed. But since this run overwrites the generated Test.xml Jenkins will report a different number of test because tests which passed in the initial run are not included in the new result file anymore. I don't think there is much we can do (except parsing the result file before and after and implementing our own merge strategy). I have reported the problem upstream, maybe it gets addressed in CTest directly: https://gitlab.kitware.com/cmake/cmake/issues/16314

Dominant language
Python
Stars
55
Forks
40
Avg merge
3d 5h
Merged PRs (30d)
6

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/ci

All issues in ros2/ci

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.