Overlay: Add CI workflow to check overlay annotations#19780
Merged
Conversation
This was referenced Jun 16, 2025
052023e to
81b677a
Compare
73bc5fb to
46ac2fd
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new CI workflow to enforce the proper usage of overlay annotations for Java via the add-overlay-annotations.py script.
- Added a GitHub Actions workflow to run on push and pull_request events for main and rc/* branches.
- The workflow checks overlay annotations by invoking a Python script with a Java flag.
Comments suppressed due to low confidence (2)
.github/workflows/check-overlay-annotations.yml:17
- The job id 'sync' is unclear in the context of checking overlay annotations. Consider renaming it to something more descriptive like 'check-overlay-annotations'.
sync:
.github/workflows/check-overlay-annotations.yml:22
- Verify that the script path 'config/add-overlay-annotations.py' is correct relative to the repository structure. If the script is located elsewhere, update the command to reflect the correct path.
run: python config/add-overlay-annotations.py --check java
ginsbach
reviewed
Jun 27, 2025
Contributor
ginsbach
left a comment
There was a problem hiding this comment.
This looks convincing, but I don't have much experience with CI workflow definitions, so cannot judge whether it works.
Contributor
Author
navntoft
approved these changes
Jun 27, 2025
Contributor
navntoft
left a comment
There was a problem hiding this comment.
I still have a limited experience with CI checks in this repo, but it looks fine AFAICT, mirroring the structure of e.g. check-query-ids.yml.
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.
This PR adds an actions workflow to enforce usage of the
add-overlay-annotations.pyscript to help maintain overlay annotations. This PR enables the script for Java.For https://github.com/github/codeql-core/issues/4951.