Review Library Bulk Update
Testing & Qualityreview-library-bulk-updateReview Library Bulk Update is an Agent Skill for testing & quality published in the oracle/graalvm-reachability-metadata repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Review automated pull requests with the `library-bulk-update` label in graalvm-reachability-metadata. Use when asked to review or triage a PR that bumps tested versions for existing libraries, including approve vs close decisions, CI checks, diff-scope validation, and verification of `source-code-url`, `test-code-url`, `documentation-url`, and `repository-url` changes.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/oracle/graalvm-reachability-metadata/blob/HEAD/skills/review-library-bulk-update/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/review-library-bulk-update, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Review library-bulk-update PRs
These PRs are created by the scheduled compatibility workflow and are expected to update supported library versions by changing metadata/**/index.json. They may also refresh the generated root COVERAGE.md when tested-version changes affect the coverage table.
Historical Review Logic
Previous reviews follow a simple pattern:
- Approve silently when the PR only updates the expected metadata index files, optionally with generated root
COVERAGE.md, and CI is green, then enable auto-merge. - Close the PR when it contains unrelated changes such as workflow files, Gradle files, generated sources, or test code that clearly did not belong in a bulk version update.
- Close stale PRs with merge conflicts instead of repairing them manually if a newer bulk-update PR will supersede them.
- If CI looks flaky or inconsistent with the diff, ask for or trigger a rerun rather than approving blindly.
- Treat generated-source changes as suspicious in this PR type. They should normally not appear here.
Workflow
-
Inspect the PR summary.
- Confirm the PR has label
library-bulk-update. - Read the body and verify it is a bot-generated "Added tested versions" summary.
- Gather files, reviews, issue comments, inline comments, and status checks.
- Confirm the PR has label
-
Validate the diff scope first.
- Expected files:
metadata/<group>/<artifact>/index.json, plus the generated rootCOVERAGE.mdwhen the PR updates tested versions. - Normal change shape: new values appended to
tested-versions, with formatting-only line movement around the surrounding JSON. - Be suspicious of changes to
latest,metadata-version,test-version,allowed-packages,requires, or URL fields unless the PR clearly needs them. - A pure pre-release-to-release promotion produced by
addTestedVersionis allowed when it is limited to the matching library and consists only of:metadata/<group>/<artifact>/<oldVersion> -> <newVersion>tests/src/<group>/<artifact>/<oldVersion> -> <newVersion>stats/<group>/<artifact>/<oldVersion> -> <newVersion>- matching
index.jsonchanges tometadata-version,tested-versions, and exact-version artifact URLs
- Reject or close the PR if it changes:
.github/workflows/**ci.jsongradle/**,build.gradle,settings.gradle,gradle.propertiestests/src/**outside a pure matching pre-release promotion renamestats/**outside a pure matching pre-release promotion rename- generated Java sources
- any other non-
metadata/**/index.jsonfile, except the generated rootCOVERAGE.md
- Expected files:
-
Check that the PR body matches the diff.
- Every library listed in the body should correspond to an
index.jsondiff. - Added tested versions should match the actual JSON changes.
- A
COVERAGE.mdrefresh is allowed as generated fallout from the listed library updates; it does not need to be listed as a separate library change. - There should not be hidden updates outside the listed libraries, except the generated root
COVERAGE.md.
- Every library listed in the body should correspond to an
-
Check CI before deciding.
- Required baseline: JSON validation, metadata tests, and style checks must be green.
- If the PR unexpectedly triggered build-logic or workflow-heavy jobs, that is a sign the diff scope is wrong. A root
COVERAGE.mdchange alone is not workflow-heavy. - If checks failed because the PR is contaminated by unrelated changes, close it.
- If checks failed due to likely infra flakiness or a suspicious runner issue, request a rerun or rerun all relevant tests before approval.
-
Review each changed
index.json.- Confirm the new versions were added under the correct
metadata-versionentry. - Preserve existing ordering conventions; new tested versions are typically appended in version order.
- Do not accept dropped tested versions, entry reshuffling, or unrelated field edits without a clear reason.
- For pre-release promotions, confirm
metadata-versionmoved from the matching pre-release to the corresponding full release, old pre-release values were removed fromtested-versions, and anytest-versionreferences were updated only when they pointed at the promoted test directory.
- Confirm the new versions were added under the correct
-
Apply URL verification when URL fields changed.
- This is higher scrutiny than a normal bulk-update PR.
- Review
source-code-url,test-code-url,documentation-url, andrepository-urlwith the same rules used byPopulateArtifactURLs. - For pre-release promotions, verify the
source-code-url,test-code-url, anddocumentation-urlvalues were rendered from the old version to the promotedmetadata-versionor otherwise corrected to an exact-version URL. Do not accept stale URLs that still point at the old pre-release.
-
If the PR is clean and approved, enable auto-merge.
- In this repository, approved automation PRs are expected to auto-merge after approval.
- Do this after the approval is submitted, and only when the PR is otherwise mergeable.
URL Verification Rules
If any URL field changed, verify all of the following:
repository-urlis the canonical repository root URL.repository-urlmust not include a versioned tree path such as/tree/<tag>.source-code-url,test-code-url, anddocumentation-urlmust point to the exact library version in the changed entry.- Do not accept unversioned docs,
latest,current, or branch-based docs unless there is no versioned source and the PR clearly justifies it. - Prefer Maven
-sources.jar,-test-sources.jar, and-javadoc.jarwhen they exist and are valid. - If a Maven
-sources.jaror-test-sources.jaris used, verify it contains real source files such as.java,.kt,.scala, or.groovy, not only metadata or license files. - If the URL points to a repository tree or archive instead of Maven, verify that it resolves to real source or test files for the exact version tag.
- If a candidate source or test URL cannot be verified with confidence, it should not be approved as-is.
- For pre-release promotions, template rendering is expected: old-version URL tokens may be replaced by the promoted version only when the rendered URL resolves and archive/source checks pass.
Use the logic from tests/tck-build-logic/src/main/groovy/org/graalvm/internal/tck/harness/tasks/PopulateArtifactURLs.java, especially the urlUpdateInstructions and sourceArtifactVerificationInstructions rules.
Decision Rules
Approve when all of these are true:
- The PR is limited to the expected
metadata/**/index.jsonfiles, optionally with generated rootCOVERAGE.md. - Or the PR is a pure verified pre-release promotion rename limited to the matching
metadata/,tests/src/,stats/,index.json, and optional rootCOVERAGE.mdchanges. - The diff is only tested-version maintenance or clearly justified URL maintenance.
- CI is green, or any rerun confirms green status.
- Any changed URLs were verified against the exact version.
- Auto-merge was enabled after approval when the PR is mergeable.
Close or reject when any of these are true:
- The PR contains unrelated files or generated code.
- The PR is stale, conflicted, or clearly superseded by a newer automation run.
- CI failures point to a real regression or invalid update.
- URL changes cannot be verified confidently.
Ask for rerun or deeper investigation when:
- The diff looks correct but CI failed in a way that smells like infrastructure noise.
- A generated file changed and you need to confirm whether the workflow accidentally regenerated something.
Output Style
Match the historical style:
- Clean PR: approve with no comment or a very short confirmation, then enable auto-merge.
- Contaminated PR: leave a short factual comment explaining why it is being closed or should not be merged.
- Flaky CI: leave a short comment requesting or noting a rerun.