Improve diagnostic message wording

This commit is contained in:
Henry Mercer
2026-02-17 13:38:07 +00:00
parent ef58c00dfe
commit cc0dce044b
4 changed files with 23 additions and 9 deletions
+5 -2
View File
@@ -169801,10 +169801,10 @@ async function run(uploadAllAvailableDebugArtifacts, printDebugLogs2, codeql, co
return uploadFailedSarifResult;
}
async function recordOverlayStatus(codeql, config, features, logger) {
if (config.overlayDatabaseMode === "overlay-base" /* OverlayBase */ && await features.getValue("overlay_analysis_status_save" /* OverlayAnalysisStatusSave */)) {
if (config.overlayDatabaseMode === "overlay-base" /* OverlayBase */ && process.env["CODEQL_ACTION_ANALYZE_DID_COMPLETE_SUCCESSFULLY" /* ANALYZE_DID_COMPLETE_SUCCESSFULLY */] !== "true" && await features.getValue("overlay_analysis_status_save" /* OverlayAnalysisStatusSave */)) {
const overlayStatus = {
attemptedToBuildOverlayBaseDatabase: true,
builtOverlayBaseDatabase: process.env["CODEQL_ACTION_ANALYZE_DID_COMPLETE_SUCCESSFULLY" /* ANALYZE_DID_COMPLETE_SUCCESSFULLY */] === "true"
builtOverlayBaseDatabase: false
};
const diskUsage = await checkDiskUsage(logger);
if (diskUsage === void 0) {
@@ -169824,6 +169824,9 @@ async function recordOverlayStatus(codeql, config, features, logger) {
logger.debug(
`Saved overlay status to the Actions cache: ${JSON.stringify(overlayStatus)}`
);
logger.warning(
"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. This information has been saved to the Actions cache. You can rerun this job to run CodeQL analysis without improved incremental analysis. If you want to enable improved incremental analysis, increase the disk space available to the runner and if that doesn't help, contact GitHub Support for further assistance."
);
} else {
logger.warning(
`Failed to save overlay status to the Actions cache. Status was: ${JSON.stringify(overlayStatus)}`