Do not set --expect-discarded-cache on "cleanup-level: overlay"

When a user specifies "cleanup-level: overlay", it suggests that the
user wishes to preserve the evaluation cache for future use. So in this
case we should not set --expect-discarded-cache when running queries.
This commit is contained in:
Chuan-kai Lin 2025-03-10 10:32:13 -07:00
parent b2e6519679
commit d76f393713
5 changed files with 18 additions and 15 deletions

View file

@ -805,7 +805,6 @@ export async function getCodeQLForCmd(
"run-queries",
...flags,
databasePath,
"--expect-discarded-cache",
"--intra-layer-parallelism",
"--min-disk-free=1024", // Try to leave at least 1GB free
"-v",