diff --git a/lib/analyze.js b/lib/analyze.js index b8196e2c2b..a21f0fcf85 100644 --- a/lib/analyze.js +++ b/lib/analyze.js @@ -156,11 +156,12 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag, statusReport[`analyze_builtin_queries_${language}_duration_ms`] = new Date().getTime() - startTimeBuiltIn; logger.startGroup(`Interpreting results for ${language}`); - startTimeInterpretResults = new Date().getTime(); + startTimeInterpretResults = new Date(); const analysisSummary = await runInterpretResults(language, undefined, sarifFile, config.debugMode); - endTimeInterpretResults = new Date().getTime(); + endTimeInterpretResults = new Date(); statusReport[`interpret_results_${language}_duration_ms`] = - endTimeInterpretResults - startTimeInterpretResults; + endTimeInterpretResults.getTime() - + startTimeInterpretResults.getTime(); logger.endGroup(); logger.info(analysisSummary); } @@ -205,11 +206,12 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag, } logger.endGroup(); logger.startGroup(`Interpreting results for ${language}`); - startTimeInterpretResults = new Date().getTime(); + startTimeInterpretResults = new Date(); const analysisSummary = await runInterpretResults(language, querySuitePaths, sarifFile, config.debugMode); - endTimeInterpretResults = new Date().getTime(); + endTimeInterpretResults = new Date(); statusReport[`interpret_results_${language}_duration_ms`] = - endTimeInterpretResults - startTimeInterpretResults; + endTimeInterpretResults.getTime() - + startTimeInterpretResults.getTime(); logger.endGroup(); logger.info(analysisSummary); } @@ -217,8 +219,8 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag, const perQueryAlertCounts = getPerQueryAlertCounts(sarifFile, logger); const perQueryAlertCountEventReport = { event: "codeql database interpret-results", - started_at: startTimeInterpretResults.toString(), - completed_at: endTimeInterpretResults.toString(), + started_at: startTimeInterpretResults.toISOString(), + completed_at: endTimeInterpretResults.toISOString(), exit_status: "success", language, properties: perQueryAlertCounts, diff --git a/lib/analyze.js.map b/lib/analyze.js.map index 8929b19f79..03261d81ed 100644 --- a/lib/analyze.js.map +++ b/lib/analyze.js.map @@ -1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AI,CAAC,EAAE,CAAC,CAAC;QAC7B,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YACrB,MAAM,CAAC,IAAI,CACT,2CAA2C,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAChE,CAAC;SACH;QACD,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;YAC7C,MAAM,CAAC,IAAI,CACT,qDAAqD,IAAI,CAAC,SAAS,CACjE,EAAE,CACH,EAAE,CACJ,CAAC;SACH;KACF;IAED,IAAI,MAAM,CAAC,MAAM,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,0BAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAChE;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAjCD,oDAiCC"} \ No newline at end of file diff --git a/src/analyze.ts b/src/analyze.ts index 00d9caa237..19d210ad56 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -246,8 +246,8 @@ export async function runQueries( try { const sarifFile = path.join(sarifFolder, `${language}.sarif`); - let startTimeInterpretResults: number; - let endTimeInterpretResults: number; + let startTimeInterpretResults: Date; + let endTimeInterpretResults: Date; if (await util.useCodeScanningConfigInCli(codeql, features)) { // If we are using the code scanning config in the CLI, // much of the work needed to generate the query suites @@ -263,16 +263,17 @@ export async function runQueries( new Date().getTime() - startTimeBuiltIn; logger.startGroup(`Interpreting results for ${language}`); - startTimeInterpretResults = new Date().getTime(); + startTimeInterpretResults = new Date(); const analysisSummary = await runInterpretResults( language, undefined, sarifFile, config.debugMode ); - endTimeInterpretResults = new Date().getTime(); + endTimeInterpretResults = new Date(); statusReport[`interpret_results_${language}_duration_ms`] = - endTimeInterpretResults - startTimeInterpretResults; + endTimeInterpretResults.getTime() - + startTimeInterpretResults.getTime(); logger.endGroup(); logger.info(analysisSummary); } else { @@ -348,16 +349,17 @@ export async function runQueries( } logger.endGroup(); logger.startGroup(`Interpreting results for ${language}`); - startTimeInterpretResults = new Date().getTime(); + startTimeInterpretResults = new Date(); const analysisSummary = await runInterpretResults( language, querySuitePaths, sarifFile, config.debugMode ); - endTimeInterpretResults = new Date().getTime(); + endTimeInterpretResults = new Date(); statusReport[`interpret_results_${language}_duration_ms`] = - endTimeInterpretResults - startTimeInterpretResults; + endTimeInterpretResults.getTime() - + startTimeInterpretResults.getTime(); logger.endGroup(); logger.info(analysisSummary); } @@ -366,8 +368,8 @@ export async function runQueries( const perQueryAlertCountEventReport: EventReport = { event: "codeql database interpret-results", - started_at: startTimeInterpretResults.toString(), - completed_at: endTimeInterpretResults.toString(), + started_at: startTimeInterpretResults.toISOString(), + completed_at: endTimeInterpretResults.toISOString(), exit_status: "success", language, properties: perQueryAlertCounts,