Skip to content

Misc: Streamline consistency-queries/qlpack.yml #7842

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

Merged
merged 7 commits into from
Feb 9, 2022

Conversation

RasmusWL
Copy link
Member

@RasmusWL RasmusWL commented Feb 4, 2022

Wanted to add this for Python, so that was the day I learned about .codeqlmanifest.json 😮

I looked at the qlpack.yml for the other languages, and since they were all slightly different, I decided to streamline them. I also made them all use the preferred dependencies instead of libraryPathDependencies.

I'm not sure whether this means the consistency queries were run using
the 0.0.1 release of the `codeql/ruby-all` qlpack, but using `"*"` at
least ensures that it is always using the version from the CodeQL repo.
@@ -0,0 +1,5 @@
name: codeql/python-consistency-queries
groups: [python, consistency-queries]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add this to the other packs as well?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also add the test group? If I'm not mistaken QL packs in the test group are not published. @aeisenberg is that right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point 👍 Truth be told, I made the commits for streamlining the other languages and the one for adding the Python consistency queries on two separate days (originally in 2 separate branches), so I had forgotten about this detail.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Since they are now part of the workspace, they will be picked up when publishing.

Note that if you remove the groups property, the they will be ignored. So, either add the test group here and to all consistency query packs. Or remove this group.

I'd prefer adding the test group here and else where since we may want to specify this in the future

@RasmusWL RasmusWL requested a review from aeisenberg February 7, 2022 10:16
@RasmusWL RasmusWL merged commit 9d5e8d5 into github:main Feb 9, 2022
@RasmusWL RasmusWL deleted the consistency-queires branch February 9, 2022 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants