mirror of
https://github.com/github/codeql-action.git
synced 2025-12-28 18:20:08 +08:00
Report bundled DB size in error if known
This commit is contained in:
6
lib/analyze-action.js
generated
6
lib/analyze-action.js
generated
@@ -97540,9 +97540,10 @@ async function cleanupAndUploadDatabases(repositoryNwo, codeql, config, apiDetai
|
||||
}
|
||||
const reports = [];
|
||||
for (const language of config.languages) {
|
||||
let bundledDbSize = void 0;
|
||||
try {
|
||||
const bundledDb = await bundleDb(config, language, codeql, language);
|
||||
const bundledDbSize = fs13.statSync(bundledDb).size;
|
||||
bundledDbSize = fs13.statSync(bundledDb).size;
|
||||
const bundledDbReadStream = fs13.createReadStream(bundledDb);
|
||||
const commitOid = await getCommitOid(
|
||||
getRequiredInput("checkout_path")
|
||||
@@ -97583,7 +97584,8 @@ async function cleanupAndUploadDatabases(repositoryNwo, codeql, config, apiDetai
|
||||
);
|
||||
reports.push({
|
||||
language,
|
||||
error: getErrorMessage(e)
|
||||
error: getErrorMessage(e),
|
||||
...bundledDbSize ? { zipped_upload_size_bytes: bundledDbSize } : {}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user