Skip to content

Fix: make test-coverage to properly enable coverage for all test suites#2989

Merged
kevinjqliu merged 1 commit intoapache:mainfrom
kevinjqliu:kevinjqliu/fix-test-coverage
Jan 31, 2026
Merged

Fix: make test-coverage to properly enable coverage for all test suites#2989
kevinjqliu merged 1 commit intoapache:mainfrom
kevinjqliu:kevinjqliu/fix-test-coverage

Conversation

@kevinjqliu
Copy link
Contributor

Rationale for this change

The test-coverage target was failing with "No data to combine" because the COVERAGE=1 variable wasn't being propagated to prerequisite test targets.

Make's target-specific variable syntax (test-coverage: COVERAGE=1) only sets the variable for that specific target, not for its prerequisites when they execute as separate Make invocations.

Found this out when verifying release, which is the only place we run make test-coverage. CI runs make coverage-report

Are these changes tested?

Ran make test-coverage before and after

Are there any user-facing changes?

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@kevinjqliu kevinjqliu merged commit c0e7c6d into apache:main Jan 31, 2026
11 checks passed
@kevinjqliu kevinjqliu deleted the kevinjqliu/fix-test-coverage branch January 31, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants