-
Notifications
You must be signed in to change notification settings - Fork 191
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
Expand disk cache evaluator options #778
Conversation
], | ||
"default": null, | ||
"minimum": 1024, | ||
"description": "Maximum size of the disk cache (in MB). Leave blank to allow the evaluator to automatically adjust the size of the disk cache based on the size of the codebase and the complexity of the queries being executed." |
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.
"description": "Maximum size of the disk cache (in MB). Leave blank to allow the evaluator to automatically adjust the size of the disk cache based on the size of the codebase and the complexity of the queries being executed." | |
"description": "Maximum size of the disk cache (in MB). Leave blank or set to 0 to allow the evaluator to automatically adjust the size of the disk cache based on the size of the codebase and the complexity of the queries being executed." |
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.
The value can't actually be set to 0
because of the "minimum": 1024
@@ -123,6 +123,20 @@ | |||
"maximum": 1024, | |||
"description": "Number of threads for running queries." | |||
}, | |||
"codeQL.runningQueries.saveCache": { |
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.
Probably add a scope of "scope": "window"
to ensure that downloaded workspaces don't accidentally blow up someone's hard drive.
Co-authored-by: Andrew Eisenberg <[email protected]>
Nice work! The failing integration build is probably just a flaky test. Re-running. |
@github/docs-content-dsp Do we need to update docs for this? |
👋🏽 Thanks for the ping! This one doesn't need a docs update 😃 (We have a general section about "Configuring settings for running queries", and we can rely on the descriptions in the extension itself for more detail.) |
This PR addresses #593 by expanding the options that can be passed to control how the evaluator handles the disk cache. In particular, it exposes to the user two settings - the first enables the saving of intermediate results to the cache, and the second allows limiting of the size of the cache. The default behaviour is unchanged from the current options - i.e. intermediate results are not saved to the disk cache, and the evaluator is allowed to choose its own limit on maximum cache size.