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

Support graal jdk automanagement installations #497

Merged
merged 12 commits into from
Jan 30, 2025

Conversation

crogoz
Copy link
Contributor

@crogoz crogoz commented Jan 22, 2025

Before this PR

After this PR

In preparation for graal'ing palantir-java-format. Adds support for graal distributions (drops support for older graal download urls, updates the download urls).

Not currently supported/Limitations:

  • We don't support multiple distributions for the same java major version. This will be added as a FLUP PR.

==COMMIT_MSG==
Support graal jdk automanagement installations
==COMMIT_MSG==

Possible downsides?

@changelog-app
Copy link

changelog-app bot commented Jan 22, 2025

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

Support graal jdk automanagement installations

Check the box to generate changelog(s)

  • Generate changelog entry

setupGradleDirectoryStructure(Os.LINUX_GLIBC);
dockerBuildAndRunTestingScript("ubuntu:20.04", "/bin/bash", INSTALL_CURL, true);
}

@Test
public void can_setup_jdks_alpine() throws IOException, InterruptedException {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not supporting musl distros for jdk automanagement. Graal doesn't seem to support this either.

Copy link
Contributor

Choose a reason for hiding this comment

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

We still try to install them though right? I'd say we'd probably want to keep the test for them (but not for graal?) while we still do.

@@ -141,11 +141,11 @@ install_and_setup_jdks() {
case "$distribution_url" in
*.zip)
distribution_name=${distribution_url##*/}
curl -C - "$distribution_url" -o "$distribution_name"
curl -L -C - "$distribution_url" -o "$distribution_name"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

allow curl to follow redirects

@crogoz crogoz requested a review from CRogers January 22, 2025 10:03
os(jdkRelease.os()),
arch(jdkRelease.arch()),
splitVersion.graalVersion());
"jdk-%s/graalvm-community-jdk-%s_%s-%s_bin",
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

they started to match the graalVM version with the java version, previously for a specific graalvm version (eg. 22.3 - https://www.graalvm.org/release-notes/22_3/ you could install either the java11 or java17 based GraalVM), now when we specify graalVm == 22.3 -> we will be getting the java version == 22.3 https://www.graalvm.org/release-notes/JDK_22/)

@crogoz crogoz requested a review from CRogers January 30, 2025 13:35
@bulldozer-bot bulldozer-bot bot merged commit b642b09 into develop Jan 30, 2025
6 checks passed
@bulldozer-bot bulldozer-bot bot deleted the cr/graal-jdk-automanagement branch January 30, 2025 13:59
@autorelease3
Copy link

autorelease3 bot commented Jan 30, 2025

Released 0.61.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