mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 18:30:14 +00:00
Improve diagnostic message wording
This commit is contained in:
Generated
+5
-2
@@ -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)}`
|
||||
|
||||
Reference in New Issue
Block a user