Skip to content

WIP experiment with PR coverage calculation - #10261

Closed
ChenSammi wants to merge 1 commit into
apache:masterfrom
ChenSammi:master
Closed

ChenSammi wants to merge 1 commit into
apache:masterfrom
ChenSammi:master

Conversation

@ChenSammi

@ChenSammi ChenSammi commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

experiment with PR coverage calculation

@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 Outdated

# 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.

Comment thread .github/workflows/pr-diff-coverage.yml Outdated

# 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
Contributor

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
@github-actions

Copy link
Copy Markdown

This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days.

@github-actions github-actions Bot added the stale label Jun 19, 2026
@github-actions

Copy link
Copy Markdown

This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days.

@github-actions github-actions Bot added the stale label Jul 19, 2026
@github-actions

Copy link
Copy Markdown

Thank you for your contribution. This PR is being closed due to inactivity. Please contact a maintainer if you would like to reopen it.

@github-actions github-actions Bot closed this Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants