Log how long deleting each CodeQL version from the toolcache takes

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Henry Mercer
2026-11-03 13:33:07 +00:00
parent 064910ba27
commit e7ce43a4dc
2 changed files with 8 additions and 2 deletions

5
lib/entry-points.js generated
View File

@@ -184864,13 +184864,16 @@ async function deleteToolcacheBundles({
}
const versionDirectory = path12.join(toolDirectory, entry.name);
try {
const deletionStart = import_perf_hooks3.performance.now();
await fs15.promises.rm(versionDirectory, {
force: true,
recursive: true
});
deletedVersions.push(entry.name);
logger2.info(
`Deleted the CodeQL tools at '${versionDirectory}' from the toolcache to free up disk space.`
`Deleted the CodeQL tools at '${versionDirectory}' from the toolcache to free up disk space (${formatDuration(
durationMsSince(deletionStart)
)}).`
);
} catch (e) {
failed = true;