tests: instead of false, use old feature flag with default value of false
This commit is contained in:
parent
e6dd4048e9
commit
5445a29a97
30 changed files with 118 additions and 40 deletions
|
|
@ -6,6 +6,7 @@ import * as toolcache from "@actions/tool-cache";
|
|||
import { https } from "follow-redirects";
|
||||
import { v4 as uuidV4 } from "uuid";
|
||||
|
||||
import { Feature, FeatureEnablement } from "./feature-flags";
|
||||
import { formatDuration, Logger } from "./logging";
|
||||
import * as tar from "./tar";
|
||||
import { cleanUpGlob } from "./util";
|
||||
|
|
@ -76,6 +77,7 @@ export async function downloadAndExtract(
|
|||
headers: OutgoingHttpHeaders,
|
||||
tarVersion: tar.TarVersion | undefined,
|
||||
tempDir: string,
|
||||
features: FeatureEnablement,
|
||||
logger: Logger,
|
||||
): Promise<{
|
||||
extractedBundlePath: string;
|
||||
|
|
@ -88,8 +90,12 @@ export async function downloadAndExtract(
|
|||
const compressionMethod = tar.inferCompressionMethod(codeqlURL);
|
||||
|
||||
// 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") {
|
||||
|
||||
if (
|
||||
(await features.getValue(Feature.ZstdBundleStreamingExtraction)) &&
|
||||
compressionMethod === "zstd" &&
|
||||
process.platform === "linux"
|
||||
) {
|
||||
logger.info(`Streaming the extraction of the CodeQL bundle.`);
|
||||
|
||||
const toolsInstallStart = performance.now();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue