Improve logging

This commit is contained in:
Henry Mercer 2024-10-10 18:54:18 +01:00
parent df0590b2ee
commit 90c42c41ec
9 changed files with 26 additions and 9 deletions

2
lib/tools-download.js generated
View file

@ -33,9 +33,11 @@ const feature_flags_1 = require("./feature-flags");
const tar = __importStar(require("./tar"));
const util_1 = require("./util");
async function downloadAndExtract(codeqlURL, authorization, headers, tarVersion, tempDir, features, logger) {
logger.info(`Downloading CodeQL tools from ${codeqlURL} . This may take a while.`);
const compressionMethod = tar.inferCompressionMethod(codeqlURL);
if (compressionMethod === "zstd" &&
(await features.getValue(feature_flags_1.Feature.ZstdBundleStreamingExtraction))) {
logger.info(`Streaming the extraction of the CodeQL bundle.`);
const toolsInstallStart = perf_hooks_1.performance.now();
const extractedBundlePath = await downloadAndExtractZstdWithStreaming(codeqlURL, authorization, headers, tarVersion, logger);
const combinedDurationMs = Math.round(perf_hooks_1.performance.now() - toolsInstallStart);