diff --git a/lib/init-action-post.js b/lib/init-action-post.js index 46e58c619..dfbbbd7ce 100644 --- a/lib/init-action-post.js +++ b/lib/init-action-post.js @@ -169839,14 +169839,13 @@ async function recordOverlayStatus(codeql, config, features, logger) { logger ); const blurb = "This job attempted to run with improved incremental analysis but it did not complete successfully. This may have been due to disk space constraints: using improved incremental analysis can require a significant amount of disk space for some repositories."; - const outro = "If you want to enable improved incremental analysis, increase the disk space available to the runner. If that doesn't help, contact GitHub Support for further assistance."; if (saved) { logger.error( - `${blurb} This failure has been recorded in the Actions cache, so the next CodeQL analysis will run without improved incremental analysis. ${outro}` + `${blurb} This failure has been recorded in the Actions cache, so the next CodeQL analysis will run without improved incremental analysis. If you want to enable improved incremental analysis, increase the disk space available to the runner. If that doesn't help, contact GitHub Support for further assistance.` ); } else { logger.error( - `${blurb} The attempt to save this failure status to the Actions cache failed. The Action will attempt to save this failure status again on the next run, so future runs will skip improved incremental analysis. ${outro}` + `${blurb} The attempt to save this failure status to the Actions cache failed. The Action will attempt to run with improved incremental analysis again.` ); } } diff --git a/src/init-action-post-helper.ts b/src/init-action-post-helper.ts index 648432ba6..7cbf20d5d 100644 --- a/src/init-action-post-helper.ts +++ b/src/init-action-post-helper.ts @@ -295,23 +295,20 @@ async function recordOverlayStatus( "This job attempted to run with improved incremental analysis but it did not complete successfully. " + "This may have been due to disk space constraints: using improved incremental analysis can " + "require a significant amount of disk space for some repositories."; - const outro = - "If you want to enable improved incremental analysis, increase the disk space available to the runner. " + - "If that doesn't help, contact GitHub Support for further assistance."; if (saved) { logger.error( `${blurb} ` + "This failure has been recorded in the Actions cache, so the next CodeQL analysis will run " + - "without improved incremental analysis. " + - `${outro}`, + "without improved incremental analysis. If you want to enable improved incremental analysis, " + + "increase the disk space available to the runner. " + + "If that doesn't help, contact GitHub Support for further assistance.", ); } else { logger.error( `${blurb} ` + "The attempt to save this failure status to the Actions cache failed. The Action will attempt to " + - "save this failure status again on the next run, so future runs will skip improved incremental analysis. " + - `${outro}`, + "run with improved incremental analysis again.", ); } }