diff --git a/lib/analyze-action.js b/lib/analyze-action.js index a6dfba756..7af9d2f1d 100644 --- a/lib/analyze-action.js +++ b/lib/analyze-action.js @@ -94015,6 +94015,11 @@ async function runQueries(sarifFolder, memoryFlag, threadsFlag, diffRangePackDir if (qualityAnalysisSummary?.trim()) { logger.info(qualityAnalysisSummary); } + if (!config.enableFileCoverageInformation) { + logger.info( + "File coverage information is disabled for this PR analysis for performance reasons. It will still be enabled for analyses triggered by a push or a schedule." + ); + } if (await features.getValue("qa_telemetry_enabled" /* QaTelemetryEnabled */)) { const perQueryAlertCounts = getPerQueryAlertCounts(sarifFile); const perQueryAlertCountEventReport = { diff --git a/src/analyze.ts b/src/analyze.ts index 7094468a5..0bbd3973c 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -501,6 +501,12 @@ export async function runQueries( if (qualityAnalysisSummary?.trim()) { logger.info(qualityAnalysisSummary); } + if (!config.enableFileCoverageInformation) { + logger.info( + "File coverage information is disabled for this PR analysis for performance reasons. " + + "It will still be enabled for analyses triggered by a push or a schedule.", + ); + } if (await features.getValue(Feature.QaTelemetryEnabled)) { // Note: QA adds the `code-quality` query suite to the `queries` input,