Fix "latest" version retrieval in verify-new-library-version-compatibility.yml and improve index.json validation#917
Merged
jormundur00 merged 2 commits intomasterfrom Jan 8, 2026
Merged
Conversation
…ility.yml and improve index.json validation
vjovanov
reviewed
Jan 8, 2026
| name: "📋 Get list of all supported libraries with newer versions" | ||
| # Opens PRs, with labels and assignees. Works only on the main repo. | ||
| if: github.repository == 'oracle/graalvm-reachability-metadata' | ||
| if: github.repository == 'jormundur00/graalvm-reachability-metadata' |
vjovanov
approved these changes
Jan 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR transitions the extraction of library test parameters from a GitHub Actions Bash step into a dedicated Gradle task and introduces stricter semantic validation for library indexes.
1. New
extractLibraryTestParamsGradle TaskMoved the logic for resolving test paths and versions from unmaintained shell scripts into a formal Gradle task.
"latest": trueflag and the"test-version"overrides inindex.json. Previously, the system relied on a simple filesystem directory scan, which could lead to incorrect version selection.index.jsonas the primary authority. It resolves versions in the following priority:"latest": true."metadata-version"defined in the JSON.LATEST_VERSION,TEST_PATH, andTEST_COORDINATES, automatically populatingGITHUB_ENVwhen run in CI.2. Enhanced Semantic Index Validation
Updated the
validateIndexFilestask with a new "Forward-Referencing" integrity check.index.json, a version in thetested-versionsarray cannot be higher than the next availablemetadata-versionin the same file.Fixes: #914