workaround: disable streaming when downloading codeql bundle

This commit is contained in:
Fotis Koutoulakis (@NlightNFotis) 2024-11-12 16:39:21 +00:00
parent 5cb4249dc7
commit e6dd4048e9
3 changed files with 7 additions and 3 deletions

4
lib/tools-download.js generated
View file

@ -56,7 +56,9 @@ function makeStreamedToolsDownloadDurations(combinedDurationMs) {
async function downloadAndExtract(codeqlURL, authorization, headers, tarVersion, tempDir, logger) {
logger.info(`Downloading CodeQL tools from ${codeqlURL} . This may take a while.`);
const compressionMethod = tar.inferCompressionMethod(codeqlURL);
if (compressionMethod === "zstd" && process.platform === "linux") {
// TODO: Re-enable streaming when we have a more reliable way to respect proxy settings.
// eslint-disable-next-line no-constant-condition, no-constant-binary-expression
if (false && compressionMethod === "zstd" && process.platform === "linux") {
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);