Skip to content

Changed JAVA_DIST zulu to temurin - #3676

Merged
mindmonk merged 1 commit into
developfrom
feature/change-zulu-to-temurin
Jan 13, 2025
Merged

mindmonk merged 1 commit into
developfrom
feature/change-zulu-to-temurin

Conversation

@mindmonk

Copy link
Copy Markdown

No description provided.

@mindmonk
mindmonk requested a review from infeo January 12, 2025 14:01
@coderabbitai

coderabbitai Bot commented Jan 12, 2025

Copy link
Copy Markdown

Walkthrough

The pull request introduces a comprehensive update across multiple GitHub Actions workflow files, primarily focusing on changing the Java distribution from 'zulu' to 'temurin'. This modification is consistently applied across nine different workflow files, including .github/workflows/appimage.yml, .github/workflows/build.yml, .github/workflows/check-jdk-updates.yml, .github/workflows/debian.yml, .github/workflows/get-version.yml, .github/workflows/mac-dmg-x64.yml, .github/workflows/mac-dmg.yml, .github/workflows/pullrequest.yml, .github/workflows/release-check.yml, and .github/workflows/win-exe.yml.

Additionally, the README.md file has been updated to reflect a version change from JDK 22 to JDK 23, while maintaining the reference to both temurin and zulu distributions. The changes appear to be a systematic update of the project's Java environment configuration across its continuous integration and deployment workflows.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
.github/workflows/check-jdk-updates.yml (1)

10-10: Consider standardizing environment variable names.

Other workflow files use JAVA_DIST while this one uses JDK_VENDOR. Consider standardizing to maintain consistency.

-  JDK_VENDOR: temurin
+  JAVA_DIST: temurin
README.md (1)

81-81: LGTM! JDK version update is consistent.

The update to JDK 23 aligns with the workflow changes.

Consider using dashes instead of asterisks for unordered lists to maintain consistent markdown style:

-* JDK 23 (e.g. temurin, zulu)
-* Maven 3
+- JDK 23 (e.g. temurin, zulu)
+- Maven 3
🧰 Tools
🪛 Markdownlint (0.37.0)

81-81: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)

.github/workflows/mac-dmg-x64.yml (1)

Line range hint 3-11: Consider consolidating duplicate workflow files.

The warning comment indicates this is a copy of mac-dmg.yml with minor adjustments. Consider using a shared workflow with matrix strategy or reusable workflow to avoid maintaining duplicate files.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between de3b271 and 3d23deb.

📒 Files selected for processing (11)
  • .github/workflows/appimage.yml (1 hunks)
  • .github/workflows/build.yml (1 hunks)
  • .github/workflows/check-jdk-updates.yml (1 hunks)
  • .github/workflows/debian.yml (1 hunks)
  • .github/workflows/get-version.yml (1 hunks)
  • .github/workflows/mac-dmg-x64.yml (1 hunks)
  • .github/workflows/mac-dmg.yml (1 hunks)
  • .github/workflows/pullrequest.yml (1 hunks)
  • .github/workflows/release-check.yml (1 hunks)
  • .github/workflows/win-exe.yml (1 hunks)
  • README.md (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • .github/workflows/win-exe.yml
  • .github/workflows/get-version.yml
🧰 Additional context used
🪛 Markdownlint (0.37.0)
README.md

81-81: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)

🔇 Additional comments (8)
.github/workflows/pullrequest.yml (1)

7-7: LGTM! Change to temurin is consistent.

The update to use temurin distribution is correctly implemented.

.github/workflows/release-check.yml (1)

14-14: LGTM! Change to temurin is consistent.

The update to use temurin distribution is correctly implemented.

.github/workflows/build.yml (1)

9-9: LGTM! Change to temurin is consistent.

The update to use temurin distribution is correctly implemented.

.github/workflows/check-jdk-updates.yml (1)

8-8: Verify the specific JDK version.

The workflow specifies JDK version '23.0.1+11'. Let's verify if this is the latest available version from temurin.

✅ Verification successful

