mirror of
https://github.com/github/codeql-action
synced 2026-10-07 00:30:17 +03:00
Rebuild
This commit is contained in:
Generated
+26
-4
@@ -75356,7 +75356,7 @@ var require_package = __commonJS({
|
||||
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "@actions/cache",
|
||||
version: "5.0.5",
|
||||
version: "5.1.0",
|
||||
preview: true,
|
||||
description: "Actions cache lib",
|
||||
keywords: [
|
||||
@@ -81178,7 +81178,7 @@ var require_cache4 = __commonJS({
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||
exports2.FinalizeCacheError = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
||||
exports2.FinalizeCacheError = exports2.CacheWriteDeniedError = exports2.CACHE_WRITE_DENIED_PREFIX = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
||||
exports2.isFeatureAvailable = isFeatureAvailable;
|
||||
exports2.restoreCache = restoreCache5;
|
||||
exports2.saveCache = saveCache5;
|
||||
@@ -81206,6 +81206,15 @@ var require_cache4 = __commonJS({
|
||||
}
|
||||
};
|
||||
exports2.ReserveCacheError = ReserveCacheError2;
|
||||
exports2.CACHE_WRITE_DENIED_PREFIX = "cache write denied:";
|
||||
var CacheWriteDeniedError = class _CacheWriteDeniedError extends ReserveCacheError2 {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "CacheWriteDeniedError";
|
||||
Object.setPrototypeOf(this, _CacheWriteDeniedError.prototype);
|
||||
}
|
||||
};
|
||||
exports2.CacheWriteDeniedError = CacheWriteDeniedError;
|
||||
var FinalizeCacheError = class _FinalizeCacheError extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
@@ -81433,7 +81442,11 @@ var require_cache4 = __commonJS({
|
||||
} else if ((reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.statusCode) === 400) {
|
||||
throw new Error((_d = (_c = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.error) === null || _c === void 0 ? void 0 : _c.message) !== null && _d !== void 0 ? _d : `Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the data cap limit, not saving cache.`);
|
||||
} else {
|
||||
throw new ReserveCacheError2(`Unable to reserve cache with key ${key}, another job may be creating this cache. More details: ${(_e = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.error) === null || _e === void 0 ? void 0 : _e.message}`);
|
||||
const detailMessage = (_e = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.error) === null || _e === void 0 ? void 0 : _e.message;
|
||||
if (detailMessage === null || detailMessage === void 0 ? void 0 : detailMessage.startsWith(exports2.CACHE_WRITE_DENIED_PREFIX)) {
|
||||
throw new CacheWriteDeniedError(`Unable to reserve cache with key ${key}. More details: ${detailMessage}`);
|
||||
}
|
||||
throw new ReserveCacheError2(`Unable to reserve cache with key ${key}, another job may be creating this cache. More details: ${detailMessage}`);
|
||||
}
|
||||
core30.debug(`Saving Cache (ID: ${cacheId})`);
|
||||
yield cacheHttpClient.saveCache(cacheId, archivePath, "", options);
|
||||
@@ -81441,6 +81454,8 @@ var require_cache4 = __commonJS({
|
||||
const typedError = error3;
|
||||
if (typedError.name === ValidationError.name) {
|
||||
throw error3;
|
||||
} else if (typedError.name === CacheWriteDeniedError.name) {
|
||||
core30.warning(`Failed to save: ${typedError.message}`);
|
||||
} else if (typedError.name === ReserveCacheError2.name) {
|
||||
core30.info(`Failed to save: ${typedError.message}`);
|
||||
} else {
|
||||
@@ -81462,6 +81477,7 @@ var require_cache4 = __commonJS({
|
||||
}
|
||||
function saveCacheV2(paths_1, key_1, options_1) {
|
||||
return __awaiter2(this, arguments, void 0, function* (paths, key, options, enableCrossOsArchive = false) {
|
||||
var _a2;
|
||||
options = Object.assign(Object.assign({}, options), { uploadChunkSize: 64 * 1024 * 1024, uploadConcurrency: 8, useAzureSdk: true });
|
||||
const compressionMethod = yield utils.getCompressionMethod();
|
||||
const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
|
||||
@@ -81493,7 +81509,7 @@ var require_cache4 = __commonJS({
|
||||
try {
|
||||
const response = yield twirpClient.CreateCacheEntry(request3);
|
||||
if (!response.ok) {
|
||||
if (response.message) {
|
||||
if (response.message && !response.message.startsWith(exports2.CACHE_WRITE_DENIED_PREFIX)) {
|
||||
core30.warning(`Cache reservation failed: ${response.message}`);
|
||||
}
|
||||
throw new Error(response.message || "Response was not ok");
|
||||
@@ -81501,6 +81517,10 @@ var require_cache4 = __commonJS({
|
||||
signedUploadUrl = response.signedUploadUrl;
|
||||
} catch (error3) {
|
||||
core30.debug(`Failed to reserve cache: ${error3}`);
|
||||
const errorMessage = (_a2 = error3 === null || error3 === void 0 ? void 0 : error3.message) !== null && _a2 !== void 0 ? _a2 : "";
|
||||
if (errorMessage.startsWith(exports2.CACHE_WRITE_DENIED_PREFIX)) {
|
||||
throw new CacheWriteDeniedError(`Unable to reserve cache with key ${key}. More details: ${errorMessage}`);
|
||||
}
|
||||
throw new ReserveCacheError2(`Unable to reserve cache with key ${key}, another job may be creating this cache.`);
|
||||
}
|
||||
core30.debug(`Attempting to upload cache located at: ${archivePath}`);
|
||||
@@ -81523,6 +81543,8 @@ var require_cache4 = __commonJS({
|
||||
const typedError = error3;
|
||||
if (typedError.name === ValidationError.name) {
|
||||
throw error3;
|
||||
} else if (typedError.name === CacheWriteDeniedError.name) {
|
||||
core30.warning(`Failed to save: ${typedError.message}`);
|
||||
} else if (typedError.name === ReserveCacheError2.name) {
|
||||
core30.info(`Failed to save: ${typedError.message}`);
|
||||
} else if (typedError.name === FinalizeCacheError.name) {
|
||||
|
||||
Reference in New Issue
Block a user