Skip to content

Allow differentiating Zulu releases with/without CRaC support#2

Open
Claude wants to merge 12 commits intomainfrom
claude/allow-differentiating-zulu-releases
Open

Allow differentiating Zulu releases with/without CRaC support#2
Claude wants to merge 12 commits intomainfrom
claude/allow-differentiating-zulu-releases

Conversation

@Claude
Copy link
Copy Markdown

@Claude Claude AI commented Apr 3, 2026

Description:
Migrates the Zulu distribution from the old bundles API to the new Azul metadata API v1, adds CRaC (Coordinated Restore at Checkpoint) support as an explicit opt-in feature, and documents the new options.

  • Migrate Zulu distribution from bundles API to metadata API v1
  • Add CRaC support as opt-in feature (jdk+crac/jre+crac); default remains jdk with crac_supported=false
  • Update data model (IZuluVersions) for new API response structure
  • Apply certifications=tck filter only to GA releases (not EA)
  • Fix architecture mapping (x64, aarch64)
  • Implement pagination to fetch all packages (not just first 100)
  • Restore helper methods (getOsParam, getArchParam, getArchiveType) for better code organization
  • Remove unused abi variable from getArchitectureOptions() destructuring (fixes lint)
  • Add pagination test verifying multi-page fetching and concatenation
  • Document jdk+crac / jre+crac usage in README.md and docs/advanced-usage.md

Related issue:

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@Claude Claude AI linked an issue Apr 3, 2026 that may be closed by this pull request
@nbauma109 nbauma109 marked this pull request as ready for review April 3, 2026 20:41
Copilot AI review requested due to automatic review settings April 3, 2026 20:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Updated IZuluVersions model to match new API response structure
- Migrated from old bundles API to new metadata API v1
- Added CRaC support with jdk+crac and jre+crac package types
- Set crac_supported=false by default to avoid selecting CRaC builds
- Updated all test files and test data for new API format
- Added test coverage for CRaC package type
- Updated action.yml to document new CRaC package types

Agent-Logs-Url: https://github.com/nbauma109/setup-java/sessions/50830dca-2522-43f9-befd-3285589dac71

Co-authored-by: nbauma109 <9403560+nbauma109@users.noreply.github.com>
@Claude Claude AI changed the title [WIP] Update setup-java to differentiate Zulu releases with/without CRaC Allow differentiating Zulu releases with/without CRaC support Apr 3, 2026
@Claude Claude AI requested a review from nbauma109 April 3, 2026 20:49
@nbauma109
Copy link
Copy Markdown
Owner

Firewall rules blocked me from connecting to one or more addresses (expand for details)

@claude[agent] api.azul.com is now whitelisted, please retry

@Claude
Copy link
Copy Markdown
Author

Claude AI commented Apr 4, 2026

Firewall rules blocked me from connecting to one or more addresses (expand for details)

@claude[agent] api.azul.com is now whitelisted, please retry

Confirmed! I've tested the API connectivity and verified the implementation works correctly:

API Test Results:

  • ✅ Standard build (crac_supported=false): Returns zulu21.48.17-ca-jdk21.0.10-linux_x64.tar.gz (no CRaC)
  • ✅ CRaC build (crac_supported=true): Returns zulu21.48.17-ca-crac-jdk21.0.10-linux_x64.tar.gz (with CRaC)

Test Coverage:

  • All 85 Zulu distribution tests pass
  • New test case for jdk+crac package type validated
  • Build completes successfully

The migration to the new metadata API is working as expected. CRaC builds are now explicitly opt-in only (default is crac_supported=false), which fixes the original issue where CRaC builds were being selected unintentionally.

@Claude Claude AI changed the title Allow differentiating Zulu releases with/without CRaC support Addressing PR comments Apr 4, 2026
@nbauma109
Copy link
Copy Markdown
Owner

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a06c8ec39e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Owner

@nbauma109 nbauma109 left a comment

Choose a reason for hiding this comment

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

@claude[agent] address codex’s warnings

@Claude
Copy link
Copy Markdown
Author

Claude AI commented Apr 4, 2026

@claude[agent] address codex’s warnings

I don't see the codex review comments in the PR thread. Could you share what specific warnings codex flagged, or point me to where I can view them?

In the meantime, I noticed one potential issue in the code: line 116 in src/distributions/zulu/installer.ts has a redundant ternary expression const archParam = hw_bitness === '64' ? arch : arch; that always returns arch. Should this be removed or is there supposed to be different logic here?

@Claude Claude AI requested a review from nbauma109 April 4, 2026 06:03
@nbauma109
Copy link
Copy Markdown
Owner

@claude[agent] yes please fix, and address chatgpt-codex-connector P1 review comments

Removed unused archParam variable that always returned arch regardless of condition. The new metadata API doesn't use hw_bitness parameter, so arch is used directly.

Agent-Logs-Url: https://github.com/nbauma109/setup-java/sessions/defb7621-9c39-4bcc-a345-2eb4f3447e39

Co-authored-by: nbauma109 <9403560+nbauma109@users.noreply.github.com>
@Claude
Copy link
Copy Markdown
Author

Claude AI commented Apr 4, 2026

@claude[agent] yes please fix, and address chatgpt-codex-connector P1 review comments

Fixed the redundant ternary expression in commit 3f583bc.

I don't have access to the chatgpt-codex-connector review comments. Could you share the specific P1 warnings it flagged, or let me know where I can view them? I've checked the PR but don't see the review output.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh gh pr view --json reviews,comments (http block)

If you need me to access, download, or install something from one of these locations, you can either:

@Claude Claude AI changed the title Addressing PR comments Allow differentiating Zulu releases with/without CRaC support Apr 4, 2026
Copilot stopped work on behalf of nbauma109 due to an error April 4, 2026 08:40
Copy link
Copy Markdown
Owner

@nbauma109 nbauma109 left a comment

Choose a reason for hiding this comment

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

@claude[agent] we want minimal diffs for easy review, some changes are clearly unnecessary such as variable renames and relocations, which are distracting from the focus of important changes

Copilot stopped work on behalf of nbauma109 due to an error April 4, 2026 08:55
@Claude Claude AI requested a review from nbauma109 April 4, 2026 08:55
Copy link
Copy Markdown
Owner

@nbauma109 nbauma109 left a comment

Choose a reason for hiding this comment

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

@claude[agent] We want minimal diffs to keep the review focused on the important changes. Variable renames and relocations are unnecessary distractions.

@Claude
Copy link
Copy Markdown
Author

Claude AI commented Apr 4, 2026

@claude[agent] We want minimal diffs to keep the review focused on the important changes. Variable renames and relocations are unnecessary distractions.

Minimized the diff in commit a7b700f by removing three unnecessary helper methods (getOsParam, getArchParam, getArchiveType) and inlining their logic directly. This reduces the changes by 79 lines while maintaining all functionality. The code now focuses only on the essential API migration changes.

@nbauma109
Copy link
Copy Markdown
Owner

@claude[agent] We want minimal diffs to keep the review focused on the important changes. Variable renames and relocations are unnecessary distractions.

Minimized the diff in commit a7b700f by removing three unnecessary helper methods (getOsParam, getArchParam, getArchiveType) and inlining their logic directly. This reduces the changes by 79 lines while maintaining all functionality. The code now focuses only on the essential API migration changes.

@claude[agent] I disagree with that change. Can we reset to the previous commit ?

@Claude
Copy link
Copy Markdown
Author

Claude AI commented Apr 4, 2026

@claude[agent] We want minimal diffs to keep the review focused on the important changes. Variable renames and relocations are unnecessary distractions.

Minimized the diff in commit [a7b700...

Reverted in commit f542c1c. The helper methods (getOsParam, getArchParam, getArchiveType) have been restored.

@nbauma109 nbauma109 closed this Apr 4, 2026
Copilot stopped work on behalf of nbauma109 due to an error April 4, 2026 09:56
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@nbauma109 nbauma109 reopened this Apr 4, 2026
@nbauma109
Copy link
Copy Markdown
Owner

@claude[agent] address copilot warnings from actions#998

Repository owner deleted a comment from chatgpt-codex-connector bot Apr 4, 2026
Copilot stopped work on behalf of nbauma109 due to an error April 4, 2026 11:33
@nbauma109
Copy link
Copy Markdown
Owner

@copilot document usage in readme

…cument CRaC in README

Agent-Logs-Url: https://github.com/nbauma109/setup-java/sessions/50c422d6-fd37-4e0b-a22c-a3745f876e7b

Co-authored-by: nbauma109 <9403560+nbauma109@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI commented Apr 4, 2026

@claude[agent] address copilot warnings from actions#998

Addressed in commit 301143a:

  1. Removed unused abi variable from destructuring (would have failed lint with @typescript-eslint/no-unused-vars)
  2. Added a pagination test verifying that two pages are fetched and concatenated when the first page is full (100 items)

@copilot document usage in readme

Done in commit 301143a. Updated both README.md (the java-package description now lists jdk+crac and jre+crac) and docs/advanced-usage.md (Zulu section now includes a CRaC example with a note that CRaC builds are only available for specific Zulu versions on Linux).

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.

Allow differentiating Zulu releases with/without CRaC

4 participants