From 1996ca9f5de755225d03010f3ef0dba3173683fe Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Mon, 26 Jan 2026 11:21:41 +0000 Subject: [PATCH] Log when file coverage info is disabled --- lib/analyze-action.js | 5 +++++ src/analyze.ts | 6 ++++++ 2 files changed, 11 insertions(+) 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,