graalvm: update to latest 25.0.2 and fix checkver by B67687 · Pull Request #596 · ScoopInstaller/Java · GitHub
Skip to content

graalvm: update to latest 25.0.2 and fix checkver#596

Closed
B67687 wants to merge 5 commits into
ScoopInstaller:masterfrom
B67687:fix/graalvm-checkver
Closed

graalvm: update to latest 25.0.2 and fix checkver#596
B67687 wants to merge 5 commits into
ScoopInstaller:masterfrom
B67687:fix/graalvm-checkver

Conversation

@B67687

@B67687 B67687 commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update version from 22.3.1 to 25.0.2
  • Fix checkver regex from vm- to jdk- pattern
  • Use extract_to + installer script for consistent extraction
  • Update autoupdate to use jdk- URL pattern

This was missed in previous PRs (#591, #592) which fixed the version-specific graalvm manifests but left the generic graalvm.json behind.

Validation

checkver.ps1 graalvm -> 25.0.2
checkurls.ps1 graalvm -> [1][1][0]

Summary by CodeRabbit

  • Chores
    • Upgraded bundled JDK from GraalVM CE 22.3.1 to Community JDK 25.0.2.
    • Switched to the Windows x64 binary distribution and refreshed checksum for the new artifact.
    • Updated version detection to use GitHub releases and adjusted autoupdate artifact naming.
    • Installation now uses a temporary staged install step for cleaner, atomic deployment.

Review Change Stack

- Update version from 22.3.1 to 25.0.2
- Fix checkver regex from vm- to jdk- pattern
- Use extract_to + installer script for consistent extraction
- Update autoupdate to use jdk- URL pattern
@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

3 similar comments
@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@bucket/graalvm.json`:
- Around line 21-22: The current regex string "jdk-(25[\\d.]*)" hard-codes major
version 25; update the value associated with the "regex" key (the
"jdk-(25[\\d.]*)" literal) to a major-agnostic pattern such as "jdk-([\\d.]+)"
or "jdk-([0-9]+(?:\\.[0-9]+)*)" so future jdk-26/27... releases are matched
automatically while preserving the capture group used by the checkver logic.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e06055c6-66c9-4989-9d5b-1dc820980a6c

📥 Commits

Reviewing files that changed from the base of the PR and between ef20951 and 809e0c5.

📒 Files selected for processing (1)
  • bucket/graalvm.json

Comment thread bucket/graalvm.json Outdated
B67687 added 2 commits April 29, 2026 22:43
CodeRabbit suggestion: change regex from jdk-(25[\d.]*) to jdk-([\d.]+)
to support future jdk-26, jdk-27, etc. releases
@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

1 similar comment
@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@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.

🧹 Nitpick comments (1)
bucket/graalvm.json (1)

9-14: Harden installer script for future archive layout changes

Current logic on Line 11 only moves contents from child directories under tmp. If a future release ships files directly in tmp (no subdirectory), install would remove tmp without moving payload.

Proposed hardening
     "installer": {
         "script": [
-            "(Get-ChildItem -Directory \"$dir\\tmp\").FullName | % { Move-Item \"$_\\*\" \"$dir\" }",
-            "Remove-Item -Recurse \"$dir\\tmp\""
+            "$tmp = Join-Path $dir 'tmp'",
+            "$dirs = Get-ChildItem -Directory $tmp",
+            "if ($dirs) { $dirs | ForEach-Object { Move-Item (Join-Path $_.FullName '*') $dir -Force } } else { Move-Item (Join-Path $tmp '*') $dir -Force }",
+            "Remove-Item -Recurse -Force $tmp"
         ]
     },
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@bucket/graalvm.json` around lines 9 - 14, The installer script currently only
moves contents from child directories under "tmp"; update the installer.script
to move all entries (files and folders) from "$dir\\tmp\\*" into "$dir" before
removing "$dir\\tmp" so payloads placed directly in tmp are preserved; replace
the existing Move-Item/Get-ChildItem pipeline with a single Move-Item
"$dir\\tmp\\*" "$dir" (add -Force and -ErrorAction Stop as needed) and then
Remove-Item -Recurse "$dir\\tmp" to safely clean up.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@bucket/graalvm.json`:
- Around line 9-14: The installer script currently only moves contents from
child directories under "tmp"; update the installer.script to move all entries
(files and folders) from "$dir\\tmp\\*" into "$dir" before removing "$dir\\tmp"
so payloads placed directly in tmp are preserved; replace the existing
Move-Item/Get-ChildItem pipeline with a single Move-Item "$dir\\tmp\\*" "$dir"
(add -Force and -ErrorAction Stop as needed) and then Remove-Item -Recurse
"$dir\\tmp" to safely clean up.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c4cd4f72-c796-4d08-9ef5-e50dd6617c78

📥 Commits

Reviewing files that changed from the base of the PR and between 809e0c5 and 922aa5d.

📒 Files selected for processing (1)
  • bucket/graalvm.json

@github-actions

Copy link
Copy Markdown
Contributor

All changes look good.

Wait for review from human collaborators.

graalvm

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

@coderabbitai

coderabbitai Bot commented Apr 30, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@github-actions

Copy link
Copy Markdown
Contributor

All changes look good.

Wait for review from human collaborators.

graalvm

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

Changed from /releases/latest redirect (unreliable) to GitHub API
with jsonpath + regex, matching the established convention used
by graalvm-ce-17jdk.json and other version-specific graalvm manifests.
@github-actions

Copy link
Copy Markdown
Contributor

All changes look good.

Wait for review from human collaborators.

graalvm

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

@B67687 B67687 closed this by deleting the head repository Jun 8, 2026
@B67687

B67687 commented Jun 13, 2026

Copy link
Copy Markdown
Contributor Author

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.

1 participant