Bump CLI version for new analysis summaries to v2.15.0

Earlier versions support new analysis summaries, but v2.15.0 improves
the quality of the summary messages.
This commit is contained in:
Henry Mercer 2023-10-10 16:42:34 +01:00
parent 4ab92370dd
commit 2a7218bdef
5 changed files with 17 additions and 17 deletions

6
lib/codeql.test.js generated
View file

@ -625,19 +625,19 @@ const injectedConfigMacro = ava_1.default.macro({
const NEW_ANALYSIS_SUMMARY_TEST_CASES = [ const NEW_ANALYSIS_SUMMARY_TEST_CASES = [
{ {
featureEnabled: true, featureEnabled: true,
codeqlVersion: "2.14.0", codeqlVersion: "2.15.0",
flagPassed: true, flagPassed: true,
negativeFlagPassed: false, negativeFlagPassed: false,
}, },
{ {
featureEnabled: false, featureEnabled: false,
codeqlVersion: "2.14.0", codeqlVersion: "2.15.0",
flagPassed: false, flagPassed: false,
negativeFlagPassed: true, negativeFlagPassed: true,
}, },
{ {
featureEnabled: false, featureEnabled: false,
codeqlVersion: "2.13.5", codeqlVersion: "2.14.6",
flagPassed: false, flagPassed: false,
negativeFlagPassed: false, negativeFlagPassed: false,
}, },

10
lib/feature-flags.js generated
View file

@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.logCodeScanningConfigInCli = exports.useCodeScanningConfigInCli = exports.Features = exports.FEATURE_FLAGS_FILE_NAME = exports.featureConfig = exports.Feature = exports.CODEQL_VERSION_SUBLANGUAGE_FILE_COVERAGE = exports.CODEQL_VERSION_INTRA_LAYER_PARALLELISM = exports.CODEQL_VERSION_ANALYSIS_SUMMARY_V2 = exports.CODEQL_VERSION_BUNDLE_SEMANTICALLY_VERSIONED = void 0; exports.logCodeScanningConfigInCli = exports.useCodeScanningConfigInCli = exports.Features = exports.FEATURE_FLAGS_FILE_NAME = exports.featureConfig = exports.Feature = exports.CODEQL_VERSION_SUBLANGUAGE_FILE_COVERAGE = exports.CODEQL_VERSION_ANALYSIS_SUMMARY_V2 = exports.CODEQL_VERSION_INTRA_LAYER_PARALLELISM = exports.CODEQL_VERSION_BUNDLE_SEMANTICALLY_VERSIONED = void 0;
const fs = __importStar(require("fs")); const fs = __importStar(require("fs"));
const path = __importStar(require("path")); const path = __importStar(require("path"));
const semver = __importStar(require("semver")); const semver = __importStar(require("semver"));
@ -36,15 +36,15 @@ const DEFAULT_VERSION_FEATURE_FLAG_SUFFIX = "_enabled";
* Versions 2.13.4+ of the CodeQL CLI have an associated CodeQL Bundle release that is semantically versioned. * Versions 2.13.4+ of the CodeQL CLI have an associated CodeQL Bundle release that is semantically versioned.
*/ */
exports.CODEQL_VERSION_BUNDLE_SEMANTICALLY_VERSIONED = "2.13.4"; exports.CODEQL_VERSION_BUNDLE_SEMANTICALLY_VERSIONED = "2.13.4";
/**
* Versions 2.14.0+ of the CodeQL CLI support new analysis summaries.
*/
exports.CODEQL_VERSION_ANALYSIS_SUMMARY_V2 = "2.14.0";
/** /**
* Versions 2.14.0+ of the CodeQL CLI support intra-layer parallelism (aka fine-grained parallelism) options, but we * Versions 2.14.0+ of the CodeQL CLI support intra-layer parallelism (aka fine-grained parallelism) options, but we
* limit to 2.14.6 onwards, since that's the version that has mitigations against OOM failures. * limit to 2.14.6 onwards, since that's the version that has mitigations against OOM failures.
*/ */
exports.CODEQL_VERSION_INTRA_LAYER_PARALLELISM = "2.14.6"; exports.CODEQL_VERSION_INTRA_LAYER_PARALLELISM = "2.14.6";
/**
* Versions 2.15.0+ of the CodeQL CLI support new analysis summaries.
*/
exports.CODEQL_VERSION_ANALYSIS_SUMMARY_V2 = "2.15.0";
/** /**
* Versions 2.15.0+ of the CodeQL CLI support sub-language file coverage information. * Versions 2.15.0+ of the CodeQL CLI support sub-language file coverage information.
*/ */

File diff suppressed because one or more lines are too long

View file

@ -1006,19 +1006,19 @@ test("databaseInterpretResults() does not set --sarif-add-baseline-file-info for
const NEW_ANALYSIS_SUMMARY_TEST_CASES = [ const NEW_ANALYSIS_SUMMARY_TEST_CASES = [
{ {
featureEnabled: true, featureEnabled: true,
codeqlVersion: "2.14.0", codeqlVersion: "2.15.0",
flagPassed: true, flagPassed: true,
negativeFlagPassed: false, negativeFlagPassed: false,
}, },
{ {
featureEnabled: false, featureEnabled: false,
codeqlVersion: "2.14.0", codeqlVersion: "2.15.0",
flagPassed: false, flagPassed: false,
negativeFlagPassed: true, negativeFlagPassed: true,
}, },
{ {
featureEnabled: false, featureEnabled: false,
codeqlVersion: "2.13.5", codeqlVersion: "2.14.6",
flagPassed: false, flagPassed: false,
negativeFlagPassed: false, negativeFlagPassed: false,
}, },

View file

@ -18,17 +18,17 @@ const DEFAULT_VERSION_FEATURE_FLAG_SUFFIX = "_enabled";
*/ */
export const CODEQL_VERSION_BUNDLE_SEMANTICALLY_VERSIONED = "2.13.4"; export const CODEQL_VERSION_BUNDLE_SEMANTICALLY_VERSIONED = "2.13.4";
/**
* Versions 2.14.0+ of the CodeQL CLI support new analysis summaries.
*/
export const CODEQL_VERSION_ANALYSIS_SUMMARY_V2 = "2.14.0";
/** /**
* Versions 2.14.0+ of the CodeQL CLI support intra-layer parallelism (aka fine-grained parallelism) options, but we * Versions 2.14.0+ of the CodeQL CLI support intra-layer parallelism (aka fine-grained parallelism) options, but we
* limit to 2.14.6 onwards, since that's the version that has mitigations against OOM failures. * limit to 2.14.6 onwards, since that's the version that has mitigations against OOM failures.
*/ */
export const CODEQL_VERSION_INTRA_LAYER_PARALLELISM = "2.14.6"; export const CODEQL_VERSION_INTRA_LAYER_PARALLELISM = "2.14.6";
/**
* Versions 2.15.0+ of the CodeQL CLI support new analysis summaries.
*/
export const CODEQL_VERSION_ANALYSIS_SUMMARY_V2 = "2.15.0";
/** /**
* Versions 2.15.0+ of the CodeQL CLI support sub-language file coverage information. * Versions 2.15.0+ of the CodeQL CLI support sub-language file coverage information.
*/ */