diff --git a/.github/workflows/debug-artifacts-failure.yml b/.github/workflows/debug-artifacts-failure.yml index de10d98992..1cce35f68e 100644 --- a/.github/workflows/debug-artifacts-failure.yml +++ b/.github/workflows/debug-artifacts-failure.yml @@ -65,7 +65,7 @@ jobs: shell: bash run: | LANGUAGES="cpp csharp go java javascript python" - pushd "./my-debug-artifacts" + cd "./my-debug-artifacts" echo "Artifacts from run:" for language in $LANGUAGES; do echo "- Checking $language" @@ -82,6 +82,5 @@ jobs: exit 1 fi done - popd env: GO111MODULE: auto diff --git a/lib/cli-errors.js b/lib/cli-errors.js index a0d50f0198..ef1fb9899a 100644 --- a/lib/cli-errors.js +++ b/lib/cli-errors.js @@ -2,6 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.wrapCliConfigurationError = exports.getCliConfigCategoryIfExists = exports.cliErrorsConfig = exports.CliConfigErrorCategory = exports.CommandInvocationError = void 0; const util_1 = require("./util"); +const NO_SOURCE_CODE_SEEN_DOCS_LINK = "https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build"; /** * A class of Error that we can classify as an error stemming from a CLI * invocation, with associated exit code, stderr,etc. @@ -96,7 +97,11 @@ var CliConfigErrorCategory; CliConfigErrorCategory["IncompatibleWithActionVersion"] = "IncompatibleWithActionVersion"; CliConfigErrorCategory["InitCalledTwice"] = "InitCalledTwice"; CliConfigErrorCategory["InvalidSourceRoot"] = "InvalidSourceRoot"; - CliConfigErrorCategory["NoJavaScriptTypeScriptCodeFound"] = "NoJavaScriptTypeScriptCodeFound"; + CliConfigErrorCategory["NoBuildCommandAutodetected"] = "NoBuildCommandAutodetected"; + CliConfigErrorCategory["NoBuildMethodAutodetected"] = "NoBuildMethodAutodetected"; + CliConfigErrorCategory["NoSourceCodeSeen"] = "NoSourceCodeSeen"; + CliConfigErrorCategory["NoSupportedBuildCommandSucceeded"] = "NoSupportedBuildCommandSucceeded"; + CliConfigErrorCategory["NoSupportedBuildSystemDetected"] = "NoSupportedBuildSystemDetected"; })(CliConfigErrorCategory || (exports.CliConfigErrorCategory = CliConfigErrorCategory = {})); /** * All of our caught CLI error messages that we handle specially: ie. if we @@ -105,38 +110,65 @@ var CliConfigErrorCategory; exports.cliErrorsConfig = { // Version of CodeQL CLI is incompatible with this version of the CodeQL Action [CliConfigErrorCategory.IncompatibleWithActionVersion]: { - cliErrorMessageSnippets: ["is not compatible with this CodeQL CLI"], + cliErrorMessageCandidates: [ + new RegExp("is not compatible with this CodeQL CLI"), + ], }, [CliConfigErrorCategory.InitCalledTwice]: { - cliErrorMessageSnippets: [ - "Refusing to create databases", - "exists and is not an empty directory", + cliErrorMessageCandidates: [ + new RegExp("Refusing to create databases .* but could not process any of it"), ], - additionalErrorMessageToPrepend: `Is the "init" action called twice in the same job?`, + additionalErrorMessageToAppend: `Is the "init" action called twice in the same job?`, }, // Expected source location for database creation does not exist [CliConfigErrorCategory.InvalidSourceRoot]: { - cliErrorMessageSnippets: ["Invalid source root"], + cliErrorMessageCandidates: [new RegExp("Invalid source root")], + }, + [CliConfigErrorCategory.NoBuildCommandAutodetected]: { + cliErrorMessageCandidates: [ + new RegExp("Could not auto-detect a suitable build method"), + ], + }, + [CliConfigErrorCategory.NoBuildMethodAutodetected]: { + cliErrorMessageCandidates: [ + new RegExp("Could not detect a suitable build command for the source checkout"), + ], }, - /** - * Earlier versions of the JavaScript extractor (pre-CodeQL 2.12.0) extract externs even if no - * source code was found. This means that we don't get the no code found error from - * `codeql database finalize`. To ensure users get a good error message, we detect this manually - * here, and upon detection override the error message. - * - * This can be removed once support for CodeQL 2.11.6 is removed. - */ - [CliConfigErrorCategory.NoJavaScriptTypeScriptCodeFound]: { + // Usually when a manual build script has failed, or if an autodetected language + // was unintended to have CodeQL analysis run on it. + [CliConfigErrorCategory.NoSourceCodeSeen]: { exitCode: 32, - cliErrorMessageSnippets: ["No JavaScript or TypeScript code found."], - additionalErrorMessageToPrepend: "No code found during the build. Please see: " + - "https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build.", + cliErrorMessageCandidates: [ + new RegExp("CodeQL detected code written in .* but could not process any of it"), + new RegExp("CodeQL did not detect any code written in languages supported by CodeQL"), + /** + * Earlier versions of the JavaScript extractor (pre-CodeQL 2.12.0) extract externs even if no + * source code was found. This means that we don't get the no code found error from + * `codeql database finalize`. To ensure users get a good error message, we detect this manually + * here, and upon detection override the error message. + * + * This can be removed once support for CodeQL 2.11.6 is removed. + */ + new RegExp("No JavaScript or TypeScript code found"), + ], + }, + [CliConfigErrorCategory.NoSupportedBuildCommandSucceeded]: { + cliErrorMessageCandidates: [ + new RegExp("No supported build command succeeded"), + ], + }, + [CliConfigErrorCategory.NoSupportedBuildSystemDetected]: { + cliErrorMessageCandidates: [ + new RegExp("No supported build system detected"), + ], }, }; -// Check if the given CLI error or exit code, if applicable, apply to any known -// CLI errors in the configuration record. If either the CLI error message matches all of -// the error messages in the config record, or the exit codes match, return the error category; -// if not, return undefined. +/** + * Check if the given CLI error or exit code, if applicable, apply to any known + * CLI errors in the configuration record. If either the CLI error message matches one of + * the error messages in the config record, or the exit codes match, return the error category; + * if not, return undefined. + */ function getCliConfigCategoryIfExists(cliError) { for (const [category, configuration] of Object.entries(exports.cliErrorsConfig)) { if (cliError.exitCode !== undefined && @@ -144,22 +176,29 @@ function getCliConfigCategoryIfExists(cliError) { cliError.exitCode === configuration.exitCode) { return category; } - let allMessageSnippetsFound = true; - for (const e of configuration.cliErrorMessageSnippets) { - if (!cliError.message.includes(e) && !cliError.stderr.includes(e)) { - allMessageSnippetsFound = false; + for (const e of configuration.cliErrorMessageCandidates) { + if (cliError.message.match(e) || cliError.stderr.match(e)) { + return category; } } - if (allMessageSnippetsFound === true) { - return category; - } } return undefined; } exports.getCliConfigCategoryIfExists = getCliConfigCategoryIfExists; +/** + * Prepend a clearer error message with the docs link if the error message does not already + * include it. Can be removed once support for CodeQL 2.11.6 is removed; at that point, all runs + * should already include the doc link. + */ +function prependDocsLinkIfApplicable(cliErrorMessage) { + if (!cliErrorMessage.includes(NO_SOURCE_CODE_SEEN_DOCS_LINK)) { + return `No code found during the build. Please see: ${NO_SOURCE_CODE_SEEN_DOCS_LINK}. Detailed error: ${cliErrorMessage}`; + } + return cliErrorMessage; +} /** * Changes an error received from the CLI to a ConfigurationError with optionally an extra - * error message prepended, if it exists in a known set of configuration errors. Otherwise, + * error message appended, if it exists in a known set of configuration errors. Otherwise, * simply returns the original error. */ function wrapCliConfigurationError(cliError) { @@ -170,10 +209,17 @@ function wrapCliConfigurationError(cliError) { if (cliConfigErrorCategory === undefined) { return cliError; } - const errorMessageWrapperIfExists = exports.cliErrorsConfig[cliConfigErrorCategory].additionalErrorMessageToPrepend; - return errorMessageWrapperIfExists - ? new util_1.ConfigurationError(`${errorMessageWrapperIfExists} ${cliError.message}`) - : new util_1.ConfigurationError(cliError.message); + let errorMessageBuilder = cliError.message; + // Can be removed once support for CodeQL 2.11.6 is removed; at that point, all runs should + // already include the doc link. + if (cliConfigErrorCategory === CliConfigErrorCategory.NoSourceCodeSeen) { + errorMessageBuilder = prependDocsLinkIfApplicable(errorMessageBuilder); + } + const additionalErrorMessageToAppend = exports.cliErrorsConfig[cliConfigErrorCategory].additionalErrorMessageToAppend; + if (additionalErrorMessageToAppend !== undefined) { + errorMessageBuilder = `${errorMessageBuilder} ${additionalErrorMessageToAppend}`; + } + return new util_1.ConfigurationError(errorMessageBuilder); } exports.wrapCliConfigurationError = wrapCliConfigurationError; //# sourceMappingURL=cli-errors.js.map \ No newline at end of file diff --git a/lib/cli-errors.js.map b/lib/cli-errors.js.map index 0ac2fd3486..a87998863f 100644 --- a/lib/cli-errors.js.map +++ b/lib/cli-errors.js.map @@ -1 +1 @@ -{"version":3,"file":"cli-errors.js","sourceRoot":"","sources":["../src/cli-errors.ts"],"names":[],"mappings":";;;AAAA,iCAA4C;AAE5C;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,KAAK;IAC/C,YACE,GAAW,EACX,IAAc,EACP,QAAgB,EAChB,MAAc,EACd,MAAc;QAErB,MA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F,gCAAgC;IAChC,IAAI,sBAAsB,KAAK,sBAAsB,CAAC,gBAAgB,EAAE,CAAC;QACvE,mBAAmB,GAAG,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;IACzE,CAAC;IAED,MAAM,8BAA8B,GAClC,uBAAe,CAAC,sBAAsB,CAAC,CAAC,8BAA8B,CAAC;IACzE,IAAI,8BAA8B,KAAK,SAAS,EAAE,CAAC;QACjD,mBAAmB,GAAG,GAAG,mBAAmB,IAAI,8BAA8B,EAAE,CAAC;IACnF,CAAC;IAED,OAAO,IAAI,yBAAkB,CAAC,mBAAmB,CAAC,CAAC;AACrD,CAAC;AAzBD,8DAyBC"} \ No newline at end of file diff --git a/lib/codeql.js b/lib/codeql.js index 20a6646c92..443343788c 100644 --- a/lib/codeql.js +++ b/lib/codeql.js @@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) { return result; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getGeneratedCodeScanningConfigPath = exports.getTrapCachingExtractorConfigArgsForLang = exports.getTrapCachingExtractorConfigArgs = exports.getExtraOptions = exports.getCodeQLForCmd = exports.getCodeQLForTesting = exports.getCachedCodeQL = exports.setCodeQL = exports.getCodeQL = exports.setupCodeQL = exports.CODEQL_VERSION_SUBLANGUAGE_FILE_COVERAGE = exports.CODEQL_VERSION_ANALYSIS_SUMMARY_V2 = exports.CODEQL_VERSION_LANGUAGE_ALIASING = exports.CODEQL_VERSION_LANGUAGE_BASELINE_CONFIG = exports.CODEQL_VERSION_RESOLVE_ENVIRONMENT = exports.CODEQL_VERSION_DIAGNOSTICS_EXPORT_FIXED = exports.CODEQL_VERSION_BETTER_NO_CODE_ERROR_MESSAGE = exports.CODEQL_VERSION_INIT_WITH_QLCONFIG = exports.CODEQL_VERSION_EXPORT_CODE_SCANNING_CONFIG = exports.CODEQL_VERSION_SECURITY_EXPERIMENTAL_SUITE = void 0; +exports.getGeneratedCodeScanningConfigPath = exports.getTrapCachingExtractorConfigArgsForLang = exports.getTrapCachingExtractorConfigArgs = exports.getExtraOptions = exports.getCodeQLForCmd = exports.getCodeQLForTesting = exports.getCachedCodeQL = exports.setCodeQL = exports.getCodeQL = exports.setupCodeQL = exports.CODEQL_VERSION_SUBLANGUAGE_FILE_COVERAGE = exports.CODEQL_VERSION_ANALYSIS_SUMMARY_V2 = exports.CODEQL_VERSION_LANGUAGE_ALIASING = exports.CODEQL_VERSION_LANGUAGE_BASELINE_CONFIG = exports.CODEQL_VERSION_RESOLVE_ENVIRONMENT = exports.CODEQL_VERSION_DIAGNOSTICS_EXPORT_FIXED = exports.CODEQL_VERSION_INIT_WITH_QLCONFIG = exports.CODEQL_VERSION_EXPORT_CODE_SCANNING_CONFIG = exports.CODEQL_VERSION_SECURITY_EXPERIMENTAL_SUITE = void 0; const fs = __importStar(require("fs")); const path = __importStar(require("path")); const core = __importStar(require("@actions/core")); @@ -66,6 +66,8 @@ const GHES_VERSION_MOST_RECENTLY_DEPRECATED = "3.7"; */ const GHES_MOST_RECENT_DEPRECATION_DATE = "2023-11-08"; /* + * Deprecated in favor of ToolsFeature. + * * Versions of CodeQL that version-flag certain functionality in the Action. * For convenience, please keep these in descending order. Once a version * flag is older than the oldest supported version above, it may be removed. @@ -84,11 +86,6 @@ exports.CODEQL_VERSION_EXPORT_CODE_SCANNING_CONFIG = "2.12.3"; * Versions 2.12.4+ of the CodeQL CLI support the `--qlconfig-file` flag in calls to `database init`. */ exports.CODEQL_VERSION_INIT_WITH_QLCONFIG = "2.12.4"; -/** - * Versions 2.12.4+ of the CodeQL CLI provide a better error message when `database finalize` - * determines that no code has been found. - */ -exports.CODEQL_VERSION_BETTER_NO_CODE_ERROR_MESSAGE = "2.12.4"; /** * Versions 2.13.1+ of the CodeQL CLI fix a bug where diagnostics export could produce invalid SARIF. */ @@ -339,7 +336,15 @@ async function getCodeQLForCmd(cmd, checkVersion) { // When `DYLD_INSERT_LIBRARIES` is set in the environment for a step, // the Actions runtime introduces its own workaround for SIP // (https://github.com/actions/runner/pull/416). - await runTool(autobuildCmd); + try { + await runTool(autobuildCmd); + } + catch (e) { + if (e instanceof Error) { + throw (0, cli_errors_1.wrapCliConfigurationError)(e); + } + throw e; + } }, async extractScannedLanguage(config, language) { await runTool(cmd, [ @@ -375,8 +380,7 @@ async function getCodeQLForCmd(cmd, checkVersion) { await runTool(cmd, args); } catch (e) { - if (e instanceof Error && - !(await util.codeQlVersionAbove(this, exports.CODEQL_VERSION_BETTER_NO_CODE_ERROR_MESSAGE))) { + if (e instanceof Error) { throw (0, cli_errors_1.wrapCliConfigurationError)(e); } throw e; diff --git a/lib/codeql.js.map b/lib/codeql.js.map index 4cf30ee1f2..ea5376adf1 100644 --- a/lib/codeql.js.map +++ b/lib/codeql.js.map @@ -1 +1 @@ -{"version":3,"file":"codeql.js","sourceRoot":"","sources":["../src/codeql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,yEAA2D;AAC3D,8CAAgC;AAChC,+CAAiC;AAEjC,iDAIwB;AAExB,6CAGsB;AAEtB,+CAAuC;AACvC,mDAKyB;AACzB,2CAAyD;AAEzD,4DAA8C;AAC9C,qDAAyE;AACzE,6CAA+B;AAC/B,iCAAmC;AA+NnC;;;GAGG;AACH,IAAI,YAAY,GAAuB,SAAS,CAAC;AAEjD;;;;;;;GAOG;AACH,MAAM,sBAAsB,GAAG,QAAQ,CAAC;AAExC;;GAEG;AACH,MAAM,2BAA2B,GAAG,QAAQ,CAAC;AAE7C;;GAEG;AACH,MAAM,qCAAqC,GAAG,KAAK,CAAC;AAEpD;;GAEG;AACH,MAAM,iCAAiC,GAAG,YAAY,CAAC;AAEvD;;;;GAIG;AAEH;;;GAGG;AACU,QAAA,0CAA0C,GAAG,QAAQ,CAAC;AAEnE;;;GAGG;AACU,QAAA,0CAA0C,GAAG,QAAQ,CAAC;AAEnE;;GAEG;AACU,QAAA,iCAAiC,GAAG,QAAQ,CAAC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@ -555,8 +555,8 @@ for (const { codeqlVersion, flagPassed, githubVersion, negativeFlagPassed, } of sinon.stub(safeWhich, "safeWhich").resolves(""); await t.throwsAsync(async () => await codeqlObject.finalizeDatabase("", "", ""), { instanceOf: util.ConfigurationError, - message: new RegExp("No code found during the build. Please see: " + - "https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build.+"), + message: new RegExp("No code found during the build\\. Please see: " + + "https://gh\\.io/troubleshooting-code-scanning/no-source-code-seen-during-build\\."), }); }); (0, ava_1.default)("database finalize overrides no code found error on CodeQL 2.11.6", async (t) => { @@ -567,8 +567,8 @@ for (const { codeqlVersion, flagPassed, githubVersion, negativeFlagPassed, } of sinon.stub(safeWhich, "safeWhich").resolves(""); await t.throwsAsync(async () => await codeqlObject.finalizeDatabase("", "", ""), { instanceOf: util.ConfigurationError, - message: new RegExp("No code found during the build. Please see: " + - "https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build.+"), + message: new RegExp("No code found during the build\\. Please see: " + + "https://gh\\.io/troubleshooting-code-scanning/no-source-code-seen-during-build\\."), }); }); (0, ava_1.default)("database finalize does not override no code found error on CodeQL 2.12.4", async (t) => { @@ -595,8 +595,9 @@ for (const { codeqlVersion, flagPassed, githubVersion, negativeFlagPassed, } of // safeWhich throws because of the test CodeQL object. sinon.stub(safeWhich, "safeWhich").resolves(""); await t.throwsAsync(async () => await codeqlObject.finalizeDatabase("db", "--threads=2", "--ram=2048"), { - message: 'Encountered a fatal error while running "codeql-for-testing database finalize --finalize-dataset --threads=2 --ram=2048 db". ' + - `Exit code was 32 and error was: ${datasetImportError}. Context: ${heapError}. See the logs for more details.`, + instanceOf: util.ConfigurationError, + message: new RegExp('Encountered a fatal error while running \\"codeql-for-testing database finalize --finalize-dataset --threads=2 --ram=2048 db\\"\\. ' + + `Exit code was 32 and error was: ${datasetImportError.replaceAll(".", "\\.")}\\. Context: ${heapError.replaceAll(".", "\\.")}\\. See the logs for more details\\.`), }); }); (0, ava_1.default)("runTool outputs last line of stderr if fatal error could not be found", async (t) => { @@ -607,8 +608,9 @@ for (const { codeqlVersion, flagPassed, githubVersion, negativeFlagPassed, } of // safeWhich throws because of the test CodeQL object. sinon.stub(safeWhich, "safeWhich").resolves(""); await t.throwsAsync(async () => await codeqlObject.finalizeDatabase("db", "--threads=2", "--ram=2048"), { - message: 'Encountered a fatal error while running "codeql-for-testing database finalize --finalize-dataset --threads=2 --ram=2048 db". ' + - "Exit code was 32 and last log line was: line5. See the logs for more details.", + instanceOf: util.ConfigurationError, + message: new RegExp('Encountered a fatal error while running \\"codeql-for-testing database finalize --finalize-dataset --threads=2 --ram=2048 db\\"\\. ' + + "Exit code was 32 and last log line was: line5\\. See the logs for more details\\."), }); }); function stubToolRunnerConstructor(exitCode = 0, stderr) { diff --git a/lib/codeql.test.js.map b/lib/codeql.test.js.map index 4569b44722..1f11e4f1c2 100644 --- a/lib/codeql.test.js.map +++ b/lib/codeql.test.js.map @@ -1 +1 @@ -{"version":3,"file":"codeql.test.js","sourceRoot":"","sources":["../src/codeql.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAGzB,yEAA2D;AAC3D,+DAAiD;AACjD,kEAAoD;AACpD,8CAA6C;AAC7C,8CAAsB;AACtB,8CAAgC;AAChC,gDAAwB;AACxB,6CAA+B;AAE/B,4DAA8C;AAE9C,iDAAmC;AAEnC,0DAA4C;AAC5C,2CAAuC;AACvC,uCAA4C;AAC5C,iDAA6C;AAC7C,mDASyB;AACzB,6CAA+B;AAC/B,iCAA+C;AAE/C,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,IAAI,UAAkB,CAAC;AAEvB,aAAI,CAAC,UAAU,CAAC,GAAG,EAAE;IACnB,IAAA,4BAAqB,EAAC,OAAO,CAAC,CAAC;IAE/B,UAAU,GAAG,IAAA,gCAAgB,EAAC;QAC5B,SAAS,EAAE,CAAC,oBAAQ,CAAC,GAAG,CAAC;KAC1B,CAAC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B,GAAG,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IACzE,MAAM,qBAAqB,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IACnE,IAAI,cAAc,GAAyC,SAAS,CAAC;IACrE,qBAAqB,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,OAAoB,EAAE,EAAE;QACpE,cAAc,GAAG,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3C,OAAO,gBAAgB,CAAC;IAC1B,CAAC,CAAC,CAAC;IACH,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACzC,IAAI,cAAc,KAAK,SAAS,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzD,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC,CAAC;IACH,OAAO,qBAAqB,CAAC;AAC/B,CAAC;AAlBD,8DAkBC"} \ No newline at end of file diff --git a/src/cli-errors.ts b/src/cli-errors.ts index a19aad952d..4fc634ec1a 100644 --- a/src/cli-errors.ts +++ b/src/cli-errors.ts @@ -1,5 +1,8 @@ import { ConfigurationError } from "./util"; +const NO_SOURCE_CODE_SEEN_DOCS_LINK = + "https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build"; + /** * A class of Error that we can classify as an error stemming from a CLI * invocation, with associated exit code, stderr,etc. @@ -102,15 +105,18 @@ export enum CliConfigErrorCategory { IncompatibleWithActionVersion = "IncompatibleWithActionVersion", InitCalledTwice = "InitCalledTwice", InvalidSourceRoot = "InvalidSourceRoot", - NoJavaScriptTypeScriptCodeFound = "NoJavaScriptTypeScriptCodeFound", + NoBuildCommandAutodetected = "NoBuildCommandAutodetected", + NoBuildMethodAutodetected = "NoBuildMethodAutodetected", + NoSourceCodeSeen = "NoSourceCodeSeen", + NoSupportedBuildCommandSucceeded = "NoSupportedBuildCommandSucceeded", + NoSupportedBuildSystemDetected = "NoSupportedBuildSystemDetected", } type CliErrorConfiguration = { - cliErrorMessageSnippets: string[]; + /** One of these candidates, or the exit code, must be present in the error message. */ + cliErrorMessageCandidates: RegExp[]; exitCode?: number; - // Error message to prepend for this type of CLI error. - // If undefined, use original CLI error message. - additionalErrorMessageToPrepend?: string; + additionalErrorMessageToAppend?: string; }; /** @@ -123,40 +129,75 @@ export const cliErrorsConfig: Record< > = { // Version of CodeQL CLI is incompatible with this version of the CodeQL Action [CliConfigErrorCategory.IncompatibleWithActionVersion]: { - cliErrorMessageSnippets: ["is not compatible with this CodeQL CLI"], + cliErrorMessageCandidates: [ + new RegExp("is not compatible with this CodeQL CLI"), + ], }, [CliConfigErrorCategory.InitCalledTwice]: { - cliErrorMessageSnippets: [ - "Refusing to create databases", - "exists and is not an empty directory", + cliErrorMessageCandidates: [ + new RegExp( + "Refusing to create databases .* but could not process any of it", + ), ], - additionalErrorMessageToPrepend: `Is the "init" action called twice in the same job?`, + additionalErrorMessageToAppend: `Is the "init" action called twice in the same job?`, }, // Expected source location for database creation does not exist [CliConfigErrorCategory.InvalidSourceRoot]: { - cliErrorMessageSnippets: ["Invalid source root"], + cliErrorMessageCandidates: [new RegExp("Invalid source root")], + }, + [CliConfigErrorCategory.NoBuildCommandAutodetected]: { + cliErrorMessageCandidates: [ + new RegExp("Could not auto-detect a suitable build method"), + ], }, - /** - * Earlier versions of the JavaScript extractor (pre-CodeQL 2.12.0) extract externs even if no - * source code was found. This means that we don't get the no code found error from - * `codeql database finalize`. To ensure users get a good error message, we detect this manually - * here, and upon detection override the error message. - * - * This can be removed once support for CodeQL 2.11.6 is removed. - */ - [CliConfigErrorCategory.NoJavaScriptTypeScriptCodeFound]: { + [CliConfigErrorCategory.NoBuildMethodAutodetected]: { + cliErrorMessageCandidates: [ + new RegExp( + "Could not detect a suitable build command for the source checkout", + ), + ], + }, + // Usually when a manual build script has failed, or if an autodetected language + // was unintended to have CodeQL analysis run on it. + [CliConfigErrorCategory.NoSourceCodeSeen]: { exitCode: 32, - cliErrorMessageSnippets: ["No JavaScript or TypeScript code found."], - additionalErrorMessageToPrepend: - "No code found during the build. Please see: " + - "https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build.", + cliErrorMessageCandidates: [ + new RegExp( + "CodeQL detected code written in .* but could not process any of it", + ), + new RegExp( + "CodeQL did not detect any code written in languages supported by CodeQL", + ), + /** + * Earlier versions of the JavaScript extractor (pre-CodeQL 2.12.0) extract externs even if no + * source code was found. This means that we don't get the no code found error from + * `codeql database finalize`. To ensure users get a good error message, we detect this manually + * here, and upon detection override the error message. + * + * This can be removed once support for CodeQL 2.11.6 is removed. + */ + new RegExp("No JavaScript or TypeScript code found"), + ], + }, + + [CliConfigErrorCategory.NoSupportedBuildCommandSucceeded]: { + cliErrorMessageCandidates: [ + new RegExp("No supported build command succeeded"), + ], + }, + [CliConfigErrorCategory.NoSupportedBuildSystemDetected]: { + cliErrorMessageCandidates: [ + new RegExp("No supported build system detected"), + ], }, }; -// Check if the given CLI error or exit code, if applicable, apply to any known -// CLI errors in the configuration record. If either the CLI error message matches all of -// the error messages in the config record, or the exit codes match, return the error category; -// if not, return undefined. +/** + * Check if the given CLI error or exit code, if applicable, apply to any known + * CLI errors in the configuration record. If either the CLI error message matches one of + * the error messages in the config record, or the exit codes match, return the error category; + * if not, return undefined. + */ export function getCliConfigCategoryIfExists( cliError: CommandInvocationError, ): CliConfigErrorCategory | undefined { @@ -169,23 +210,31 @@ export function getCliConfigCategoryIfExists( return category as CliConfigErrorCategory; } - let allMessageSnippetsFound: boolean = true; - for (const e of configuration.cliErrorMessageSnippets) { - if (!cliError.message.includes(e) && !cliError.stderr.includes(e)) { - allMessageSnippetsFound = false; + for (const e of configuration.cliErrorMessageCandidates) { + if (cliError.message.match(e) || cliError.stderr.match(e)) { + return category as CliConfigErrorCategory; } } - if (allMessageSnippetsFound === true) { - return category as CliConfigErrorCategory; - } } return undefined; } +/** + * Prepend a clearer error message with the docs link if the error message does not already + * include it. Can be removed once support for CodeQL 2.11.6 is removed; at that point, all runs + * should already include the doc link. + */ +function prependDocsLinkIfApplicable(cliErrorMessage: string): string { + if (!cliErrorMessage.includes(NO_SOURCE_CODE_SEEN_DOCS_LINK)) { + return `No code found during the build. Please see: ${NO_SOURCE_CODE_SEEN_DOCS_LINK}. Detailed error: ${cliErrorMessage}`; + } + return cliErrorMessage; +} + /** * Changes an error received from the CLI to a ConfigurationError with optionally an extra - * error message prepended, if it exists in a known set of configuration errors. Otherwise, + * error message appended, if it exists in a known set of configuration errors. Otherwise, * simply returns the original error. */ export function wrapCliConfigurationError(cliError: Error): Error { @@ -198,12 +247,19 @@ export function wrapCliConfigurationError(cliError: Error): Error { return cliError; } - const errorMessageWrapperIfExists = - cliErrorsConfig[cliConfigErrorCategory].additionalErrorMessageToPrepend; + let errorMessageBuilder = cliError.message; + + // Can be removed once support for CodeQL 2.11.6 is removed; at that point, all runs should + // already include the doc link. + if (cliConfigErrorCategory === CliConfigErrorCategory.NoSourceCodeSeen) { + errorMessageBuilder = prependDocsLinkIfApplicable(errorMessageBuilder); + } + + const additionalErrorMessageToAppend = + cliErrorsConfig[cliConfigErrorCategory].additionalErrorMessageToAppend; + if (additionalErrorMessageToAppend !== undefined) { + errorMessageBuilder = `${errorMessageBuilder} ${additionalErrorMessageToAppend}`; + } - return errorMessageWrapperIfExists - ? new ConfigurationError( - `${errorMessageWrapperIfExists} ${cliError.message}`, - ) - : new ConfigurationError(cliError.message); + return new ConfigurationError(errorMessageBuilder); } diff --git a/src/codeql.test.ts b/src/codeql.test.ts index 4a7e51c1b0..e94e767fb5 100644 --- a/src/codeql.test.ts +++ b/src/codeql.test.ts @@ -877,8 +877,8 @@ test("database finalize recognises JavaScript no code found error on CodeQL 2.11 { instanceOf: util.ConfigurationError, message: new RegExp( - "No code found during the build. Please see: " + - "https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build.+", + "No code found during the build\\. Please see: " + + "https://gh\\.io/troubleshooting-code-scanning/no-source-code-seen-during-build\\.", ), }, ); @@ -896,8 +896,8 @@ test("database finalize overrides no code found error on CodeQL 2.11.6", async ( { instanceOf: util.ConfigurationError, message: new RegExp( - "No code found during the build. Please see: " + - "https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build.+", + "No code found during the build\\. Please see: " + + "https://gh\\.io/troubleshooting-code-scanning/no-source-code-seen-during-build\\.", ), }, ); @@ -942,9 +942,17 @@ test("runTool summarizes several fatal errors", async (t) => { async () => await codeqlObject.finalizeDatabase("db", "--threads=2", "--ram=2048"), { - message: - 'Encountered a fatal error while running "codeql-for-testing database finalize --finalize-dataset --threads=2 --ram=2048 db". ' + - `Exit code was 32 and error was: ${datasetImportError}. Context: ${heapError}. See the logs for more details.`, + instanceOf: util.ConfigurationError, + message: new RegExp( + 'Encountered a fatal error while running \\"codeql-for-testing database finalize --finalize-dataset --threads=2 --ram=2048 db\\"\\. ' + + `Exit code was 32 and error was: ${datasetImportError.replaceAll( + ".", + "\\.", + )}\\. Context: ${heapError.replaceAll( + ".", + "\\.", + )}\\. See the logs for more details\\.`, + ), }, ); }); @@ -961,9 +969,11 @@ test("runTool outputs last line of stderr if fatal error could not be found", as async () => await codeqlObject.finalizeDatabase("db", "--threads=2", "--ram=2048"), { - message: - 'Encountered a fatal error while running "codeql-for-testing database finalize --finalize-dataset --threads=2 --ram=2048 db". ' + - "Exit code was 32 and last log line was: line5. See the logs for more details.", + instanceOf: util.ConfigurationError, + message: new RegExp( + 'Encountered a fatal error while running \\"codeql-for-testing database finalize --finalize-dataset --threads=2 --ram=2048 db\\"\\. ' + + "Exit code was 32 and last log line was: line5\\. See the logs for more details\\.", + ), }, ); }); diff --git a/src/codeql.ts b/src/codeql.ts index 17d450d027..cd53a97a41 100644 --- a/src/codeql.ts +++ b/src/codeql.ts @@ -284,6 +284,8 @@ const GHES_VERSION_MOST_RECENTLY_DEPRECATED = "3.7"; const GHES_MOST_RECENT_DEPRECATION_DATE = "2023-11-08"; /* + * Deprecated in favor of ToolsFeature. + * * Versions of CodeQL that version-flag certain functionality in the Action. * For convenience, please keep these in descending order. Once a version * flag is older than the oldest supported version above, it may be removed. @@ -306,12 +308,6 @@ export const CODEQL_VERSION_EXPORT_CODE_SCANNING_CONFIG = "2.12.3"; */ export const CODEQL_VERSION_INIT_WITH_QLCONFIG = "2.12.4"; -/** - * Versions 2.12.4+ of the CodeQL CLI provide a better error message when `database finalize` - * determines that no code has been found. - */ -export const CODEQL_VERSION_BETTER_NO_CODE_ERROR_MESSAGE = "2.12.4"; - /** * Versions 2.13.1+ of the CodeQL CLI fix a bug where diagnostics export could produce invalid SARIF. */ @@ -670,7 +666,14 @@ export async function getCodeQLForCmd( // When `DYLD_INSERT_LIBRARIES` is set in the environment for a step, // the Actions runtime introduces its own workaround for SIP // (https://github.com/actions/runner/pull/416). - await runTool(autobuildCmd); + try { + await runTool(autobuildCmd); + } catch (e) { + if (e instanceof Error) { + throw wrapCliConfigurationError(e); + } + throw e; + } }, async extractScannedLanguage(config: Config, language: Language) { await runTool(cmd, [ @@ -709,13 +712,7 @@ export async function getCodeQLForCmd( try { await runTool(cmd, args); } catch (e) { - if ( - e instanceof Error && - !(await util.codeQlVersionAbove( - this, - CODEQL_VERSION_BETTER_NO_CODE_ERROR_MESSAGE, - )) - ) { + if (e instanceof Error) { throw wrapCliConfigurationError(e); } throw e;