| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th | |||
| 4 | 4 | ||
| 5 | 5 | ## [UNRELEASED] | |
| 6 | 6 | ||
| 7 | - No user facing changes. | ||
| 7 | + - We are rolling out a feature in August 2023 that will improve multi-threaded performance on larger runners. [#1817](https://github.com/github/codeql-action/pull/1817) | ||
| 8 | 8 | ||
| 9 | 9 | ## 2.21.2 - 28 Jul 2023 | |
| 10 | 10 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -487,6 +487,7 @@ export async function runQueries( | |||
| 487 | 487 | querySuitePath, | |
| 488 | 488 | queryFlags, | |
| 489 | 489 | optimizeForLastQueryRun, | |
| 490 | + features, | ||
| 490 | 491 | ); | |
| 491 | 492 | ||
| 492 | 493 | logger.debug(`BQRS results produced for ${language} (queries: ${type})"`); | |
@@ -521,6 +522,7 @@ export async function runQueries( | |||
| 521 | 522 | querySuitePath, | |
| 522 | 523 | queryFlags, | |
| 523 | 524 | optimizeForLastQueryRun, | |
| 525 | + features, | ||
| 524 | 526 | ); | |
| 525 | 527 | ||
| 526 | 528 | return querySuitePath; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -160,6 +160,7 @@ export interface CodeQL { | |||
| 160 | 160 | querySuitePath: string | undefined, | |
| 161 | 161 | flags: string[], | |
| 162 | 162 | optimizeForLastQueryRun: boolean, | |
| 163 | + features: FeatureEnablement, | ||
| 163 | 164 | ): Promise<void>; | |
| 164 | 165 | /** | |
| 165 | 166 | * Run 'codeql database interpret-results'. | |
@@ -756,6 +757,7 @@ export async function getCodeQLForCmd( | |||
| 756 | 757 | querySuitePath: string | undefined, | |
| 757 | 758 | flags: string[], | |
| 758 | 759 | optimizeForLastQueryRun: boolean, | |
| 760 | + features: FeatureEnablement, | ||
| 759 | 761 | ): Promise<void> { | |
| 760 | 762 | const codeqlArgs = [ | |
| 761 | 763 | "database", | |
@@ -778,6 +780,14 @@ export async function getCodeQLForCmd( | |||
| 778 | 780 | if (querySuitePath) { | |
| 779 | 781 | codeqlArgs.push(querySuitePath); | |
| 780 | 782 | } | |
| 783 | + if ( | ||
| 784 | + await features.getValue( | ||
| 785 | + Feature.EvaluatorIntraLayerParallelismEnabled, | ||
| 786 | + this, | ||
| 787 | + ) | ||
| 788 | + ) { | ||
| 789 | + codeqlArgs.push("--intra-layer-parallelism"); | ||
| 790 | + } | ||
| 781 | 791 | await runTool(cmd, codeqlArgs); | |
| 782 | 792 | }, | |
| 783 | 793 | async databaseInterpretResults( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,6 +46,7 @@ export enum Feature { | |||
| 46 | 46 | CliConfigFileEnabled = "cli_config_file_enabled", | |
| 47 | 47 | DisableKotlinAnalysisEnabled = "disable_kotlin_analysis_enabled", | |
| 48 | 48 | DisablePythonDependencyInstallationEnabled = "disable_python_dependency_installation_enabled", | |
| 49 | + EvaluatorIntraLayerParallelismEnabled = "evaluator_intra_layer_parallelism_enabled", | ||
| 49 | 50 | ExportDiagnosticsEnabled = "export_diagnostics_enabled", | |
| 50 | 51 | MlPoweredQueriesEnabled = "ml_powered_queries_enabled", | |
| 51 | 52 | NewAnalysisSummaryEnabled = "new_analysis_summary_enabled", | |
@@ -68,6 +69,11 @@ export const featureConfig: Record< | |||
| 68 | 69 | minimumVersion: "2.11.6", | |
| 69 | 70 | defaultValue: true, | |
| 70 | 71 | }, | |
| 72 | + [Feature.EvaluatorIntraLayerParallelismEnabled]: { | ||
| 73 | + envVar: "CODEQL_EVALUATOR_INTRA_LAYER_PARALLELISM", | ||
| 74 | + minimumVersion: "2.14.0", | ||
| 75 | + defaultValue: false, | ||
| 76 | + }, | ||
| 71 | 77 | [Feature.ExportDiagnosticsEnabled]: { | |
| 72 | 78 | envVar: "CODEQL_ACTION_EXPORT_DIAGNOSTICS", | |
| 73 | 79 | minimumVersion: "2.12.4", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments