Skip to content

Codegen: make missing codeql error clearer #19418

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 2 commits into from
Apr 30, 2025

Conversation

redsun82
Copy link
Contributor

No description provided.

@redsun82 redsun82 requested review from jketema and Copilot April 30, 2025 09:39
@redsun82 redsun82 requested a review from a team as a code owner April 30, 2025 09:39
Copy link
Contributor

@Copilot Copilot AI left a 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 aims to improve the clarity of the error message when the CodeQL binary is missing by updating both the generator and its corresponding tests.

  • Updated test cases in misc/codegen/test/test_qlgen.py to simulate missing CodeQL binaries.
  • Enhanced error messaging in misc/codegen/generators/qlgen.py by explicitly checking for the binary’s existence.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
misc/codegen/test/test_qlgen.py Added tests to verify clearer error handling for missing CodeQL binary.
misc/codegen/generators/qlgen.py Improved format() by adding explicit existence checks and informative error messages for the CodeQL binary.

@redsun82 redsun82 merged commit 1c1ccda into main Apr 30, 2025
17 checks passed
@redsun82 redsun82 deleted the redsun82/improve-codegen-codeql-requirement-message branch April 30, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants