You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this PR we remove the unnecessary inner, version-based, metadata index.json file. This file was only used to verify the contents of the specific version directory (to verify that all files listed in the index.json are present in the directory, and no additional files are present). This file seems redundant, as the MetadataFilesCheckerTask already checks if all the files listed in the inner directory are specific metadata files (so checking if the files match the files listed in index.json seems unnecessary).
The removal of this file is important for the 1.0.0 release of GraalVM Reachability metadata, as we aim to simplify the addition of new metadata to the repository, as well as remove the extra overhead we got from the additional JSON files.
As this PR aims to modify all existing metadata directories, it has to be split into two PRs to avoid reaching the GitHub Actions job limit.
The "Test changed metadata" and "Test changed build logic" checks fail here because we try to remove the index.json file located in metadata/org.eclipse.angus/jakarta.mail/1.0.0, but the global index.json (located in metadata/index.json) has no entry for that artifact.
Looking at the PR where metadata for this artifact was added it was, probably by mistake, not added to the global index.json, and the metadata for it was not changed since, so this check never ran.
I can add it to the index.json in this PR (or we can open a separate issue for it), but I'm unsure which allowed-packages should be listed for this artifact.
The "Test changed metadata" and "Test changed build logic" checks fail here because we try to remove the index.json file located in metadata/org.eclipse.angus/jakarta.mail/1.0.0, but the global index.json (located in metadata/index.json) has no entry for that artifact.
Looking at the PR where metadata for this artifact was added it was, probably by mistake, not added to the global index.json, and the metadata for it was not changed since, so this check never ran.
I can add it to the index.json in this PR (or we can open a separate issue for it), but I'm unsure which allowed-packages should be listed for this artifact.
This seems to me like a bug as well. allowed-packages should cover the packages of the classes specified in the condition entries within the config files. In this case "jakarta" should work.
Also checkMetadataFiles will probably fail due to missing condition entries in the metadata/org.eclipse.angus/jakarta.mail/1.0.0/resource-config.json.
jormundur00
changed the title
Remove inner metadata index.json (metadata/<groupId>/<artifactId>/<version>/index.json) from the repository
Remove inner metadata index.json (metadata/<groupId>/<artifactId>/<version>/index.json) from the repository (Part #1)
Dec 9, 2025
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
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?
In this PR we remove the unnecessary inner, version-based, metadata
index.jsonfile. This file was only used to verify the contents of the specific version directory (to verify that all files listed in theindex.jsonare present in the directory, and no additional files are present). This file seems redundant, as theMetadataFilesCheckerTaskalready checks if all the files listed in the inner directory are specific metadata files (so checking if the files match the files listed inindex.jsonseems unnecessary).The removal of this file is important for the 1.0.0 release of GraalVM Reachability metadata, as we aim to simplify the addition of new metadata to the repository, as well as remove the extra overhead we got from the additional JSON files.
As this PR aims to modify all existing metadata directories, it has to be split into two PRs to avoid reaching the GitHub Actions job limit.
Fixes: #846