pingcap / pingcap/tidb

CI unit test jobs fail to produce bazel.xml junit report

Open
#69,479 2 comments 0 reactions 0 assignees View on GitHub
severity/moderate sig/sql-infra type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Problem

CI unit test jobs (`ghpr_unit_test`) fail to produce `bazel.xml` junit report file, causing junit artifact collection to be skipped.

## Root Cause

In `build/jenkins_unit_test.sh` and `build/jenkins_unit_test_ddlargsv1.sh`, the `bazel_collect` tool is installed (line 26) but never invoked after `make bazel_ci_test` completes. The tool is needed to generate the local junit XML from Bazel's build event protocol output.

## Expected Behavior

After `make bazel_ci_test` completes, `bazel_collect` should be called to generate `bazel.xml` before the script checks for the file.

## References

- Jenkins job: https://prow.tidb.net/jenkins/job/pingcap/job/tidb/job/ghpr_unit_test/5764/
- Fix PR: #69476

Contributor guide

Open the contributing guide

Research direction

Start by reading build/jenkins_unit_test.sh and build/jenkins_unit_test_ddlargsv1.sh, then run or inspect the ghpr_unit_test flow around make bazel_ci_test and the bazel.xml check. Done means bazel_collect runs after the test command and bazel.xml is available for junit artifact collection in both scripts.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
build-system, ci-cd, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.