-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Overlay: Add CI workflow to check overlay annotations #19780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
052023e
to
81b677a
Compare
73bc5fb
to
46ac2fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks convincing, but I don't have much experience with CI workflow definitions, so cannot judge whether it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 PR adds an actions workflow to enforce usage of the
add-overlay-annotations.py
script to help maintain overlay annotations. This PR enables the script for Java.For https://github.com/github/codeql-core/issues/4951.