Skip to content

HDDS-8240. Disable JaCoCo for PRs and in forks#4449

Merged
adoroszlai merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-8240
Mar 25, 2023
Merged

HDDS-8240. Disable JaCoCo for PRs and in forks#4449
adoroszlai merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-8240

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Coverage check is executed only for commits in apache/ozone, i.e. neither for pull requests in apache/ozone, nor for any event in forks (HDDS-4801). However, coverage data is still collected during test runs, which (1) uses space unnecessarily in result bundles, and (2) takes a tiny bit of time to execute. This PR disables JaCoCo for the cases when its output is ignored.

https://issues.apache.org/jira/browse/HDDS-8240

How was this patch tested?

JaCoCo is executed in CI simulating commit on apache/ozone repo:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/4489193839/jobs/7897102199#step:5:3513

but skipped in fork:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/4489001536/jobs/7897164734#step:5:3560

jacoco*.exec files are not present in the artifacts produced by the latter.

@adoroszlai adoroszlai self-assigned this Mar 22, 2023
@adoroszlai adoroszlai requested a review from smengcl March 24, 2023 09:58
Copy link
Contributor

@smengcl smengcl left a comment

Choose a reason for hiding this comment

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

lgtm. Thanks @adoroszlai for the improvement

@adoroszlai adoroszlai added enhancement New feature or request build Pull request that modifies the build process labels Mar 25, 2023
@adoroszlai adoroszlai merged commit 11355a4 into apache:master Mar 25, 2023
@adoroszlai adoroszlai deleted the HDDS-8240 branch March 25, 2023 11:23
@adoroszlai
Copy link
Contributor Author

Thanks @smengcl for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull request that modifies the build process enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants