diff --git a/init/action.yml b/init/action.yml index b6721a8c7b..5756ad5b35 100644 --- a/init/action.yml +++ b/init/action.yml @@ -154,8 +154,8 @@ inputs: trap-caching: description: >- Explicitly enable or disable TRAP caching instead of using the automatically determined default. - TRAP caching is disabled by default when improved incremental analysis is enabled, - because improved incremental analysis of a pull request only extracts changed files, + TRAP caching is disabled by default when overlay analysis is enabled, + because overlay analysis of a pull request only extracts changed files, which rarely benefit from TRAP caching. required: false dependency-caching: diff --git a/lib/entry-points.js b/lib/entry-points.js index bff941474f..86f2f1b271 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -183603,14 +183603,14 @@ async function addOverlayDisablementDiagnostics(config, codeql, overlayDisabledR config, makeDiagnostic( "codeql-action/overlay-disabled-due-to-cached-status", - "Skipped improved incremental analysis because it failed previously with similar hardware resources", + "Skipped overlay analysis because it failed previously with similar hardware resources", { attributes: { languages: config.languages }, - markdownMessage: `Improved incremental analysis was skipped because it previously failed for this repository with CodeQL version ${(await codeql.getVersion()).version} on a runner with similar hardware resources. One possible reason for this is that improved incremental analysis can require a significant amount of disk space for some repositories. If you want to try re-enabling improved incremental analysis, increase the disk space available to the runner. If that doesn't help, contact GitHub Support for further assistance. + markdownMessage: `Overlay analysis was skipped because it previously failed for this repository with CodeQL version ${(await codeql.getVersion()).version} on a runner with similar hardware resources. One possible reason for this is that overlay analysis can require a significant amount of disk space for some repositories. If you want to try re-enabling overlay analysis, increase the disk space available to the runner. If that doesn't help, contact GitHub Support for further assistance. -Improved incremental analysis will be automatically retried when the next version of CodeQL is released. You can also manually trigger a retry by [removing](${"https://docs.github.com/en/actions/how-tos/manage-workflow-runs/manage-caches#deleting-cache-entries" /* DELETE_ACTIONS_CACHE_ENTRIES */}) \`codeql-overlay-status-*\` entries from the Actions cache.`, +Overlay analysis will be automatically retried when the next version of CodeQL is released. You can also manually trigger a retry by [removing](${"https://docs.github.com/en/actions/how-tos/manage-workflow-runs/manage-caches#deleting-cache-entries" /* DELETE_ACTIONS_CACHE_ENTRIES */}) \`codeql-overlay-status-*\` entries from the Actions cache.`, severity: "note", visibility: { cliSummaryTable: true, @@ -183626,12 +183626,12 @@ Improved incremental analysis will be automatically retried when the next versio config, makeDiagnostic( "codeql-action/overlay-disabled-by-repository-property", - "Improved incremental analysis disabled by repository property", + "Overlay analysis disabled by repository property", { attributes: { languages: config.languages }, - markdownMessage: `Improved incremental analysis has been disabled because the \`${"github-codeql-disable-overlay" /* DISABLE_OVERLAY */}\` repository property is set to \`true\`. To re-enable improved incremental analysis, set this property to \`false\` or remove it.`, + markdownMessage: `Overlay analysis has been disabled because the \`${"github-codeql-disable-overlay" /* DISABLE_OVERLAY */}\` repository property is set to \`true\`. To re-enable overlay analysis, set this property to \`false\` or remove it.`, severity: "note", visibility: { cliSummaryTable: true, @@ -196992,7 +196992,7 @@ async function recordOverlayStatus(codeql, config, features, jobStatus, env, log } if (!isConclusiveJobStatus(jobStatus) && !didCodeQlReportError(env)) { logger2.info( - `Not recording an improved incremental analysis failure for this job because the job status (${jobStatus ?? "unset"}) does not tell us whether the analysis itself failed.` + `Not recording an overlay analysis failure for this job because the job status (${jobStatus ?? "unset"}) does not tell us whether the analysis itself failed.` ); return; } @@ -197019,14 +197019,14 @@ async function recordOverlayStatus(codeql, config, features, jobStatus, env, log overlayStatus, logger2 ); - const blurb = "This job attempted to run with improved incremental analysis but it did not complete successfully. One possible reason for this is disk space constraints, since improved incremental analysis can require a significant amount of disk space for some repositories."; + const blurb = "This job attempted to run with overlay analysis but it did not complete successfully. One possible reason for this is disk space constraints, since overlay analysis can require a significant amount of disk space for some repositories."; if (saved) { logger2.error( - `${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, try increasing the disk space available to the runner. If that doesn't help, contact GitHub Support for further assistance.` + `${blurb} This failure has been recorded in the Actions cache, so the next CodeQL analysis will run without overlay analysis. If you want to enable overlay analysis, try increasing the disk space available to the runner. If that doesn't help, contact GitHub Support for further assistance.` ); } else { logger2.error( - `${blurb} The attempt to save this failure status to the Actions cache failed. The Action will attempt to run with improved incremental analysis again.` + `${blurb} The attempt to save this failure status to the Actions cache failed. The Action will attempt to run with overlay analysis again.` ); } } diff --git a/src/init-action-post-helper.ts b/src/init-action-post-helper.ts index 060592cac2..76f55969f0 100644 --- a/src/init-action-post-helper.ts +++ b/src/init-action-post-helper.ts @@ -541,7 +541,7 @@ async function recordOverlayStatus( // one if a CodeQL Action reported an error before the job ended. if (!isConclusiveJobStatus(jobStatus) && !didCodeQlReportError(env)) { logger.info( - "Not recording an improved incremental analysis failure for this job because the job " + + "Not recording an overlay analysis failure for this job because the job " + `status (${jobStatus ?? "unset"}) does not tell us whether the analysis itself failed.`, ); return; @@ -576,15 +576,15 @@ async function recordOverlayStatus( ); const blurb = - "This job attempted to run with improved incremental analysis but it did not complete successfully. " + - "One possible reason for this is disk space constraints, since improved incremental analysis can " + + "This job attempted to run with overlay analysis but it did not complete successfully. " + + "One possible reason for this is disk space constraints, since overlay analysis can " + "require a significant amount of disk space for some repositories."; 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. If you want to enable improved incremental analysis, " + + "without overlay analysis. If you want to enable overlay analysis, " + "try increasing the disk space available to the runner. " + "If that doesn't help, contact GitHub Support for further assistance.", ); @@ -592,7 +592,7 @@ async function recordOverlayStatus( logger.error( `${blurb} ` + "The attempt to save this failure status to the Actions cache failed. The Action will attempt to " + - "run with improved incremental analysis again.", + "run with overlay analysis again.", ); } } diff --git a/src/overlay/diagnostics.ts b/src/overlay/diagnostics.ts index 4b716c3df8..c9b39fa6c1 100644 --- a/src/overlay/diagnostics.ts +++ b/src/overlay/diagnostics.ts @@ -84,18 +84,18 @@ export async function addOverlayDisablementDiagnostics( config, makeDiagnostic( "codeql-action/overlay-disabled-due-to-cached-status", - "Skipped improved incremental analysis because it failed previously with similar hardware resources", + "Skipped overlay analysis because it failed previously with similar hardware resources", { attributes: { languages: config.languages, }, markdownMessage: - `Improved incremental analysis was skipped because it previously failed for this repository ` + + `Overlay analysis was skipped because it previously failed for this repository ` + `with CodeQL version ${(await codeql.getVersion()).version} on a runner with similar hardware resources. ` + - "One possible reason for this is that improved incremental analysis can require a significant amount of disk space for some repositories. " + - "If you want to try re-enabling improved incremental analysis, increase the disk space available " + + "One possible reason for this is that overlay analysis can require a significant amount of disk space for some repositories. " + + "If you want to try re-enabling overlay analysis, increase the disk space available " + "to the runner. If that doesn't help, contact GitHub Support for further assistance.\n\n" + - "Improved incremental analysis will be automatically retried when the next version of CodeQL is released. " + + "Overlay analysis will be automatically retried when the next version of CodeQL is released. " + `You can also manually trigger a retry by [removing](${DocUrl.DELETE_ACTIONS_CACHE_ENTRIES}) \`codeql-overlay-status-*\` entries from the Actions cache.`, severity: "note", visibility: { @@ -115,15 +115,15 @@ export async function addOverlayDisablementDiagnostics( config, makeDiagnostic( "codeql-action/overlay-disabled-by-repository-property", - "Improved incremental analysis disabled by repository property", + "Overlay analysis disabled by repository property", { attributes: { languages: config.languages, }, markdownMessage: - "Improved incremental analysis has been disabled because the " + + "Overlay analysis has been disabled because the " + `\`${RepositoryPropertyName.DISABLE_OVERLAY}\` repository property is set to \`true\`. ` + - "To re-enable improved incremental analysis, set this property to `false` or remove it.", + "To re-enable overlay analysis, set this property to `false` or remove it.", severity: "note", visibility: { cliSummaryTable: true,