From 7df281f2feac4aa04424a4fcca3efb7f7c9f681f Mon Sep 17 00:00:00 2001 From: Angela P Wen Date: Thu, 4 Apr 2024 15:26:14 -0700 Subject: [PATCH] Gracefully continue if `createStatusReportBase` throws (#2225) Previously, we weren't catching any possible exceptions in `createStatusReportBase` and runs would fail if any of the telemetry sub-items threw exceptions. As telemetry should not block the analysis, we continue here even if the status report throws. --- lib/analyze-action.js | 35 +++-- lib/analyze-action.js.map | 2 +- lib/autobuild-action.js | 19 ++- lib/autobuild-action.js.map | 2 +- lib/init-action-post.js | 19 ++- lib/init-action-post.js.map | 2 +- lib/init-action.js | 13 +- lib/init-action.js.map | 2 +- lib/resolve-environment-action.js | 15 +- lib/resolve-environment-action.js.map | 2 +- lib/status-report.js | 178 ++++++++++++------------ lib/status-report.js.map | 2 +- lib/status-report.test.js | 59 ++++---- lib/status-report.test.js.map | 2 +- lib/upload-sarif-action.js | 22 ++- lib/upload-sarif-action.js.map | 2 +- src/analyze-action.ts | 51 +++---- src/autobuild-action.ts | 33 +++-- src/init-action-post.ts | 37 ++--- src/init-action.ts | 47 ++++--- src/resolve-environment-action.ts | 61 ++++---- src/status-report.test.ts | 65 ++++----- src/status-report.ts | 192 ++++++++++++++------------ src/upload-sarif-action.ts | 55 ++++---- 24 files changed, 502 insertions(+), 415 deletions(-) diff --git a/lib/analyze-action.js b/lib/analyze-action.js index 34a826b98a..7e8676baf8 100644 --- a/lib/analyze-action.js +++ b/lib/analyze-action.js @@ -51,21 +51,23 @@ const util = __importStar(require("./util")); async function sendStatusReport(startedAt, config, stats, error, trapCacheUploadTime, dbCreationTimings, didUploadTrapCaches, logger) { const status = (0, status_report_1.getActionsStatus)(error, stats?.analyze_failure_language); const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Analyze, status, startedAt, config, await util.checkDiskUsage(), logger, error?.message, error?.stack); - const report = { - ...statusReportBase, - ...(stats || {}), - ...(dbCreationTimings || {}), - }; - if (config && didUploadTrapCaches) { - const trapCacheUploadStatusReport = { - ...report, - trap_cache_upload_duration_ms: Math.round(trapCacheUploadTime || 0), - trap_cache_upload_size_bytes: Math.round(await (0, trap_caching_1.getTotalCacheSize)(config.trapCaches, logger)), + if (statusReportBase !== undefined) { + const report = { + ...statusReportBase, + ...(stats || {}), + ...(dbCreationTimings || {}), }; - await statusReport.sendStatusReport(trapCacheUploadStatusReport); - } - else { - await statusReport.sendStatusReport(report); + if (config && didUploadTrapCaches) { + const trapCacheUploadStatusReport = { + ...report, + trap_cache_upload_duration_ms: Math.round(trapCacheUploadTime || 0), + trap_cache_upload_size_bytes: Math.round(await (0, trap_caching_1.getTotalCacheSize)(config.trapCaches, logger)), + }; + await statusReport.sendStatusReport(trapCacheUploadStatusReport); + } + else { + await statusReport.sendStatusReport(report); + } } } // `expect-error` should only be set to a non-false value by the CodeQL Action PR checks. @@ -145,7 +147,10 @@ async function run() { util.initializeEnvironment(actionsUtil.getActionVersion()); const logger = (0, logging_1.getActionsLogger)(); try { - await statusReport.sendStatusReport(await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Analyze, "starting", startedAt, config, await util.checkDiskUsage(logger), logger)); + const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Analyze, "starting", startedAt, config, await util.checkDiskUsage(logger), logger); + if (statusReportBase !== undefined) { + await statusReport.sendStatusReport(statusReportBase); + } config = await (0, config_utils_1.getConfig)(actionsUtil.getTemporaryDirectory(), logger); if (config === undefined) { throw new Error("Config file could not be found at expected location. Has the 'init' action been called?"); diff --git a/lib/analyze-action.js.map b/lib/analyze-action.js.map index be966abbae..e37e10cba3 100644 --- a/lib/analyze-action.js.map +++ b/lib/analyze-action.js.map @@ -1 +1 @@ -{"version":3,"file":"analyze-action.js","sourceRoot":"","sources":["../src/analyze-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,gDAAwB;AACxB,2CAAyC;AAEzC,oDAAsC;AAEtC,4DAA8C;A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ACpB,SAAS,EACT,MAAM,EACN,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,CACP,CAAC;IACJ,CAAC;AACH,CAAC;AAEY,QAAA,UAAU,GAAG,GAAG,EAAE,CAAC;AAEhC,KAAK,UAAU,UAAU;IACvB,IAAI,CAAC;QACH,MAAM,kBAAU,CAAC;IACnB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CAAC,0BAA0B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IACD,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;AAC/B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"analyze-action.js","sourceRoot":"","sources":["../src/analyze-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,gDAAwB;AACxB,2CAAyC;AAEzC,oDAAsC;AAEtC,4DAA8C;AAC9C,uCAQmB;AACnB,6CAA+D;AAC/D,2CAA2C;AAC3C,qCAAqC;AACrC,iDAAmD;AACnD,uDAAoD;AACpD,+CAAuC;AACvC,mDAA2C;AAC3C,2CAAuC;AACvC,uCAAqD;AACrD,6CAAkD;AAClD,8DAAgD;AAChD,mDAMyB;AACzB,iDAAqE;AACrE,wDAA0C;AAE1C,6CAA+B;AAkB/B,KAAK,UAAU,gBAAgB,CAC7B,SAAe,EACf,MAA0B,EAC1B,KAAuC,EACvC,KAAwB,EACxB,mBAAuC,EACvC,iBAAsD,EACtD,mBAA4B,EAC5B,MAAc;IAEd,MAAM,MAAM,GAAG,IAAA,gCAAgB,EAAC,KAAK,EAAE,KAAK,EAAE,wBAAwB,CAAC,CAAC;IACxE,MAAM,gBAAgB,GAAG,MAAM,IAAA,sCAAsB,EACnD,0BAAU,CAAC,OAAO,EAClB,MAAM,EACN,SAAS,EAC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AM,IAAI,CAAC,eAAe,EAAE,CAAC;AAC/B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/autobuild-action.js b/lib/autobuild-action.js index 8d18b7bb10..f2f782a066 100644 --- a/lib/autobuild-action.js +++ b/lib/autobuild-action.js @@ -37,12 +37,14 @@ async function sendCompletedStatusReport(config, logger, startedAt, allLanguages (0, util_1.initializeEnvironment)((0, actions_util_1.getActionVersion)()); const status = (0, status_report_1.getActionsStatus)(cause, failingLanguage); const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Autobuild, status, startedAt, config, await (0, util_1.checkDiskUsage)(logger), logger, cause?.message, cause?.stack); - const statusReport = { - ...statusReportBase, - autobuild_languages: allLanguages.join(","), - autobuild_failure: failingLanguage, - }; - await (0, status_report_1.sendStatusReport)(statusReport); + if (statusReportBase !== undefined) { + const statusReport = { + ...statusReportBase, + autobuild_languages: allLanguages.join(","), + autobuild_failure: failingLanguage, + }; + await (0, status_report_1.sendStatusReport)(statusReport); + } } async function run() { const startedAt = new Date(); @@ -51,7 +53,10 @@ async function run() { let currentLanguage; let languages; try { - await (0, status_report_1.sendStatusReport)(await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Autobuild, "starting", startedAt, config, await (0, util_1.checkDiskUsage)(logger), logger)); + const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Autobuild, "starting", startedAt, config, await (0, util_1.checkDiskUsage)(logger), logger); + if (statusReportBase !== undefined) { + await (0, status_report_1.sendStatusReport)(statusReportBase); + } const gitHubVersion = await (0, api_client_1.getGitHubVersion)(); (0, util_1.checkGitHubVersionInRange)(gitHubVersion, logger); (0, util_1.checkActionVersion)((0, actions_util_1.getActionVersion)(), gitHubVersion); diff --git a/lib/autobuild-action.js.map b/lib/autobuild-action.js.map index ca31354feb..301b4e2950 100644 --- a/lib/autobuild-action.js.map +++ b/lib/autobuild-action.js.map @@ -1 +1 @@ -{"version":3,"file":"autob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C;QACF,MAAM,yBAAyB,CAC7B,MAAM,EACN,MAAM,EACN,SAAS,EACT,SAAS,IAAI,EAAE,EACf,eAAe,EACf,KAAK,CACN,CAAC;QACF,OAAO;IACT,CAAC;IAED,IAAI,CAAC,cAAc,CAAC,oBAAM,CAAC,mCAAmC,EAAE,MAAM,CAAC,CAAC;IAExE,MAAM,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,IAAI,EAAE,CAAC,CAAC;AAC9E,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,IAAI,CAAC;QACH,MAAM,GAAG,EAAE,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CAAC,4BAA4B,IAAA,gBAAS,EAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"autobuild-action.js","sourceRoot":"","sources":["../src/autobuild-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AAEtC,iDAIwB;AACxB,6CAAgD;AAChD,2CAAwE;AACxE,qCAAqC;AACrC,iDAAmD;AACnD,+CAAuC;AAEvC,uCAAqD;AACrD,mDAMyB;AACzB,iCAMgB;AAShB,KAAK,UAAU,yBAAyB,CACtC,MAA0B,EAC1B,MAAc,EACd,SAAe,EACf,YAAsB,EACtB,eAAwB,EACxB,KAAa;IAEb,IAAA,4BAAqB,EAAC,IAAA,+BAAgB,GAAE,CAAC,CAAC;IAE1C,MAAM,MAAM,GAAG,IAAA,gCAAgB,EAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IACxD,MAAM,gBAAgB,GAAG,MAAM,IAAA,sCAAsB,EACnD,0BAAU,CAAC,SAAS,EACpB,MAAM,EACN,SAAS,EACT,MAAM,EACN,MAAM,IAAA,qBAAc,EAAC,MAAM,CAAC,EAC5B,MAAM,EAC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AC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/init-action-post.js b/lib/init-action-post.js index aa7a6bceae..8f68ba4d20 100644 --- a/lib/init-action-post.js +++ b/lib/init-action-post.js @@ -59,18 +59,23 @@ async function runWrapper() { catch (unwrappedError) { const error = (0, util_1.wrapError)(unwrappedError); core.setFailed(error.message); - await (0, status_report_1.sendStatusReport)(await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.InitPost, (0, status_report_1.getActionsStatus)(error), startedAt, config, await (0, util_1.checkDiskUsage)(), logger, error.message, error.stack)); + const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.InitPost, (0, status_report_1.getActionsStatus)(error), startedAt, config, await (0, util_1.checkDiskUsage)(), logger, error.message, error.stack); + if (statusReportBase !== undefined) { + await (0, status_report_1.sendStatusReport)(statusReportBase); + } return; } const jobStatus = initActionPostHelper.getFinalJobStatus(); logger.info(`CodeQL job status was ${(0, status_report_1.getJobStatusDisplayName)(jobStatus)}.`); const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.InitPost, "success", startedAt, config, await (0, util_1.checkDiskUsage)(), logger); - const statusReport = { - ...statusReportBase, - ...uploadFailedSarifResult, - job_status: initActionPostHelper.getFinalJobStatus(), - }; - await (0, status_report_1.sendStatusReport)(statusReport); + if (statusReportBase !== undefined) { + const statusReport = { + ...statusReportBase, + ...uploadFailedSarifResult, + job_status: initActionPostHelper.getFinalJobStatus(), + }; + await (0, status_report_1.sendStatusReport)(statusReport); + } } void runWrapper(); //# sourceMappingURL=init-action-post.js.map \ No newline at end of file diff --git a/lib/init-action-post.js.map b/lib/init-action-post.js.map index 6d3571a552..2ccfed99c4 100644 --- a/lib/init-action-post.js.map +++ b/lib/init-action-post.js.map @@ -1 +1 @@ -{"version":3,"file":"init-action-post.js","sourceRoot":"","sources":["../src/init-action-post.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CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAE9B,MAAM,IAAA,gCAAgB,EACpB,MAAM,IAAA,sCAAsB,EAC1B,0BAAU,CAAC,QAAQ,EACnB,IAAA,gCAAgB,EAAC,KAAK,CAAC,EACvB,SAAS,EACT,MAAM,EACN,MAAM,IAAA,qBAAc,GAAE,EACtB,MAAM,EACN,KAAK,CAAC,OAAO,EACb,KAAK,CAAC,KAAK,CACZ,CACF,CAAC;QACF,OAAO;IACT,CAAC;IACD,MAAM,SAAS,GAAG,oBAAoB,CAAC,iBAAiB,EAAE,CAAC;IAC3D,MAAM,CAAC,IAAI,CAAC,yBAAyB,IAAA,uCAAuB,EAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAE5E,MAAM,gBAAgB,GAAG,MAAM,IAAA,sCAAsB,EACnD,0BAAU,CAAC,QAAQ,EACnB,SAAS,EACT,SAAS,EACT,MAAM,EACN,MAAM,IAAA,qBAAc,GAAE,EACtB,MAAM,CACP,CAAC;IACF,MAAM,YAAY,GAAyB;QACzC,GAAG,gBAAgB;QACnB,GAAG,uBAAuB;QAC1B,UAAU,EAAE,oBAAoB,CAAC,iBAAiB,EAAE;KACrD,CAAC;IACF,MAAM,IAAA,gCAAgB,EAAC,YAAY,CAAC,CAAC;AACvC,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"init-action-post.js","sourceRoot":"","sources":["../src/init-action-post.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,oDAAsC;AAEtC,iDAAuE;AACvE,6CAAgD;AAChD,iDAAmD;AACnD,kEAAoD;AACpD,mDAA2C;AAC3C,gFAAkE;AAClE,uCAA6C;AAC7C,6CAAkD;AAClD,mDAOyB;AACzB,iCAKgB;AAOhB,KAAK,UAAU,UAAU;IACvB,MAAM,MAAM,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAClC,MAAM,SAAS,GAAG,IAAI,IAAI,EAA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,EAAC,gBAAgB,CAAC,CAAC;QAC3C,CAAC;QACD,OAAO;IACT,CAAC;IACD,MAAM,SAAS,GAAG,oBAAoB,CAAC,iBAAiB,EAAE,CAAC;IAC3D,MAAM,CAAC,IAAI,CAAC,yBAAyB,IAAA,uCAAuB,EAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAE5E,MAAM,gBAAgB,GAAG,MAAM,IAAA,sCAAsB,EACnD,0BAAU,CAAC,QAAQ,EACnB,SAAS,EACT,SAAS,EACT,MAAM,EACN,MAAM,IAAA,qBAAc,GAAE,EACtB,MAAM,CACP,CAAC;IACF,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;QACnC,MAAM,YAAY,GAAyB;YACzC,GAAG,gBAAgB;YACnB,GAAG,uBAAuB;YAC1B,UAAU,EAAE,oBAAoB,CAAC,iBAAiB,EAAE;SACrD,CAAC;QACF,MAAM,IAAA,gCAAgB,EAAC,YAAY,CAAC,CAAC;IACvC,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/init-action.js b/lib/init-action.js index 7fb90629f3..e8f9ad6a5e 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -44,6 +44,9 @@ const util_1 = require("./util"); const workflow_1 = require("./workflow"); async function sendCompletedStatusReport(startedAt, config, toolsDownloadDurationMs, toolsFeatureFlagsValid, toolsSource, toolsVersion, logger, error) { const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Init, (0, status_report_1.getActionsStatus)(error), startedAt, config, await (0, util_1.checkDiskUsage)(logger), logger, error?.message, error?.stack); + if (statusReportBase === undefined) { + return; + } const workflowLanguages = (0, actions_util_1.getOptionalInput)("languages"); const initStatusReport = { ...statusReportBase, @@ -122,7 +125,10 @@ async function run() { core.exportVariable(environment_1.EnvVar.JOB_RUN_UUID, (0, uuid_1.v4)()); core.exportVariable(environment_1.EnvVar.INIT_ACTION_HAS_RUN, "true"); try { - await (0, status_report_1.sendStatusReport)(await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Init, "starting", startedAt, config, await (0, util_1.checkDiskUsage)(logger), logger)); + const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Init, "starting", startedAt, config, await (0, util_1.checkDiskUsage)(logger), logger); + if (statusReportBase !== undefined) { + await (0, status_report_1.sendStatusReport)(statusReportBase); + } const codeQLDefaultVersionInfo = await features.getDefaultCliVersion(gitHubVersion.type); toolsFeatureFlagsValid = codeQLDefaultVersionInfo.toolsFeatureFlagsValid; const initCodeQLResult = await (0, init_1.initCodeQL)((0, actions_util_1.getOptionalInput)("tools"), apiDetails, (0, actions_util_1.getTemporaryDirectory)(), gitHubVersion.type, codeQLDefaultVersionInfo, logger); @@ -182,7 +188,10 @@ async function run() { catch (unwrappedError) { const error = (0, util_1.wrapError)(unwrappedError); core.setFailed(error.message); - await (0, status_report_1.sendStatusReport)(await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Init, error instanceof util_1.ConfigurationError ? "user-error" : "aborted", startedAt, config, await (0, util_1.checkDiskUsage)(), logger, error.message, error.stack)); + const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Init, error instanceof util_1.ConfigurationError ? "user-error" : "aborted", startedAt, config, await (0, util_1.checkDiskUsage)(), logger, error.message, error.stack); + if (statusReportBase !== undefined) { + await (0, status_report_1.sendStatusReport)(statusReportBase); + } return; } try { diff --git a/lib/init-action.js.map b/lib/init-action.js.map index 68c0b44c53..f6605eb0bf 100644 --- a/lib/init-action.js.map +++ b/lib/init-action.js.map @@ -1 +1 @@ -{"version":3,"file":"init-action.js","sourceRoot":"","sources":["../src/init-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,uDAAmD;AACnD,+BAAoC;AAEpC,iDAMwB;AACxB,6CAAgD;AAGhD,+CAAuC;AACvC,mDAIyB;AACzB,iCAMgB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EACZ,MAAM,CACP,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB;IAC5B,0DAA0D;IAC1D,MAAM,WAAW,GAAG,IAAA,+BAAgB,EAAC,cAAc,CAAC,CAAC;IACrD,IAAI,WAAW,KAAK,SAAS;QAAE,OAAO,WAAW,KAAK,MAAM,CAAC;IAE7D,6FAA6F;IAC7F,IAAI,CAAC,IAAA,qBAAc,GAAE;QAAE,OAAO,KAAK,CAAC;IAEpC,oDAAoD;IACpD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,IAAI,CAAC;QACH,MAAM,GAAG,EAAE,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CAAC,uBAAuB,IAAA,gBAAS,EAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,MAAM,IAAA,sBAAe,GAAE,CAAC;AAC1B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"init-action.js","sourceRoot":"","sources":["../src/init-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,uDAAmD;AACnD,+BAAoC;AAEpC,iDAMwB;AACxB,6CAAgD;AAGhD,+CAAuC;AACvC,mDAIyB;AACzB,iCAMgB;AAChB,2CAAuC;AACvC,uCAAqD;AACrD,6CAAkD;AAClD,iDAA6C;AAC7C,mDAMyB;AACzB,qDAAgD;AAChD,iDAAmD;AACnD,iCAegB;AAChB,yCAA8C;AA0C9C,KAAK,UAAU,yBAAyB,CACtC,SAAe,EACf,MAAsC,EACtC,uBAA2C,EAC3C,sBAA2C,EAC3C,WAAwB,EACxB,YAAoB,EACpB,MAAc,EACd,KAAa;IAEb,MAAM,gBAAgB,GAAG,MAAM,IAAA,sCAAsB,EACnD,0BAAU,CAAC,IAAI,EACf,IAAA,gCAAg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,IAAA,+BAAgB,EAAC,cAAc,CAAC,CAAC;IACrD,IAAI,WAAW,KAAK,SAAS;QAAE,OAAO,WAAW,KAAK,MAAM,CAAC;IAE7D,6FAA6F;IAC7F,IAAI,CAAC,IAAA,qBAAc,GAAE;QAAE,OAAO,KAAK,CAAC;IAEpC,oDAAoD;IACpD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,IAAI,CAAC;QACH,MAAM,GAAG,EAAE,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CAAC,uBAAuB,IAAA,gBAAS,EAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,MAAM,IAAA,sBAAe,GAAE,CAAC;AAC1B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/resolve-environment-action.js b/lib/resolve-environment-action.js index d1da152198..cbe4831479 100644 --- a/lib/resolve-environment-action.js +++ b/lib/resolve-environment-action.js @@ -38,7 +38,10 @@ async function run() { const logger = (0, logging_1.getActionsLogger)(); let config; try { - await (0, status_report_1.sendStatusReport)(await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.ResolveEnvironment, "starting", startedAt, config, await (0, util_1.checkDiskUsage)(), logger)); + const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.ResolveEnvironment, "starting", startedAt, config, await (0, util_1.checkDiskUsage)(), logger); + if (statusReportBase !== undefined) { + await (0, status_report_1.sendStatusReport)(statusReportBase); + } const gitHubVersion = await (0, api_client_1.getGitHubVersion)(); (0, util_1.checkGitHubVersionInRange)(gitHubVersion, logger); (0, util_1.checkActionVersion)((0, actions_util_1.getActionVersion)(), gitHubVersion); @@ -61,11 +64,17 @@ async function run() { else { // For any other error types, something has more seriously gone wrong and we fail. core.setFailed(`Failed to resolve a build environment suitable for automatically building your code. ${error.message}`); - await (0, status_report_1.sendStatusReport)(await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.ResolveEnvironment, (0, status_report_1.getActionsStatus)(error), startedAt, config, await (0, util_1.checkDiskUsage)(), logger, error.message, error.stack)); + const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.ResolveEnvironment, (0, status_report_1.getActionsStatus)(error), startedAt, config, await (0, util_1.checkDiskUsage)(), logger, error.message, error.stack); + if (statusReportBase !== undefined) { + await (0, status_report_1.sendStatusReport)(statusReportBase); + } } return; } - await (0, status_report_1.sendStatusReport)(await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.ResolveEnvironment, "success", startedAt, config, await (0, util_1.checkDiskUsage)(), logger)); + const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.ResolveEnvironment, "success", startedAt, config, await (0, util_1.checkDiskUsage)(), logger); + if (statusReportBase !== undefined) { + await (0, status_report_1.sendStatusReport)(statusReportBase); + } } async function runWrapper() { try { diff --git a/lib/resolve-environment-action.js.map b/lib/resolve-environment-action.js.map index dc18ed9089..cdaa823d8f 100644 --- a/lib/resolve-environment-action.js.map +++ b/lib/resolve-environment-action.js.map @@ -1 +1 @@ -{"version":3,"file":"resolve-environment-action.js","sourceRoot":"","sources":["../src/resolve-environment-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AAEtC,iDAKwB;AACxB,6CAAgD;AAChD,6CAAsD;AACtD,iDAAmD;AACnD,uCAA6C;AAC7C,+DAAmE;AACnE,mDAKyB;AACzB,iCAMgB;AAEhB,MAAM,uBAAuB,GAAG,aAAa,CAAC;AAE9C,KAAK,UAAU,GAAG;IAChB,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAElC,IAAI,MAA0B,CAAC;IAE/B,IAAI,CAAC;QACH,MAAM,IAAA,gCAAgB,EACpB,MAAM,IAAA,sCAAsB,EAC1B,0BAAU,CAAC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sCAAsB,EAC1B,0BAAU,CAAC,kBAAkB,EAC7B,IAAA,gCAAgB,EAAC,KAAK,CAAC,EACvB,SAAS,EACT,MAAM,EACN,MAAM,IAAA,qBAAc,GAAE,EACtB,MAAM,EACN,KAAK,CAAC,OAAO,EACb,KAAK,CAAC,KAAK,CACZ,CACF,CAAC;QACJ,CAAC;QAED,OAAO;IACT,CAAC;IAED,MAAM,IAAA,gCAAgB,EACpB,MAAM,IAAA,sCAAsB,EAC1B,0BAAU,CAAC,kBAAkB,EAC7B,SAAS,EACT,SAAS,EACT,MAAM,EACN,MAAM,IAAA,qBAAc,GAAE,EACtB,MAAM,CACP,CACF,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,IAAI,CAAC;QACH,MAAM,GAAG,EAAE,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CACZ,GAAG,0BAAU,CAAC,kBAAkB,mBAC9B,IAAA,gBAAS,EAAC,KAAK,CAAC,CAAC,OACnB,EAAE,CACH,CAAC;IACJ,CAAC;IACD,MAAM,IAAA,sBAAe,GAAE,CAAC;AAC1B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"resolve-environment-action.js","sourceRoot":"","sources":["../src/resolve-environment-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AAEtC,iDAKwB;AACxB,6CAAgD;AAChD,6CAAsD;AACtD,iDAAmD;AACnD,uCAA6C;AAC7C,+DAAmE;AACnE,mDAKyB;AACzB,iCAMgB;AAEhB,MAAM,uBAAuB,GAAG,aAAa,CAAC;AAE9C,KAAK,UAAU,GAAG;IAChB,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAElC,IAAI,MAA0B,CAAC;IAE/B,IAAI,CAAC;QACH,MAAM,gBAAgB,GAAG,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AM,CAAC;YACN,kFAAkF;YAClF,IAAI,CAAC,SAAS,CACZ,wFAAwF,KAAK,CAAC,OAAO,EAAE,CACxG,CAAC;YAEF,MAAM,gBAAgB,GAAG,MAAM,IAAA,sCAAsB,EACnD,0BAAU,CAAC,kBAAkB,EAC7B,IAAA,gCAAgB,EAAC,KAAK,CAAC,EACvB,SAAS,EACT,MAAM,EACN,MAAM,IAAA,qBAAc,GAAE,EACtB,MAAM,EACN,KAAK,CAAC,OAAO,EACb,KAAK,CAAC,KAAK,CACZ,CAAC;YACF,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;gBACnC,MAAM,IAAA,gCAAgB,EAAC,gBAAgB,CAAC,CAAC;YAC3C,CAAC;QACH,CAAC;QAED,OAAO;IACT,CAAC;IAED,MAAM,gBAAgB,GAAG,MAAM,IAAA,sCAAsB,EACnD,0BAAU,CAAC,kBAAkB,EAC7B,SAAS,EACT,SAAS,EACT,MAAM,EACN,MAAM,IAAA,qBAAc,GAAE,EACtB,MAAM,CACP,CAAC;IACF,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;QACnC,MAAM,IAAA,gCAAgB,EAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,IAAI,CAAC;QACH,MAAM,GAAG,EAAE,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CACZ,GAAG,0BAAU,CAAC,kBAAkB,mBAC9B,IAAA,gBAAS,EAAC,KAAK,CAAC,CAAC,OACnB,EAAE,CACH,CAAC;IACJ,CAAC;IACD,MAAM,IAAA,sBAAe,GAAE,CAAC;AAC1B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/status-report.js b/lib/status-report.js index e2de9b16dd..3866202f53 100644 --- a/lib/status-report.js +++ b/lib/status-report.js @@ -107,97 +107,105 @@ function setJobStatusIfUnsuccessful(actionStatus) { * @param startedAt The time this action started executing. * @param cause Cause of failure (only supply if status is 'failure') * @param exception Exception (only supply if status is 'failure') + * @returns undefined if an exception was thrown. */ async function createStatusReportBase(actionName, status, actionStartedAt, config, diskInfo, logger, cause, exception) { - const commitOid = (0, actions_util_1.getOptionalInput)("sha") || process.env["GITHUB_SHA"] || ""; - const ref = await (0, actions_util_1.getRef)(); - const jobRunUUID = process.env[environment_1.EnvVar.JOB_RUN_UUID] || ""; - const workflowRunID = (0, actions_util_1.getWorkflowRunID)(); - const workflowRunAttempt = (0, actions_util_1.getWorkflowRunAttempt)(); - const workflowName = process.env["GITHUB_WORKFLOW"] || ""; - const jobName = process.env["GITHUB_JOB"] || ""; - const analysis_key = await (0, api_client_1.getAnalysisKey)(); - let workflowStartedAt = process.env[environment_1.EnvVar.WORKFLOW_STARTED_AT]; - if (workflowStartedAt === undefined) { - workflowStartedAt = actionStartedAt.toISOString(); - core.exportVariable(environment_1.EnvVar.WORKFLOW_STARTED_AT, workflowStartedAt); - } - const runnerOs = (0, util_1.getRequiredEnvParam)("RUNNER_OS"); - const codeQlCliVersion = (0, util_1.getCachedCodeQlVersion)(); - const actionRef = process.env["GITHUB_ACTION_REF"]; - const testingEnvironment = process.env[environment_1.EnvVar.TESTING_ENVIRONMENT] || ""; - // re-export the testing environment variable so that it is available to subsequent steps, - // even if it was only set for this step - if (testingEnvironment !== "") { - core.exportVariable(environment_1.EnvVar.TESTING_ENVIRONMENT, testingEnvironment); - } - const statusReport = { - action_name: actionName, - action_oid: "unknown", // TODO decide if it's possible to fill this in - action_ref: actionRef, - action_started_at: actionStartedAt.toISOString(), - action_version: (0, actions_util_1.getActionVersion)(), - analysis_key, - build_mode: config?.buildMode, - commit_oid: commitOid, - first_party_analysis: isFirstPartyAnalysis(actionName), - job_name: jobName, - job_run_uuid: jobRunUUID, - ref, - runner_os: runnerOs, - started_at: workflowStartedAt, - status, - testing_environment: testingEnvironment, - workflow_name: workflowName, - workflow_run_attempt: workflowRunAttempt, - workflow_run_id: workflowRunID, - }; try { - statusReport.actions_event_name = (0, actions_util_1.getWorkflowEventName)(); + const commitOid = (0, actions_util_1.getOptionalInput)("sha") || process.env["GITHUB_SHA"] || ""; + const ref = await (0, actions_util_1.getRef)(); + const jobRunUUID = process.env[environment_1.EnvVar.JOB_RUN_UUID] || ""; + const workflowRunID = (0, actions_util_1.getWorkflowRunID)(); + const workflowRunAttempt = (0, actions_util_1.getWorkflowRunAttempt)(); + const workflowName = process.env["GITHUB_WORKFLOW"] || ""; + const jobName = process.env["GITHUB_JOB"] || ""; + const analysis_key = await (0, api_client_1.getAnalysisKey)(); + let workflowStartedAt = process.env[environment_1.EnvVar.WORKFLOW_STARTED_AT]; + if (workflowStartedAt === undefined) { + workflowStartedAt = actionStartedAt.toISOString(); + core.exportVariable(environment_1.EnvVar.WORKFLOW_STARTED_AT, workflowStartedAt); + } + const runnerOs = (0, util_1.getRequiredEnvParam)("RUNNER_OS"); + const codeQlCliVersion = (0, util_1.getCachedCodeQlVersion)(); + const actionRef = process.env["GITHUB_ACTION_REF"] || ""; + const testingEnvironment = process.env[environment_1.EnvVar.TESTING_ENVIRONMENT] || ""; + // re-export the testing environment variable so that it is available to subsequent steps, + // even if it was only set for this step + if (testingEnvironment !== "") { + core.exportVariable(environment_1.EnvVar.TESTING_ENVIRONMENT, testingEnvironment); + } + const statusReport = { + action_name: actionName, + action_oid: "unknown", // TODO decide if it's possible to fill this in + action_ref: actionRef, + action_started_at: actionStartedAt.toISOString(), + action_version: (0, actions_util_1.getActionVersion)(), + analysis_key, + build_mode: config?.buildMode, + commit_oid: commitOid, + first_party_analysis: isFirstPartyAnalysis(actionName), + job_name: jobName, + job_run_uuid: jobRunUUID, + ref, + runner_os: runnerOs, + started_at: workflowStartedAt, + status, + testing_environment: testingEnvironment, + workflow_name: workflowName, + workflow_run_attempt: workflowRunAttempt, + workflow_run_id: workflowRunID, + }; + try { + statusReport.actions_event_name = (0, actions_util_1.getWorkflowEventName)(); + } + catch (e) { + logger.warning(`Could not determine the workflow event name: ${e}.`); + } + if (config) { + statusReport.languages = config.languages.join(","); + } + if (diskInfo) { + statusReport.runner_available_disk_space_bytes = + diskInfo.numAvailableBytes; + statusReport.runner_total_disk_space_bytes = diskInfo.numTotalBytes; + } + // Add optional parameters + if (cause) { + statusReport.cause = cause; + } + if (exception) { + statusReport.exception = exception; + } + if (status === "success" || + status === "failure" || + status === "aborted" || + status === "user-error") { + statusReport.completed_at = new Date().toISOString(); + } + const matrix = (0, actions_util_1.getRequiredInput)("matrix"); + if (matrix) { + statusReport.matrix_vars = matrix; + } + if ("RUNNER_ARCH" in process.env) { + // RUNNER_ARCH is available only in GHES 3.4 and later + // Values other than X86, X64, ARM, or ARM64 are discarded server side + statusReport.runner_arch = process.env["RUNNER_ARCH"]; + } + if (runnerOs === "Windows" || runnerOs === "macOS") { + statusReport.runner_os_release = os.release(); + } + if (codeQlCliVersion !== undefined) { + statusReport.codeql_version = codeQlCliVersion.version; + } + const imageVersion = process.env["ImageVersion"]; + if (imageVersion) { + statusReport.runner_image_version = imageVersion; + } + return statusReport; } catch (e) { - logger.warning(`Could not determine the workflow event name: ${e}.`); - } - if (config) { - statusReport.languages = config.languages.join(","); - } - if (diskInfo) { - statusReport.runner_available_disk_space_bytes = diskInfo.numAvailableBytes; - statusReport.runner_total_disk_space_bytes = diskInfo.numTotalBytes; - } - // Add optional parameters - if (cause) { - statusReport.cause = cause; - } - if (exception) { - statusReport.exception = exception; - } - if (status === "success" || - status === "failure" || - status === "aborted" || - status === "user-error") { - statusReport.completed_at = new Date().toISOString(); - } - const matrix = (0, actions_util_1.getRequiredInput)("matrix"); - if (matrix) { - statusReport.matrix_vars = matrix; - } - if ("RUNNER_ARCH" in process.env) { - // RUNNER_ARCH is available only in GHES 3.4 and later - // Values other than X86, X64, ARM, or ARM64 are discarded server side - statusReport.runner_arch = process.env["RUNNER_ARCH"]; - } - if (runnerOs === "Windows" || runnerOs === "macOS") { - statusReport.runner_os_release = os.release(); - } - if (codeQlCliVersion !== undefined) { - statusReport.codeql_version = codeQlCliVersion.version; - } - const imageVersion = process.env["ImageVersion"]; - if (imageVersion) { - statusReport.runner_image_version = imageVersion; + logger.warning(`Caught an exception while gathering information for telemetry: ${e}. Will skip sending status report.`); + return undefined; } - return statusReport; } exports.createStatusReportBase = createStatusReportBase; const OUT_OF_DATE_MSG = "CodeQL Action is out-of-date. Please upgrade to the latest version of codeql-action."; diff --git a/lib/status-report.js.map b/lib/status-report.js.map index cf139f45fe..04df6cf308 100644 --- a/lib/status-report.js.map +++ b/lib/status-report.js.map @@ -1 +1 @@ -{"version":3,"file":"status-report.js","sourceRoot":"","sources":["../src/status-report.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,oDAAsC;AAEtC,iDAQwB;AACxB,6CAA4D;AAE5D,+CAAuC;AAEvC,iCASgB;AAEhB,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,gCAAkB,CAAA;IAClB,2BAAa,CAAA;IACb,oCAAsB,CAAA;IACtB,wDAA0C,CAAA;IAC1C,0CAA4B,CAAA;AAC9B,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAED;;;;;;;GAOG;AACH,SAAgB,oBAAoB,CAAC,UAAsB;IACzD,IAAI,UAAU,KAAK,UAAU,CAAC,WAAW,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,oBAAM,CAAC,mBAAmB,CAAC,KAAK,MAAM,CAAC;AAC5D,CAAC;AALD,oDAKC;AASD,8EAA8E;AAC9E,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,iDAAoC,CAAA;IACpC,iDAAoC,CAAA;IACpC,iDAAoC,CAAA;IACpC,iEAAoD,CAAA;AACtD,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAkGD,SAAgB,gBAAgB,CAC9B,KAAe,EACf,iBAA0B;IAE1B,IAAI,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4EAA4E;oBAC5E,IAAI,IAAA,0BAAmB,EAAC,mBAAmB,CAAC,KAAK,wBAAiB,EAAE,CAAC;wBACnE,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;oBAC/B,CAAC;yBAAM,CAAC;wBACN,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;oBAC9B,CAAC;oBACD,OAAO;YACX,CAAC;QACH,CAAC;QAED,mFAAmF;QACnF,0EAA0E;QAC1E,IAAI,CAAC,OAAO,CACV,wEAAwE,CACzE,CAAC;IACJ,CAAC;AACH,CAAC;AAnED,4CAmEC"} \ No newline at end of file +{"version":3,"file":"status-report.js","sourceRoot":"","sources":["../src/status-report.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,oDAAsC;AAEtC,iDAQwB;AACxB,6CAA4D;AAE5D,+CAAuC;AAEvC,iCASgB;AAEhB,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,gCAAkB,CAAA;IAClB,2BAAa,CAAA;IACb,oCAAsB,CAAA;IACtB,wDAA0C,CAAA;IAC1C,0CAA4B,CAAA;AAC9B,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAED;;;;;;;GAOG;AACH,SAAgB,oBAAoB,CAAC,UAAsB;IACzD,IAAI,UAAU,KAAK,UAAU,CAAC,WAAW,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,oBAAM,CAAC,mBAAmB,CAAC,KAAK,MAAM,CAAC;AAC5D,CAAC;AALD,oDAKC;AASD,8EAA8E;AAC9E,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,iDAAoC,CAAA;IACpC,iDAAoC,CAAA;IACpC,iDAAoC,CAAA;IACpC,iEAAoD,CAAA;AACtD,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAkGD,SAAgB,gBAAgB,CAC9B,KAAe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AC,OAAO,CAAC,CAAC;oBAC1B,CAAC;oBACD,OAAO;gBACT,KAAK,GAAG;oBACN,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;oBACxB,OAAO;gBACT,KAAK,GAAG;oBACN,+CAA+C;oBAC/C,2EAA2E;oBAC3E,4EAA4E;oBAC5E,IAAI,IAAA,0BAAmB,EAAC,mBAAmB,CAAC,KAAK,wBAAiB,EAAE,CAAC;wBACnE,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;oBAC/B,CAAC;yBAAM,CAAC;wBACN,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;oBAC9B,CAAC;oBACD,OAAO;YACX,CAAC;QACH,CAAC;QAED,mFAAmF;QACnF,0EAA0E;QAC1E,IAAI,CAAC,OAAO,CACV,wEAAwE,CACzE,CAAC;IACJ,CAAC;AACH,CAAC;AAnED,4CAmEC"} \ No newline at end of file diff --git a/lib/status-report.test.js b/lib/status-report.test.js index 03b803c01e..cc68dbc52c 100644 --- a/lib/status-report.test.js +++ b/lib/status-report.test.js @@ -59,41 +59,44 @@ function setupEnvironmentAndStub(tmpDir) { buildMode: config_utils_1.BuildMode.None, languages: [languages_1.Language.java, languages_1.Language.swift], }), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace"); - t.is(statusReport.action_name, status_report_1.ActionName.Init); - t.is(statusReport.action_oid, "unknown"); - t.is(typeof statusReport.action_version, "string"); - t.is(statusReport.action_started_at, new Date("May 19, 2023 05:19:00").toISOString()); - t.is(statusReport.actions_event_name, "dynamic"); - t.is(statusReport.analysis_key, "analysis-key"); - t.is(statusReport.build_mode, config_utils_1.BuildMode.None); - t.is(statusReport.cause, "failure cause"); - t.is(statusReport.commit_oid, process.env["GITHUB_SHA"]); - t.is(statusReport.exception, "exception stack trace"); - t.is(statusReport.job_name, process.env["GITHUB_JOB"] || ""); - t.is(typeof statusReport.job_run_uuid, "string"); - t.is(statusReport.languages, "java,swift"); - t.is(statusReport.ref, process.env["GITHUB_REF"]); - t.is(statusReport.runner_available_disk_space_bytes, 100); - t.is(statusReport.runner_image_version, process.env["ImageVersion"]); - t.is(statusReport.runner_os, process.env["RUNNER_OS"]); - t.is(statusReport.started_at, process.env[environment_1.EnvVar.WORKFLOW_STARTED_AT]); - t.is(statusReport.status, "failure"); - t.is(statusReport.workflow_name, process.env["GITHUB_WORKFLOW"] || ""); - t.is(statusReport.workflow_run_attempt, 2); - t.is(statusReport.workflow_run_id, 100); + t.truthy(statusReport); + if (statusReport !== undefined) { + t.is(statusReport.action_name, status_report_1.ActionName.Init); + t.is(statusReport.action_oid, "unknown"); + t.is(typeof statusReport.action_version, "string"); + t.is(statusReport.action_started_at, new Date("May 19, 2023 05:19:00").toISOString()); + t.is(statusReport.actions_event_name, "dynamic"); + t.is(statusReport.analysis_key, "analysis-key"); + t.is(statusReport.build_mode, config_utils_1.BuildMode.None); + t.is(statusReport.cause, "failure cause"); + t.is(statusReport.commit_oid, process.env["GITHUB_SHA"]); + t.is(statusReport.exception, "exception stack trace"); + t.is(statusReport.job_name, process.env["GITHUB_JOB"] || ""); + t.is(typeof statusReport.job_run_uuid, "string"); + t.is(statusReport.languages, "java,swift"); + t.is(statusReport.ref, process.env["GITHUB_REF"]); + t.is(statusReport.runner_available_disk_space_bytes, 100); + t.is(statusReport.runner_image_version, process.env["ImageVersion"]); + t.is(statusReport.runner_os, process.env["RUNNER_OS"]); + t.is(statusReport.started_at, process.env[environment_1.EnvVar.WORKFLOW_STARTED_AT]); + t.is(statusReport.status, "failure"); + t.is(statusReport.workflow_name, process.env["GITHUB_WORKFLOW"] || ""); + t.is(statusReport.workflow_run_attempt, 2); + t.is(statusReport.workflow_run_id, 100); + } }); }); (0, ava_1.default)("createStatusReportBase_firstParty", async (t) => { await (0, util_1.withTmpDir)(async (tmpDir) => { setupEnvironmentAndStub(tmpDir); - t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.UploadSarif, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace")).first_party_analysis, false); - t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Autobuild, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace")).first_party_analysis, true); + t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.UploadSarif, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace"))?.first_party_analysis, false); + t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Autobuild, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace"))?.first_party_analysis, true); process.env["CODEQL_ACTION_INIT_HAS_RUN"] = "foobar"; - t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.UploadSarif, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace")).first_party_analysis, false); - t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Init, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace")).first_party_analysis, true); + t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.UploadSarif, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace"))?.first_party_analysis, false); + t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Init, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace"))?.first_party_analysis, true); process.env["CODEQL_ACTION_INIT_HAS_RUN"] = "true"; - t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.UploadSarif, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace")).first_party_analysis, true); - t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Analyze, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace")).first_party_analysis, true); + t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.UploadSarif, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace"))?.first_party_analysis, true); + t.is((await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.Analyze, "failure", new Date("May 19, 2023 05:19:00"), (0, testing_utils_1.createTestConfig)({}), { numAvailableBytes: 100, numTotalBytes: 500 }, (0, logging_1.getRunnerLogger)(false), "failure cause", "exception stack trace"))?.first_party_analysis, true); }); }); //# sourceMappingURL=status-report.test.js.map \ No newline at end of file diff --git a/lib/status-report.test.js.map b/lib/status-report.test.js.map index 8a50c64d02..28a7cd81f5 100644 --- a/lib/status-report.test.js.map +++ b/lib/status-report.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,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,EAC9C,IAAA,yBAAe,EAAC,KAAK,CAAC,EACtB,eAAe,EACf,uBAAuB,CACxB,CACF,EAAE,oBAAoB,EACvB,IAAI,CACL,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/upload-sarif-action.js b/lib/upload-sarif-action.js index f486fc5d16..9d5b85f130 100644 --- a/lib/upload-sarif-action.js +++ b/lib/upload-sarif-action.js @@ -34,11 +34,13 @@ const upload_lib = __importStar(require("./upload-lib")); const util_1 = require("./util"); async function sendSuccessStatusReport(startedAt, uploadStats, logger) { const statusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.UploadSarif, "success", startedAt, undefined, await (0, util_1.checkDiskUsage)(), logger); - const statusReport = { - ...statusReportBase, - ...uploadStats, - }; - await (0, status_report_1.sendStatusReport)(statusReport); + if (statusReportBase !== undefined) { + const statusReport = { + ...statusReportBase, + ...uploadStats, + }; + await (0, status_report_1.sendStatusReport)(statusReport); + } } async function run() { const startedAt = new Date(); @@ -46,7 +48,10 @@ async function run() { (0, util_1.initializeEnvironment)((0, actions_util_1.getActionVersion)()); const gitHubVersion = await (0, api_client_1.getGitHubVersion)(); (0, util_1.checkActionVersion)((0, actions_util_1.getActionVersion)(), gitHubVersion); - await (0, status_report_1.sendStatusReport)(await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.UploadSarif, "starting", startedAt, undefined, await (0, util_1.checkDiskUsage)(), logger)); + const startingStatusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.UploadSarif, "starting", startedAt, undefined, await (0, util_1.checkDiskUsage)(), logger); + if (startingStatusReportBase !== undefined) { + await (0, status_report_1.sendStatusReport)(startingStatusReportBase); + } try { const uploadResult = await upload_lib.uploadFromActions(actionsUtil.getRequiredInput("sarif_file"), actionsUtil.getRequiredInput("checkout_path"), actionsUtil.getOptionalInput("category"), logger); core.setOutput("sarif-id", uploadResult.sarifID); @@ -67,7 +72,10 @@ async function run() { const message = error.message; core.setFailed(message); console.log(error); - await (0, status_report_1.sendStatusReport)(await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.UploadSarif, (0, status_report_1.getActionsStatus)(error), startedAt, undefined, await (0, util_1.checkDiskUsage)(), logger, message, error.stack)); + const errorStatusReportBase = await (0, status_report_1.createStatusReportBase)(status_report_1.ActionName.UploadSarif, (0, status_report_1.getActionsStatus)(error), startedAt, undefined, await (0, util_1.checkDiskUsage)(), logger, message, error.stack); + if (errorStatusReportBase !== undefined) { + await (0, status_report_1.sendStatusReport)(errorStatusReportBase); + } return; } } diff --git a/lib/upload-sarif-action.js.map b/lib/upload-sarif-action.js.map index 3166b9ec4b..1c754d6f4c 100644 --- a/lib/upload-sarif-action.js.map +++ b/lib/upload-sarif-action.js.map @@ -1 +1 @@ -{"version":3,"file":"upload-sarif-action.js","sourceRoot":"","sources":["../src/upload-sarif-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AAEtC,4DAA8C;AAC9C,iDAAkD;AAClD,6CAAgD;AAChD,uCAAqD;AACrD,6CAAkD;AAClD,mDAOyB;AACzB,yDAA2C;AAC3C,iCAQgB;AAMhB,KAAK,UAAU,uBAAuB,CACpC,SAAe,EACf,WAA0C,EAC1C,MAAc;IAEd,MAAM,gBAAgB,GAAG,MAAM,IAAA,sCAAsB,EACnD,0BAAU,CAAC,WAAW,EACtB,SAAS,EACT,SAAS,EACT,SAAS,EACT,MAAM,IAAA,qBAAc,GAAE,EACtB,MAAM,CACP,CAAC;IACF,MAAM,YAAY,GAA4B;QAC5C,GAAG,gBAAgB;QACnB,GAAG,WAAW;KACf,CAAC;IACF,MAAM,IAAA,gCAAgB,EAAC,YAAY,CAAC,CAAC;AACvC,CAAC;AAED,KAAK,UAAU,GAAG;IAChB,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAC7B,MAAM,MAAM,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AC,WAAW,CAAC;YAC7C,cAAc,YAAY,UAAU,CAAC,uBAAuB;YAC1D,CAAC,CAAC,IAAI,yBAAkB,CAAC,cAAc,CAAC,OAAO,CAAC;YAChD,CAAC,CAAC,IAAA,gBAAS,EAAC,cAAc,CAAC,CAAC;QAChC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnB,MAAM,IAAA,gCAAgB,EACpB,MAAM,IAAA,sCAAsB,EAC1B,0BAAU,CAAC,WAAW,EACtB,IAAA,gCAAgB,EAAC,KAAK,CAAC,EACvB,SAAS,EACT,SAAS,EACT,MAAM,IAAA,qBAAc,GAAE,EACtB,MAAM,EACN,OAAO,EACP,KAAK,CAAC,KAAK,CACZ,CACF,CAAC;QACF,OAAO;IACT,CAAC;AACH,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,IAAI,CAAC;QACH,MAAM,GAAG,EAAE,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CACZ,sCAAsC,IAAA,gBAAS,EAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CACjE,CAAC;IACJ,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"upload-sarif-action.js","sourceRoot":"","sources":["../src/upload-sarif-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AAEtC,4DAA8C;AAC9C,iDAAkD;AAClD,6CAAgD;AAChD,uCAAqD;AACrD,6CAAkD;AAClD,mDAOyB;AACzB,yDAA2C;AAC3C,iCAQgB;AAMhB,KAAK,UAAU,uBAAuB,CACpC,SAAe,EACf,WAA0C,EAC1C,MAAc;IAEd,MAAM,gBAAgB,GAAG,MAAM,IAAA,sCAAsB,EACnD,0BAAU,CAAC,WAAW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AAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CACZ,sCAAsC,IAAA,gBAAS,EAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CACjE,CAAC;IACJ,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/src/analyze-action.ts b/src/analyze-action.ts index 03f02dd70d..5dc96f5e7f 100644 --- a/src/analyze-action.ts +++ b/src/analyze-action.ts @@ -74,22 +74,24 @@ async function sendStatusReport( error?.message, error?.stack, ); - const report: FinishStatusReport = { - ...statusReportBase, - ...(stats || {}), - ...(dbCreationTimings || {}), - }; - if (config && didUploadTrapCaches) { - const trapCacheUploadStatusReport: FinishWithTrapUploadStatusReport = { - ...report, - trap_cache_upload_duration_ms: Math.round(trapCacheUploadTime || 0), - trap_cache_upload_size_bytes: Math.round( - await getTotalCacheSize(config.trapCaches, logger), - ), + if (statusReportBase !== undefined) { + const report: FinishStatusReport = { + ...statusReportBase, + ...(stats || {}), + ...(dbCreationTimings || {}), }; - await statusReport.sendStatusReport(trapCacheUploadStatusReport); - } else { - await statusReport.sendStatusReport(report); + if (config && didUploadTrapCaches) { + const trapCacheUploadStatusReport: FinishWithTrapUploadStatusReport = { + ...report, + trap_cache_upload_duration_ms: Math.round(trapCacheUploadTime || 0), + trap_cache_upload_size_bytes: Math.round( + await getTotalCacheSize(config.trapCaches, logger), + ), + }; + await statusReport.sendStatusReport(trapCacheUploadStatusReport); + } else { + await statusReport.sendStatusReport(report); + } } } @@ -190,16 +192,17 @@ async function run() { const logger = getActionsLogger(); try { - await statusReport.sendStatusReport( - await createStatusReportBase( - ActionName.Analyze, - "starting", - startedAt, - config, - await util.checkDiskUsage(logger), - logger, - ), + const statusReportBase = await createStatusReportBase( + ActionName.Analyze, + "starting", + startedAt, + config, + await util.checkDiskUsage(logger), + logger, ); + if (statusReportBase !== undefined) { + await statusReport.sendStatusReport(statusReportBase); + } config = await getConfig(actionsUtil.getTemporaryDirectory(), logger); if (config === undefined) { diff --git a/src/autobuild-action.ts b/src/autobuild-action.ts index 628e8fdf06..a9a90f7d3c 100644 --- a/src/autobuild-action.ts +++ b/src/autobuild-action.ts @@ -55,12 +55,14 @@ async function sendCompletedStatusReport( cause?.message, cause?.stack, ); - const statusReport: AutobuildStatusReport = { - ...statusReportBase, - autobuild_languages: allLanguages.join(","), - autobuild_failure: failingLanguage, - }; - await sendStatusReport(statusReport); + if (statusReportBase !== undefined) { + const statusReport: AutobuildStatusReport = { + ...statusReportBase, + autobuild_languages: allLanguages.join(","), + autobuild_failure: failingLanguage, + }; + await sendStatusReport(statusReport); + } } async function run() { @@ -70,16 +72,17 @@ async function run() { let currentLanguage: Language | undefined; let languages: Language[] | undefined; try { - await sendStatusReport( - await createStatusReportBase( - ActionName.Autobuild, - "starting", - startedAt, - config, - await checkDiskUsage(logger), - logger, - ), + const statusReportBase = await createStatusReportBase( + ActionName.Autobuild, + "starting", + startedAt, + config, + await checkDiskUsage(logger), + logger, ); + if (statusReportBase !== undefined) { + await sendStatusReport(statusReportBase); + } const gitHubVersion = await getGitHubVersion(); checkGitHubVersionInRange(gitHubVersion, logger); diff --git a/src/init-action-post.ts b/src/init-action-post.ts index 643f235dbd..19f839030e 100644 --- a/src/init-action-post.ts +++ b/src/init-action-post.ts @@ -76,18 +76,19 @@ async function runWrapper() { const error = wrapError(unwrappedError); core.setFailed(error.message); - await sendStatusReport( - await createStatusReportBase( - ActionName.InitPost, - getActionsStatus(error), - startedAt, - config, - await checkDiskUsage(), - logger, - error.message, - error.stack, - ), + const statusReportBase = await createStatusReportBase( + ActionName.InitPost, + getActionsStatus(error), + startedAt, + config, + await checkDiskUsage(), + logger, + error.message, + error.stack, ); + if (statusReportBase !== undefined) { + await sendStatusReport(statusReportBase); + } return; } const jobStatus = initActionPostHelper.getFinalJobStatus(); @@ -101,12 +102,14 @@ async function runWrapper() { await checkDiskUsage(), logger, ); - const statusReport: InitPostStatusReport = { - ...statusReportBase, - ...uploadFailedSarifResult, - job_status: initActionPostHelper.getFinalJobStatus(), - }; - await sendStatusReport(statusReport); + if (statusReportBase !== undefined) { + const statusReport: InitPostStatusReport = { + ...statusReportBase, + ...uploadFailedSarifResult, + job_status: initActionPostHelper.getFinalJobStatus(), + }; + await sendStatusReport(statusReport); + } } void runWrapper(); diff --git a/src/init-action.ts b/src/init-action.ts index 21982a65fb..b6cd8a477e 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -120,6 +120,10 @@ async function sendCompletedStatusReport( error?.stack, ); + if (statusReportBase === undefined) { + return; + } + const workflowLanguages = getOptionalInput("languages"); const initStatusReport: InitStatusReport = { @@ -226,17 +230,17 @@ async function run() { core.exportVariable(EnvVar.INIT_ACTION_HAS_RUN, "true"); try { - await sendStatusReport( - await createStatusReportBase( - ActionName.Init, - "starting", - startedAt, - config, - await checkDiskUsage(logger), - logger, - ), + const statusReportBase = await createStatusReportBase( + ActionName.Init, + "starting", + startedAt, + config, + await checkDiskUsage(logger), + logger, ); - + if (statusReportBase !== undefined) { + await sendStatusReport(statusReportBase); + } const codeQLDefaultVersionInfo = await features.getDefaultCliVersion( gitHubVersion.type, ); @@ -315,18 +319,19 @@ async function run() { } catch (unwrappedError) { const error = wrapError(unwrappedError); core.setFailed(error.message); - await sendStatusReport( - await createStatusReportBase( - ActionName.Init, - error instanceof ConfigurationError ? "user-error" : "aborted", - startedAt, - config, - await checkDiskUsage(), - logger, - error.message, - error.stack, - ), + const statusReportBase = await createStatusReportBase( + ActionName.Init, + error instanceof ConfigurationError ? "user-error" : "aborted", + startedAt, + config, + await checkDiskUsage(), + logger, + error.message, + error.stack, ); + if (statusReportBase !== undefined) { + await sendStatusReport(statusReportBase); + } return; } diff --git a/src/resolve-environment-action.ts b/src/resolve-environment-action.ts index 231809bedb..f5f74957f2 100644 --- a/src/resolve-environment-action.ts +++ b/src/resolve-environment-action.ts @@ -34,16 +34,17 @@ async function run() { let config: Config | undefined; try { - await sendStatusReport( - await createStatusReportBase( - ActionName.ResolveEnvironment, - "starting", - startedAt, - config, - await checkDiskUsage(), - logger, - ), + const statusReportBase = await createStatusReportBase( + ActionName.ResolveEnvironment, + "starting", + startedAt, + config, + await checkDiskUsage(), + logger, ); + if (statusReportBase !== undefined) { + await sendStatusReport(statusReportBase); + } const gitHubVersion = await getGitHubVersion(); checkGitHubVersionInRange(gitHubVersion, logger); @@ -80,33 +81,35 @@ async function run() { `Failed to resolve a build environment suitable for automatically building your code. ${error.message}`, ); - await sendStatusReport( - await createStatusReportBase( - ActionName.ResolveEnvironment, - getActionsStatus(error), - startedAt, - config, - await checkDiskUsage(), - logger, - error.message, - error.stack, - ), + const statusReportBase = await createStatusReportBase( + ActionName.ResolveEnvironment, + getActionsStatus(error), + startedAt, + config, + await checkDiskUsage(), + logger, + error.message, + error.stack, ); + if (statusReportBase !== undefined) { + await sendStatusReport(statusReportBase); + } } return; } - await sendStatusReport( - await createStatusReportBase( - ActionName.ResolveEnvironment, - "success", - startedAt, - config, - await checkDiskUsage(), - logger, - ), + const statusReportBase = await createStatusReportBase( + ActionName.ResolveEnvironment, + "success", + startedAt, + config, + await checkDiskUsage(), + logger, ); + if (statusReportBase !== undefined) { + await sendStatusReport(statusReportBase); + } } async function runWrapper() { diff --git a/src/status-report.test.ts b/src/status-report.test.ts index a0e235b14b..dbe3c7cc75 100644 --- a/src/status-report.test.ts +++ b/src/status-report.test.ts @@ -51,32 +51,35 @@ test("createStatusReportBase", async (t) => { "failure cause", "exception stack trace", ); + t.truthy(statusReport); - t.is(statusReport.action_name, ActionName.Init); - t.is(statusReport.action_oid, "unknown"); - t.is(typeof statusReport.action_version, "string"); - t.is( - statusReport.action_started_at, - new Date("May 19, 2023 05:19:00").toISOString(), - ); - t.is(statusReport.actions_event_name, "dynamic"); - t.is(statusReport.analysis_key, "analysis-key"); - t.is(statusReport.build_mode, BuildMode.None); - t.is(statusReport.cause, "failure cause"); - t.is(statusReport.commit_oid, process.env["GITHUB_SHA"]!); - t.is(statusReport.exception, "exception stack trace"); - t.is(statusReport.job_name, process.env["GITHUB_JOB"] || ""); - t.is(typeof statusReport.job_run_uuid, "string"); - t.is(statusReport.languages, "java,swift"); - t.is(statusReport.ref, process.env["GITHUB_REF"]!); - t.is(statusReport.runner_available_disk_space_bytes, 100); - t.is(statusReport.runner_image_version, process.env["ImageVersion"]); - t.is(statusReport.runner_os, process.env["RUNNER_OS"]!); - t.is(statusReport.started_at, process.env[EnvVar.WORKFLOW_STARTED_AT]!); - t.is(statusReport.status, "failure"); - t.is(statusReport.workflow_name, process.env["GITHUB_WORKFLOW"] || ""); - t.is(statusReport.workflow_run_attempt, 2); - t.is(statusReport.workflow_run_id, 100); + if (statusReport !== undefined) { + t.is(statusReport.action_name, ActionName.Init); + t.is(statusReport.action_oid, "unknown"); + t.is(typeof statusReport.action_version, "string"); + t.is( + statusReport.action_started_at, + new Date("May 19, 2023 05:19:00").toISOString(), + ); + t.is(statusReport.actions_event_name, "dynamic"); + t.is(statusReport.analysis_key, "analysis-key"); + t.is(statusReport.build_mode, BuildMode.None); + t.is(statusReport.cause, "failure cause"); + t.is(statusReport.commit_oid, process.env["GITHUB_SHA"]!); + t.is(statusReport.exception, "exception stack trace"); + t.is(statusReport.job_name, process.env["GITHUB_JOB"] || ""); + t.is(typeof statusReport.job_run_uuid, "string"); + t.is(statusReport.languages, "java,swift"); + t.is(statusReport.ref, process.env["GITHUB_REF"]!); + t.is(statusReport.runner_available_disk_space_bytes, 100); + t.is(statusReport.runner_image_version, process.env["ImageVersion"]); + t.is(statusReport.runner_os, process.env["RUNNER_OS"]!); + t.is(statusReport.started_at, process.env[EnvVar.WORKFLOW_STARTED_AT]!); + t.is(statusReport.status, "failure"); + t.is(statusReport.workflow_name, process.env["GITHUB_WORKFLOW"] || ""); + t.is(statusReport.workflow_run_attempt, 2); + t.is(statusReport.workflow_run_id, 100); + } }); }); @@ -96,7 +99,7 @@ test("createStatusReportBase_firstParty", async (t) => { "failure cause", "exception stack trace", ) - ).first_party_analysis, + )?.first_party_analysis, false, ); @@ -112,7 +115,7 @@ test("createStatusReportBase_firstParty", async (t) => { "failure cause", "exception stack trace", ) - ).first_party_analysis, + )?.first_party_analysis, true, ); @@ -129,7 +132,7 @@ test("createStatusReportBase_firstParty", async (t) => { "failure cause", "exception stack trace", ) - ).first_party_analysis, + )?.first_party_analysis, false, ); @@ -145,7 +148,7 @@ test("createStatusReportBase_firstParty", async (t) => { "failure cause", "exception stack trace", ) - ).first_party_analysis, + )?.first_party_analysis, true, ); @@ -162,7 +165,7 @@ test("createStatusReportBase_firstParty", async (t) => { "failure cause", "exception stack trace", ) - ).first_party_analysis, + )?.first_party_analysis, true, ); @@ -178,7 +181,7 @@ test("createStatusReportBase_firstParty", async (t) => { "failure cause", "exception stack trace", ) - ).first_party_analysis, + )?.first_party_analysis, true, ); }); diff --git a/src/status-report.ts b/src/status-report.ts index fba326a583..dac97b37f0 100644 --- a/src/status-report.ts +++ b/src/status-report.ts @@ -233,6 +233,7 @@ export interface EventReport { * @param startedAt The time this action started executing. * @param cause Cause of failure (only supply if status is 'failure') * @param exception Exception (only supply if status is 'failure') + * @returns undefined if an exception was thrown. */ export async function createStatusReportBase( actionName: ActionName, @@ -243,103 +244,112 @@ export async function createStatusReportBase( logger: Logger, cause?: string, exception?: string, -): Promise { - const commitOid = getOptionalInput("sha") || process.env["GITHUB_SHA"] || ""; - const ref = await getRef(); - const jobRunUUID = process.env[EnvVar.JOB_RUN_UUID] || ""; - const workflowRunID = getWorkflowRunID(); - const workflowRunAttempt = getWorkflowRunAttempt(); - const workflowName = process.env["GITHUB_WORKFLOW"] || ""; - const jobName = process.env["GITHUB_JOB"] || ""; - const analysis_key = await getAnalysisKey(); - let workflowStartedAt = process.env[EnvVar.WORKFLOW_STARTED_AT]; - if (workflowStartedAt === undefined) { - workflowStartedAt = actionStartedAt.toISOString(); - core.exportVariable(EnvVar.WORKFLOW_STARTED_AT, workflowStartedAt); - } - const runnerOs = getRequiredEnvParam("RUNNER_OS"); - const codeQlCliVersion = getCachedCodeQlVersion(); - const actionRef = process.env["GITHUB_ACTION_REF"]; - const testingEnvironment = process.env[EnvVar.TESTING_ENVIRONMENT] || ""; - // re-export the testing environment variable so that it is available to subsequent steps, - // even if it was only set for this step - if (testingEnvironment !== "") { - core.exportVariable(EnvVar.TESTING_ENVIRONMENT, testingEnvironment); - } +): Promise { + try { + const commitOid = + getOptionalInput("sha") || process.env["GITHUB_SHA"] || ""; + const ref = await getRef(); + const jobRunUUID = process.env[EnvVar.JOB_RUN_UUID] || ""; + const workflowRunID = getWorkflowRunID(); + const workflowRunAttempt = getWorkflowRunAttempt(); + const workflowName = process.env["GITHUB_WORKFLOW"] || ""; + const jobName = process.env["GITHUB_JOB"] || ""; + const analysis_key = await getAnalysisKey(); + let workflowStartedAt = process.env[EnvVar.WORKFLOW_STARTED_AT]; + if (workflowStartedAt === undefined) { + workflowStartedAt = actionStartedAt.toISOString(); + core.exportVariable(EnvVar.WORKFLOW_STARTED_AT, workflowStartedAt); + } + const runnerOs = getRequiredEnvParam("RUNNER_OS"); + const codeQlCliVersion = getCachedCodeQlVersion(); + const actionRef = process.env["GITHUB_ACTION_REF"] || ""; + const testingEnvironment = process.env[EnvVar.TESTING_ENVIRONMENT] || ""; + // re-export the testing environment variable so that it is available to subsequent steps, + // even if it was only set for this step + if (testingEnvironment !== "") { + core.exportVariable(EnvVar.TESTING_ENVIRONMENT, testingEnvironment); + } - const statusReport: StatusReportBase = { - action_name: actionName, - action_oid: "unknown", // TODO decide if it's possible to fill this in - action_ref: actionRef, - action_started_at: actionStartedAt.toISOString(), - action_version: getActionVersion(), - analysis_key, - build_mode: config?.buildMode, - commit_oid: commitOid, - first_party_analysis: isFirstPartyAnalysis(actionName), - job_name: jobName, - job_run_uuid: jobRunUUID, - ref, - runner_os: runnerOs, - started_at: workflowStartedAt, - status, - testing_environment: testingEnvironment, - workflow_name: workflowName, - workflow_run_attempt: workflowRunAttempt, - workflow_run_id: workflowRunID, - }; + const statusReport: StatusReportBase = { + action_name: actionName, + action_oid: "unknown", // TODO decide if it's possible to fill this in + action_ref: actionRef, + action_started_at: actionStartedAt.toISOString(), + action_version: getActionVersion(), + analysis_key, + build_mode: config?.buildMode, + commit_oid: commitOid, + first_party_analysis: isFirstPartyAnalysis(actionName), + job_name: jobName, + job_run_uuid: jobRunUUID, + ref, + runner_os: runnerOs, + started_at: workflowStartedAt, + status, + testing_environment: testingEnvironment, + workflow_name: workflowName, + workflow_run_attempt: workflowRunAttempt, + workflow_run_id: workflowRunID, + }; - try { - statusReport.actions_event_name = getWorkflowEventName(); - } catch (e) { - logger.warning(`Could not determine the workflow event name: ${e}.`); - } + try { + statusReport.actions_event_name = getWorkflowEventName(); + } catch (e) { + logger.warning(`Could not determine the workflow event name: ${e}.`); + } - if (config) { - statusReport.languages = config.languages.join(","); - } + if (config) { + statusReport.languages = config.languages.join(","); + } - if (diskInfo) { - statusReport.runner_available_disk_space_bytes = diskInfo.numAvailableBytes; - statusReport.runner_total_disk_space_bytes = diskInfo.numTotalBytes; - } + if (diskInfo) { + statusReport.runner_available_disk_space_bytes = + diskInfo.numAvailableBytes; + statusReport.runner_total_disk_space_bytes = diskInfo.numTotalBytes; + } - // Add optional parameters - if (cause) { - statusReport.cause = cause; - } - if (exception) { - statusReport.exception = exception; - } - if ( - status === "success" || - status === "failure" || - status === "aborted" || - status === "user-error" - ) { - statusReport.completed_at = new Date().toISOString(); - } - const matrix = getRequiredInput("matrix"); - if (matrix) { - statusReport.matrix_vars = matrix; - } - if ("RUNNER_ARCH" in process.env) { - // RUNNER_ARCH is available only in GHES 3.4 and later - // Values other than X86, X64, ARM, or ARM64 are discarded server side - statusReport.runner_arch = process.env["RUNNER_ARCH"]; - } - if (runnerOs === "Windows" || runnerOs === "macOS") { - statusReport.runner_os_release = os.release(); - } - if (codeQlCliVersion !== undefined) { - statusReport.codeql_version = codeQlCliVersion.version; - } - const imageVersion = process.env["ImageVersion"]; - if (imageVersion) { - statusReport.runner_image_version = imageVersion; - } + // Add optional parameters + if (cause) { + statusReport.cause = cause; + } + if (exception) { + statusReport.exception = exception; + } + if ( + status === "success" || + status === "failure" || + status === "aborted" || + status === "user-error" + ) { + statusReport.completed_at = new Date().toISOString(); + } + const matrix = getRequiredInput("matrix"); + if (matrix) { + statusReport.matrix_vars = matrix; + } + if ("RUNNER_ARCH" in process.env) { + // RUNNER_ARCH is available only in GHES 3.4 and later + // Values other than X86, X64, ARM, or ARM64 are discarded server side + statusReport.runner_arch = process.env["RUNNER_ARCH"]; + } + if (runnerOs === "Windows" || runnerOs === "macOS") { + statusReport.runner_os_release = os.release(); + } + if (codeQlCliVersion !== undefined) { + statusReport.codeql_version = codeQlCliVersion.version; + } + const imageVersion = process.env["ImageVersion"]; + if (imageVersion) { + statusReport.runner_image_version = imageVersion; + } - return statusReport; + return statusReport; + } catch (e) { + logger.warning( + `Caught an exception while gathering information for telemetry: ${e}. Will skip sending status report.`, + ); + return undefined; + } } const OUT_OF_DATE_MSG = diff --git a/src/upload-sarif-action.ts b/src/upload-sarif-action.ts index 71ce81c817..386e583fa2 100644 --- a/src/upload-sarif-action.ts +++ b/src/upload-sarif-action.ts @@ -41,11 +41,13 @@ async function sendSuccessStatusReport( await checkDiskUsage(), logger, ); - const statusReport: UploadSarifStatusReport = { - ...statusReportBase, - ...uploadStats, - }; - await sendStatusReport(statusReport); + if (statusReportBase !== undefined) { + const statusReport: UploadSarifStatusReport = { + ...statusReportBase, + ...uploadStats, + }; + await sendStatusReport(statusReport); + } } async function run() { @@ -56,16 +58,17 @@ async function run() { const gitHubVersion = await getGitHubVersion(); checkActionVersion(getActionVersion(), gitHubVersion); - await sendStatusReport( - await createStatusReportBase( - ActionName.UploadSarif, - "starting", - startedAt, - undefined, - await checkDiskUsage(), - logger, - ), + const startingStatusReportBase = await createStatusReportBase( + ActionName.UploadSarif, + "starting", + startedAt, + undefined, + await checkDiskUsage(), + logger, ); + if (startingStatusReportBase !== undefined) { + await sendStatusReport(startingStatusReportBase); + } try { const uploadResult = await upload_lib.uploadFromActions( @@ -96,18 +99,20 @@ async function run() { const message = error.message; core.setFailed(message); console.log(error); - await sendStatusReport( - await createStatusReportBase( - ActionName.UploadSarif, - getActionsStatus(error), - startedAt, - undefined, - await checkDiskUsage(), - logger, - message, - error.stack, - ), + + const errorStatusReportBase = await createStatusReportBase( + ActionName.UploadSarif, + getActionsStatus(error), + startedAt, + undefined, + await checkDiskUsage(), + logger, + message, + error.stack, ); + if (errorStatusReportBase !== undefined) { + await sendStatusReport(errorStatusReportBase); + } return; } }