Skip to content

Implementing new JMF Jacoco solution#165

Open
tmikula-dev wants to merge 3 commits into
masterfrom
feature/157-adopt-JMF
Open

Implementing new JMF Jacoco solution#165
tmikula-dev wants to merge 3 commits into
masterfrom
feature/157-adopt-JMF

Conversation

@tmikula-dev

Copy link
Copy Markdown

Overview

This pull request updates the project's test coverage workflow and build plugins to improve efficiency and maintainability. The main changes are the addition of a smart detection step to only run JaCoCo coverage checks when Scala source files are changed, the upgrade of the JaCoCo report action, and the removal of custom SBT JaCoCo plugins in favor of an upstream plugin.

Release Notes

  • Updating JaCoCo version that supports new JaCoCo method filter v2.1.1 that wraps the logic inside the external tool.

Related

Closes #157

@tmikula-dev tmikula-dev self-assigned this Jun 16, 2026
@tmikula-dev tmikula-dev added the enhancement New feature or request label Jun 16, 2026
@tmikula-dev tmikula-dev marked this pull request as draft June 16, 2026 12:52
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@tmikula-dev, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 8 minutes and 35 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 681403d3-e5aa-4078-97c8-1c9ab6111896

📥 Commits

Reviewing files that changed from the base of the PR and between 5b94bd0 and 6393207.

📒 Files selected for processing (5)
  • .github/workflows/jacoco_report.yml
  • .sbtrc
  • build.sbt
  • jmf-rules.txt
  • project/plugins.sbt
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/157-adopt-JMF

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tmikula-dev tmikula-dev marked this pull request as ready for review June 16, 2026 13:48

@miroslavpojer miroslavpojer left a comment

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.

See my comments.

Comment thread project/plugins.sbt
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.2")

addSbtPlugin("io.github.davidmweber" % "flyway-sbt" % "7.4.0")
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.1.1")

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.

2.2.0 has been released.

- name: faDbCore
paths:
- '**/core/target/**/jacoco-report/jacoco.xml'
thresholds: '61*80*0'

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.

Why 0? I would suggest 60%
It give space and now there is the eay how to filter out no coverable methods.

}

core.setFailed('JaCoCo test coverage report generation failed, and related PR comments were updated.');
global-thresholds: '0*80'

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.

Here I would use current global value as start point.


core.setFailed('JaCoCo test coverage report generation failed, and related PR comments were updated.');
global-thresholds: '0*80'
report-thresholds-default: '0*0*0'

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.

Here I would use the lowest report group value for 1st position then 80*60.

Comment thread jmf-rules.txt
# ─────────────────────────────────────────────────────────────────────────────
# Prefix a rule with "+" to rescue a method. Include always wins over exclude.
#
# +com.example.model.Config$#apply(*) id:keep-config-apply

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.

These example lines should be replaced by real include rules if needed or removed.
During the adoption there should be done a check if there is some method filtered by boiler plate code - the team override it.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopt Java Method Filtration JaCoCo Extension

2 participants