JDK version 23.0.1+11 is verified as the latest available version.

The specified version matches the latest release from temurin's repository. Additionally, the workflow includes automated version checking that will notify when updates become available.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check latest JDK 23 version from temurin
gh api \
  -H "Accept: application/vnd.github+json" \
  /repos/adoptium/temurin23-binaries/releases/latest \
  --jq '.tag_name'

Length of output: 129


Script:

#!/bin/bash
# Display the complete workflow file
cat .github/workflows/check-jdk-updates.yml

Length of output: 3092

.github/workflows/debian.yml (1)

19-19: LGTM! Distribution change looks good.

The change from 'zulu' to 'temurin' is consistent with the PR objective. Both distributions are supported by the setup-java@v4 action.

Run the following script to verify the Java distribution compatibility:

✅ Verification successful

Documentation is already distribution-agnostic, no updates needed

The only reference to 'zulu' is in README.md where it's listed as an example alongside 'temurin', correctly indicating that multiple distributions are supported. The documentation is already properly written to accommodate both distributions.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify Java distribution compatibility across the codebase
# Check for any hardcoded references to 'zulu' that might need updating

rg -l 'zulu' --type-not yaml

Length of output: 38


Script:

#!/bin/bash
# Check the context of 'zulu' mentions in README.md
rg -C 3 'zulu' README.md

Length of output: 98

.github/workflows/appimage.yml (1)

13-13: LGTM! Distribution change is consistent.

The change to 'temurin' aligns with the changes in other workflow files.

.github/workflows/mac-dmg.yml (1)

18-18: LGTM! Verify arm64 support in temurin.

The change to 'temurin' is consistent. Since this workflow handles macOS arm64 builds, we should verify temurin's arm64 support.

Run the following script to verify temurin's arm64 support:

✅ Verification successful

✅ Temurin arm64 support verified and working

Recent workflow runs show consistent successful builds on arm64, with the last 6 consecutive builds passing. The workflow is properly configured with architecture-specific settings and shows stable arm64 support.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check if there are any arm64-specific configurations or issues
# Look for arm64-specific build failures or issues in past runs

gh run list --workflow mac-dmg.yml --json conclusion,displayTitle --jq '.[] | select(.displayTitle | contains("arm64")) | {title: .displayTitle, conclusion: .conclusion}'

Length of output: 980


Script:

#!/bin/bash
# Get more context about the failed runs and when temurin was introduced

# Check workflow file history for JAVA_DIST changes
git log -p -- .github/workflows/mac-dmg.yml | grep -A 5 -B 5 "JAVA_DIST"

# Get detailed information about recent failed runs
gh run list --workflow mac-dmg.yml --json conclusion,createdAt,displayTitle,headSha --jq '.[] | select(.conclusion=="failure" and .displayTitle | contains("arm64")) | {title: .displayTitle, date: .createdAt, sha: .headSha}'

Length of output: 281


Script:

#!/bin/bash
# Check current workflow configuration and recent changes

# Check current workflow content
cat .github/workflows/mac-dmg.yml

# Get recent workflow runs with fixed query
gh run list --workflow mac-dmg.yml --json conclusion,createdAt,displayTitle --jq '.[] | select(.displayTitle != null) | select(.displayTitle | contains("arm64"))'

Length of output: 14245

.github/workflows/mac-dmg-x64.yml (1)

17-17: LGTM! Distribution change is consistent.

The change to 'temurin' aligns with the changes in other workflow files.

@mindmonk
mindmonk merged commit b88b9c8 into develop Jan 13, 2025
@infeo infeo added this to the next milestone Jan 17, 2025
@overheadhunter overheadhunter linked an issue Jan 18, 2025 that may be closed by this pull request
2 tasks done
@infeo infeo mentioned this pull request Jan 20, 2025
2 tasks done
@infeo
infeo deleted the feature/change-zulu-to-temurin branch January 21, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cryptomator crashes with EXCEPTION_ACCESS_VIOLATION on Windows in RemoteSession

2 participants