Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

baseline-error-prone targets jdk-17+ #2966

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

carterkozak
Copy link
Contributor

@carterkozak carterkozak commented Nov 26, 2024

==COMMIT_MSG==
baseline-error-prone targets jdk-17+
==COMMIT_MSG==

Risk is that we lose errorprone support for projects targeting jdk11, where we use a jdk11 for compilation.
In those cases, failure modes range from silently ignoring error-prone to build failures. Given that we do not support jdk11 anymore, this is a reasonable risk.

@changelog-app
Copy link

changelog-app bot commented Nov 26, 2024

Generate changelog in changelog/@unreleased

What do the change types mean?
  • feature: A new feature of the service.
  • improvement: An incremental improvement in the functionality or operation of the service.
  • fix: Remedies the incorrect behaviour of a component of the service in a backwards-compatible way.
  • break: Has the potential to break consumers of this service's API, inclusive of both Palantir services
    and external consumers of the service's API (e.g. customer-written software or integrations).
  • deprecation: Advertises the intention to remove service functionality without any change to the
    operation of the service itself.
  • manualTask: Requires the possibility of manual intervention (running a script, eyeballing configuration,
    performing database surgery, ...) at the time of upgrade for it to succeed.
  • migration: A fully automatic upgrade migration task with no engineer input required.

Note: only one type should be chosen.

How are new versions calculated?
  • ❗The break and manual task changelog types will result in a major release!
  • 🐛 The fix changelog type will result in a minor release in most cases, and a patch release version for patch branches. This behaviour is configurable in autorelease.
  • ✨ All others will result in a minor version release.

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

baseline-error-prone targets jdk-17+

Check the box to generate changelog(s)

  • Generate changelog entry

@pkoenig10
Copy link
Member

pkoenig10 commented Jan 4, 2025

@carterkozak what would it take to merge this? This is blocking the Error Prone upgrade in #2982, which is blocking some upgrades due to the typical:

  • Error Prone break their API (google/error-prone@3b16d61)
  • Guava upgrades to this version of Error Prone (google/guava@cf508b7)
  • Another Error Prone checks library upgrades to this version of Guava
  • Upgrading these custom Error Prone check libraries in consumers fails with java.lang.NoSuchMethodError: 'boolean com.google.errorprone.util.ASTHelpers.isRuleKind(com.sun.source.tree.CaseTree)'

As of 2.33.0, Error Prone requires compiling using Java 17.

https://github.com/google/error-prone/releases/tag/v2.33.0

It seems like com.palantir.baseline-java-versions doesn't support using a newer compiler to target older versions, which is what Error Prone requires.

@pkoenig10
Copy link
Member

pkoenig10 commented Jan 4, 2025

Should we consider not auto-upgrading Guava in Error Prone check repos? This is not the first time this specific failure mode has happened.

pkoenig10
pkoenig10 previously approved these changes Jan 6, 2025
@policy-bot policy-bot bot dismissed pkoenig10’s stale review January 6, 2025 15:48

Invalidated by push of b31a57a

@carterkozak carterkozak marked this pull request as ready for review January 6, 2025 15:48
@bulldozer-bot bulldozer-bot bot merged commit 7b10434 into develop Jan 6, 2025
5 checks passed
@bulldozer-bot bulldozer-bot bot deleted the ckozak/baseline-error-prone-targets-jdk17 branch January 6, 2025 16:14
@autorelease3
Copy link

autorelease3 bot commented Jan 6, 2025

Released 6.6.0

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

Successfully merging this pull request may close these issues.

3 participants