-
Notifications
You must be signed in to change notification settings - Fork 2
[UPDATE PRIMITIVE] codeql_query_compile enables --dump-dil by default with .dil file persistence
#235
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
data-douser
merged 7 commits into
next
from
copilot/update-codeql-query-compile-default
Apr 11, 2026
Merged
[UPDATE PRIMITIVE] codeql_query_compile enables --dump-dil by default with .dil file persistence
#235
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9c89b29
Initial plan
Copilot 7e6bf0d
feat: enable --dump-dil by default for codeql_query_compile tool
Copilot f19ee41
feat: persist DIL output to a .dil file for codeql_query_compile
Copilot d927751
Address PR #234 review feedback
data-douser a8b8c8f
Fix compile_query client integration test
data-douser 15d537f
Address PR #235 review feedback
data-douser 309c2b0
Regenerate package-lock.json after rebase
data-douser File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...nt/integration-tests/primitives/tools/codeql_query_compile/compile_query/test-config.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "toolName": "codeql_query_compile", | ||
| "arguments": { | ||
|
data-douser marked this conversation as resolved.
|
||
| "query": "server/ql/javascript/examples/src/ExampleQuery1/ExampleQuery1.ql" | ||
|
data-douser marked this conversation as resolved.
|
||
| } | ||
| } | ||
|
data-douser marked this conversation as resolved.
|
||
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| /** | ||
| * Tests for query-compile tool | ||
| */ | ||
|
|
||
| import { describe, it, expect } from 'vitest'; | ||
| import { codeqlQueryCompileTool } from '../../../../src/tools/codeql/query-compile'; | ||
|
|
||
| describe('Query Compile Tool', () => { | ||
| describe('Tool Definition', () => { | ||
| it('should have correct name', () => { | ||
| expect(codeqlQueryCompileTool.name).toBe('codeql_query_compile'); | ||
| }); | ||
|
|
||
| it('should have correct command and subcommand', () => { | ||
| expect(codeqlQueryCompileTool.command).toBe('codeql'); | ||
| expect(codeqlQueryCompileTool.subcommand).toBe('query compile'); | ||
| }); | ||
|
|
||
| it('should have input schema with expected fields', () => { | ||
| const schema = codeqlQueryCompileTool.inputSchema; | ||
|
|
||
| expect(schema).toHaveProperty('query'); | ||
| expect(schema).toHaveProperty('database'); | ||
| expect(schema).toHaveProperty('dump-dil'); | ||
| expect(schema).toHaveProperty('library'); | ||
| expect(schema).toHaveProperty('output'); | ||
| expect(schema).toHaveProperty('warnings'); | ||
| expect(schema).toHaveProperty('verbose'); | ||
| expect(schema).toHaveProperty('additionalArgs'); | ||
| }); | ||
|
|
||
| it('should have dump-dil as optional boolean parameter', () => { | ||
| const dumpDil = codeqlQueryCompileTool.inputSchema['dump-dil']; | ||
| expect(dumpDil).toBeDefined(); | ||
| expect(dumpDil.isOptional()).toBe(true); | ||
| }); | ||
|
|
||
| it('should have examples', () => { | ||
| expect(codeqlQueryCompileTool.examples).toBeDefined(); | ||
| expect(codeqlQueryCompileTool.examples!.length).toBeGreaterThan(0); | ||
| }); | ||
| }); | ||
| }); |
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.
Uh oh!
There was an error while loading. Please reload this page.