graalvm: update to latest 25.0.2 and fix checkver#596
Conversation
- 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
✅ Actions performedReview triggered.
|
3 similar comments
✅ Actions performedReview triggered.
|
✅ Actions performedReview triggered.
|
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
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
📒 Files selected for processing (1)
bucket/graalvm.json
CodeRabbit suggestion: change regex from jdk-(25[\d.]*) to jdk-([\d.]+) to support future jdk-26, jdk-27, etc. releases
✅ Actions performedReview triggered.
|
1 similar comment
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
bucket/graalvm.json (1)
9-14: Harden installer script for future archive layout changesCurrent logic on Line 11 only moves contents from child directories under
tmp. If a future release ships files directly intmp(no subdirectory), install would removetmpwithout 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
📒 Files selected for processing (1)
bucket/graalvm.json
434e5b1 to
503ab42
Compare
|
All changes look good. Wait for review from human collaborators. graalvm
|
✅ Actions performedReview triggered.
|
|
All changes look good. Wait for review from human collaborators. graalvm
|
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.
|
All changes look good. Wait for review from human collaborators. graalvm
|

Summary
22.3.1to25.0.2vm-tojdk-patternextract_to+ installer script for consistent extractionjdk-URL patternThis was missed in previous PRs (#591, #592) which fixed the version-specific graalvm manifests but left the generic graalvm.json behind.
Validation
Summary by CodeRabbit