mirror of
https://github.com/github/codeql-action.git
synced 2026-10-29 17:17:15 +00:00
Use feature flag to enable evaluator intra-layer parallelism
This commit is contained in:
@@ -160,6 +160,7 @@ export interface CodeQL {
|
||||
querySuitePath: string | undefined,
|
||||
flags: string[],
|
||||
optimizeForLastQueryRun: boolean,
|
||||
features: FeatureEnablement,
|
||||
): Promise<void>;
|
||||
/**
|
||||
* Run 'codeql database interpret-results'.
|
||||
@@ -756,6 +757,7 @@ export async function getCodeQLForCmd(
|
||||
querySuitePath: string | undefined,
|
||||
flags: string[],
|
||||
optimizeForLastQueryRun: boolean,
|
||||
features: FeatureEnablement,
|
||||
): Promise<void> {
|
||||
const codeqlArgs = [
|
||||
"database",
|
||||
@@ -778,6 +780,14 @@ export async function getCodeQLForCmd(
|
||||
if (querySuitePath) {
|
||||
codeqlArgs.push(querySuitePath);
|
||||
}
|
||||
if (
|
||||
await features.getValue(
|
||||
Feature.EvaluatorIntraLayerParallelismEnabled,
|
||||
this,
|
||||
)
|
||||
) {
|
||||
codeqlArgs.push("--intra-layer-parallelism");
|
||||
}
|
||||
await runTool(cmd, codeqlArgs);
|
||||
},
|
||||
async databaseInterpretResults(
|
||||
|
||||
Reference in New Issue
Block a user