Skip to content

Commit 4d015b8

Browse files
committed
Fall back to gzip if zstd fails
1 parent 662c71a commit 4d015b8

File tree

6 files changed

+82
-33
lines changed

6 files changed

+82
-33
lines changed

lib/setup-codeql.js

Lines changed: 20 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/setup-codeql.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/setup-codeql.test.js

Lines changed: 3 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/setup-codeql.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/setup-codeql.test.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import * as sinon from "sinon";
66
import * as actionsUtil from "./actions-util";
77
import { getRunnerLogger } from "./logging";
88
import * as setupCodeql from "./setup-codeql";
9-
import { ZstdAvailability } from "./tar";
109
import {
1110
LINKED_CLI_VERSION,
1211
LoggedMessage,
@@ -91,7 +90,7 @@ test("getCodeQLSource sets CLI version for a semver tagged bundle", async (t) =>
9190
SAMPLE_DEFAULT_CLI_VERSION,
9291
SAMPLE_DOTCOM_API_DETAILS,
9392
GitHubVariant.DOTCOM,
94-
getStubZstdAvailability(),
93+
false,
9594
createFeatures([]),
9695
getRunnerLogger(true),
9796
);
@@ -109,7 +108,7 @@ test("getCodeQLSource correctly returns bundled CLI version when tools == linked
109108
SAMPLE_DEFAULT_CLI_VERSION,
110109
SAMPLE_DOTCOM_API_DETAILS,
111110
GitHubVariant.DOTCOM,
112-
getStubZstdAvailability(),
111+
false,
113112
createFeatures([]),
114113
getRunnerLogger(true),
115114
);
@@ -130,7 +129,7 @@ test("getCodeQLSource correctly returns bundled CLI version when tools == latest
130129
SAMPLE_DEFAULT_CLI_VERSION,
131130
SAMPLE_DOTCOM_API_DETAILS,
132131
GitHubVariant.DOTCOM,
133-
getStubZstdAvailability(),
132+
false,
134133
createFeatures([]),
135134
logger,
136135
);
@@ -246,9 +245,3 @@ test("setupCodeQLBundle logs the CodeQL CLI version being used when asked to dow
246245
);
247246
});
248247
});
249-
250-
function getStubZstdAvailability(): ZstdAvailability {
251-
return {
252-
available: false,
253-
};
254-
}

0 commit comments

Comments
 (0)