Skip to content

Codegen: make missing codeql error clearer#19418

Merged
redsun82 merged 2 commits intomainfrom
redsun82/improve-codegen-codeql-requirement-message
Apr 30, 2025
Merged

Codegen: make missing codeql error clearer#19418
redsun82 merged 2 commits intomainfrom
redsun82/improve-codegen-codeql-requirement-message

Conversation

@redsun82
Copy link
Copy Markdown
Contributor

No description provided.

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

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.

Comment thread misc/codegen/generators/qlgen.py Outdated
@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.

3 participants