GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Make Java problem matcher opt-in (default problem-matcher to false) by brunoborges · Pull Request #1326 · actions/setup-java

Conversation

@brunoborges

@brunoborges brunoborges commented Nov 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Description:
The Java problem matcher turns every javac / Maven compiler diagnostic in subsequent steps into an inline annotation. This PR makes registration opt-in.

Why opt-in:

  • Review noise. Annotations render inline on the PR "Files changed" tab, so routine compiler warnings (for example, deprecation warnings from static-analysis builds) clutter diffs. See "problem-matcher" should be default to false, not true #1322 and https://github.com/orgs/community/discussions/212672.
  • Annotations are capped, so they are not a complete diagnostic report. These limits are still in effect on the current runner (main and latest release v2.338.2):
    • The runner uploads at most 10 annotations of each type (error, warning, notice) per step: _maxCountPerIssueType = 10, enforced in AddIssue. Diagnostics beyond the cap are still written to the log but are not annotated.
    • The Checks REST API docs state: "GitHub Actions are limited to 10 warning annotations and 10 error annotations per step."
    • The toolkit problem matcher docs also document a limit of 50 annotations per job.
  • A Maven or Gradle build typically compiles in a single step, so a build with more than 10 warnings annotates only the first 10 and drops the rest from the annotation view. By default, the annotations were both noisy and incomplete.

Changes:

  • problem-matcher now defaults to false in action.yml, and the runtime fallback in src/problem-matcher.ts matches.
  • Setting problem-matcher: true registers the same .github/java.json matcher as before. Matcher patterns, compiler log output, and build failure behavior are unchanged.
  • Invalid values such as ture still fail through the shared boolean parser.
  • README (V6 highlights and inputs table) and docs/advanced-usage.md now describe the opt-in behavior with an enabling example.
  • dist/setup/index.js was regenerated with npm run build.

Note for reviewers: this changes default behavior. Workflows that relied on implicit annotations must add problem-matcher: true to keep them. Omitting the input only stops this invocation from registering the matcher. It does not unregister matchers added by other steps.

Related issue:
Fixes: #1322

Check list:

  • Ran npm run check locally (format, lint, build, test) and all checks pass.
    • npm run format-check: passed
    • npm run lint: passed
    • npm run build: passed (pre-push hook)
    • npm test: passed, 45 suites / 1718 tests (pre-push hook)
  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

danielb987 reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@brunoborges
Make Java problem matcher opt-in
42a9d42
Default the problem-matcher input to false so setup-java no longer
registers Java compiler and uncaught-exception annotations unless
explicitly enabled with problem-matcher: true.

Fixes #1322

Co-authored-by: Copilot App <[email protected]>
@brunoborges
brunoborges requested a review from a team as a code owner November 14, 2026 04:38
Copilot AI balanced review requested due to automatic review settings November 14, 2026 04:38
Copilot started reviewing on behalf of brunoborges November 14, 2026 04:38
View session
Copilot AI reviewed Nov 14, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block the change to opt-in Java problem matcher registration.

No open issues 🎉

What changed in this PR

Makes Java problem matcher registration opt-in, addressing #1322 by reducing unwanted inline annotations. Workflows that rely on these annotations must set problem-matcher: true; compiler output and build failure behavior remain unchanged.

Changes:

  • Sets the action input default and runtime fallback to false.
  • Documents opt-in behavior and clarifies that existing matchers are not unregistered.
  • Updates unit tests and the generated setup bundle.
File Description
src/​problem-matcher.ts Disables registration by default at runtime.
README.md Updates release highlights and the documented input default.
docs/​advanced-usage.md Adds an enabling example and clarifies registration behavior.
dist/​setup/​index.js Includes the updated runtime default in the shipped bundle.
action.yml Sets the public input default to false and updates its description.
__tests__/​problem-matcher.test.ts Covers default-disabled and explicitly enabled registration.

Review effort: Balanced

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@brunoborges
brunoborges merged commit d1374f8 into main Nov 14, 2026
101 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@brunoborges
brunoborges deleted the brunoborges-problem-matcher-defaults branch November 14, 2026 04:47
@WALKERKILLER WALKERKILLER mentioned this pull request Nov 19, 2026
chore(deps): bump actions/setup-java from 6.2.0 to 6.3.0 in the actions group across 1 directory YourTongji/YourTJ-Hub#1700
Merged
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
chore(deps): bump the ci-actions-minor group across 1 directory with 14 updates ogabasseyy/Baci#4330
Merged
distronode-com added a commit to distronode-corporation/district-android that referenced this pull request Nov 22, 2026
@distronode-com @claude
ci: keep Java compiler annotations with setup-java 6.3.0
6362be3
setup-java 6.3.0 no longer registers the Java problem matcher by default
(actions/setup-java#1326), so compiler errors and warnings stopped becoming
annotations on pull requests. Opt back in with `problem-matcher: true` in
every setup-java step (ci verify and the second ci job, codeql,
dependency-submission, release).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
distronode-com added a commit to distronode-corporation/district-android that referenced this pull request Nov 22, 2026
@dependabot @distronode-com @claude
build(deps): bump actions/setup-java from 6.2.0 to 6.3.0 in the actio…
469569f
…ns-minor group across 1 directory (#166)

* build(deps): bump actions/setup-java

Bumps the actions-minor group with 1 update in the / directory: [actions/setup-java](https://github.com/actions/setup-java).


Updates `actions/setup-java` from 6.2.0 to 6.3.0
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@77dd5b2...d1374f8)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* ci: keep Java compiler annotations with setup-java 6.3.0

setup-java 6.3.0 no longer registers the Java problem matcher by default
(actions/setup-java#1326), so compiler errors and warnings stopped becoming
annotations on pull requests. Opt back in with `problem-matcher: true` in
every setup-java step (ci verify and the second ci job, codeql,
dependency-submission, release).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Distronode <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@rorygraves rorygraves mentioned this pull request Nov 22, 2026
ci: keep setup-java's compiler annotations (problem-matcher: true) llm4s/llm4s#2704
Merged
rorygraves added a commit to llm4s/llm4s that referenced this pull request Nov 22, 2026
@rorygraves @claude
ci: keep setup-java's compiler annotations (problem-matcher: true) (#…
5cee882
…2704)

actions/setup-java 6.3.0 (#2693) stopped registering its Java problem
matcher by default (actions/setup-java#1326), so javac warnings and errors
no longer appear as annotations on a pull request's diff. Every
setup-java step (33, in 16 workflows) opts back in.

Signed-off-by: Rory Graves <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
gregor-dietrich pushed a commit to gregor-dietrich/Midas that referenced this pull request Nov 23, 2026
Renovate Bot gregor
Update actions/setup-java action to v6.3.0 (#126)
53f37a0
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/setup-java](https://github.com/actions/setup-java) | action | minor | `v6.1.0` → `v6.3.0` |

---

### Release Notes

<details>
<summary>actions/setup-java</summary>

### [`v6.3.0`](https://github.com/actions/setup-java/releases/tag/v6.3.0)

[Compare Source](actions/setup-java@v6.2.0...v6.3.0)

##### Behavior change: Java problem matcher is now opt-in

Starting with v6.3.0, `setup-java` no longer registers the Java problem matcher by default ([#&#8203;1326](actions/setup-java#1326), fixes [#&#8203;1322](actions/setup-java#1322)). Java compiler warnings, compiler errors, and uncaught exceptions are no longer turned into annotations on pull request diffs unless you opt in.

To keep annotations, set `problem-matcher: true`:

```yaml
- uses: actions/setup-java@v6
  with:
    distribution: temurin
    java-version: '25'
    problem-matcher: true
```

Compiler output still appears in the build logs, and compilation errors still fail the build. Only annotations are affected.

**Why:** inline annotations cluttered pull request reviews, and GitHub Actions caps annotations at 10 errors, 10 warnings, and 10 notices per step, and 50 per job. Larger Java builds therefore showed only a truncated subset of their diagnostics as annotations. See [Java problem matcher (compiler annotations)](https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#java-problem-matcher-compiler-annotations).

##### What's Changed

- Architecture validation for JDK file installs by [@&#8203;v-mahabaleshwars](https://github.com/v-mahabaleshwars) in [#&#8203;1324](actions/setup-java#1324)
- chore(deps): bump fast-xml-parser from 5.11.2 to 5.12.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1323](actions/setup-java#1323)
- Add Microsoft OpenJDK 25.0.5.0.2 support by [@&#8203;brunoborges](https://github.com/brunoborges) with [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;1320](actions/setup-java#1320)
- Fix JetBrains Runtime hotfix version selection by [@&#8203;brunoborges](https://github.com/brunoborges) with [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;1321](actions/setup-java#1321)
- Make Java problem matcher opt-in (default problem-matcher to false) by [@&#8203;brunoborges](https://github.com/brunoborges) in [#&#8203;1326](actions/setup-java#1326)

**Full Changelog**: <actions/setup-java@v6.2.0...v6.3.0>

### [`v6.2.0`](https://github.com/actions/setup-java/releases/tag/v6.2.0)

[Compare Source](actions/setup-java@v6.1.0...v6.2.0)

##### What's Changed

- Fix Liberica SDKMAN patch release resolution by [@&#8203;brunoborges](https://github.com/brunoborges) in [#&#8203;1291](actions/setup-java#1291)
- Update Undici to 6.29.1 by [@&#8203;brunoborges](https://github.com/brunoborges) in [#&#8203;1308](actions/setup-java#1308)
- chore(deps): bump the monthly-npm-updates group with 12 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1309](actions/setup-java#1309)
- Fix Liberica Java 25 release resolution by [@&#8203;brunoborges](https://github.com/brunoborges) in [#&#8203;1313](actions/setup-java#1313)
- Add repository-specific Copilot instructions by [@&#8203;brunoborges](https://github.com/brunoborges) in [#&#8203;1312](actions/setup-java#1312)
- Support exact Corretto release versions by [@&#8203;electrum](https://github.com/electrum) in [#&#8203;1310](actions/setup-java#1310)
- Support Maven mirrors in generated settings.xml by [@&#8203;brunoborges](https://github.com/brunoborges) in [#&#8203;1289](actions/setup-java#1289)

##### New Contributors

- [@&#8203;electrum](https://github.com/electrum) made their first contribution in [#&#8203;1310](actions/setup-java#1310)

**Full Changelog**: <actions/setup-java@v6.1.0...v6.2.0>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODEuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.vptr.de/gregor/midas2/pulls/126
Reviewed-by: gregor <[email protected]>
Co-authored-by: Renovate Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

"problem-matcher" should be default to false, not true

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@brunoborges
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.