Skip to content

WIP experiment with PR coverage calculation#10261

Draft
ChenSammi wants to merge 7 commits into
apache:masterfrom
ChenSammi:master
Draft

WIP experiment with PR coverage calculation#10261
ChenSammi wants to merge 7 commits into
apache:masterfrom
ChenSammi:master

Conversation

@ChenSammi
Copy link
Copy Markdown
Contributor

@ChenSammi ChenSammi commented May 13, 2026

What changes were proposed in this pull request?

experiment with PR coverage calculation

Comment thread .github/workflows/pr-diff-coverage.yml Fixed
Comment thread .github/workflows/pr-diff-coverage.yml Fixed
Comment thread .github/workflows/pr-diff-coverage.yml Fixed
Comment thread .github/workflows/pr-diff-coverage.yml Fixed
Comment thread .github/workflows/pr-diff-coverage.yml Fixed
Comment on lines +18 to +23
- name: Checkout Codebase
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0

# Step 2: Provision Java Runtime Environment
Comment thread .github/workflows/pr-diff-coverage.yml Fixed
@ChenSammi ChenSammi changed the title HDDS-14888. Improve DiskCheckUtil.checkReadWrite to tolerate disk full HDDS-14888. Improve DiskCheckUtil.checkReadWrite to tolerate disk full May 13, 2026
Comment thread .github/workflows/pr-diff-coverage.yml Fixed

# Step 3: Compile and run tests to generate target/site/jacoco/jacoco.xml
- name: Execute Tests and Generate Reports
run: mvn clean test
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We cannot add this, because:

  • Running all tests in a single go takes several hours. That's why we run tests in splits.
  • It duplicates work already being done in the integration check.
  • It will result in unexpectedly low coverage, since acceptance tests are completely ignored.


# Step 4: Run the Madrapps Action to find and match the git diff
- name: Generate and Post Diff Coverage Report
uses: madrapps/jacoco-report@50d3aff4548aa991e6753342d9ba291084e63848
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The action madrapps/jacoco-report@50d3aff4548aa991e6753342d9ba291084e63848 is not allowed in apache/ozone because all actions must be from a repository owned by your enterprise, created by GitHub, or

or be whitelisted in https://github.com/apache/infrastructure-actions/blob/main/actions.yml

@Override
public boolean checkReadWrite(File storageDir,
File testFileDir, int numBytesToWrite) {
File testFile = new File(testFileDir, "disk-check-" + UUID.randomUUID());
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

how do we clean up disk-check-* files?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@yandrey321 Please review #9972, which this PR duplicates just for experimenting with PR Diff Coverage Verification workflow.

@adoroszlai adoroszlai marked this pull request as draft May 14, 2026 01:18
@adoroszlai adoroszlai changed the title HDDS-14888. Improve DiskCheckUtil.checkReadWrite to tolerate disk full WIP experiment with PR coverage calculation May 14, 2026
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.

4 participants