|
|
@ -41809,7 +41809,8 @@ function getDownloadOptions(copy) {
|
|
|
|
useAzureSdk: true,
|
|
|
|
useAzureSdk: true,
|
|
|
|
downloadConcurrency: 8,
|
|
|
|
downloadConcurrency: 8,
|
|
|
|
timeoutInMs: 30000,
|
|
|
|
timeoutInMs: 30000,
|
|
|
|
segmentTimeoutInMs: 3600000
|
|
|
|
segmentTimeoutInMs: 3600000,
|
|
|
|
|
|
|
|
lookupOnly: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
if (copy) {
|
|
|
|
if (copy) {
|
|
|
|
if (typeof copy.useAzureSdk === 'boolean') {
|
|
|
|
if (typeof copy.useAzureSdk === 'boolean') {
|
|
|
@ -41824,6 +41825,9 @@ function getDownloadOptions(copy) {
|
|
|
|
if (typeof copy.segmentTimeoutInMs === 'number') {
|
|
|
|
if (typeof copy.segmentTimeoutInMs === 'number') {
|
|
|
|
result.segmentTimeoutInMs = copy.segmentTimeoutInMs;
|
|
|
|
result.segmentTimeoutInMs = copy.segmentTimeoutInMs;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (typeof copy.lookupOnly === 'boolean') {
|
|
|
|
|
|
|
|
result.lookupOnly = copy.lookupOnly;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const segmentDownloadTimeoutMins = process.env['SEGMENT_DOWNLOAD_TIMEOUT_MINS'];
|
|
|
|
const segmentDownloadTimeoutMins = process.env['SEGMENT_DOWNLOAD_TIMEOUT_MINS'];
|
|
|
|
if (segmentDownloadTimeoutMins &&
|
|
|
|
if (segmentDownloadTimeoutMins &&
|
|
|
@ -41836,6 +41840,7 @@ function getDownloadOptions(copy) {
|
|
|
|
core.debug(`Request timeout (ms): ${result.timeoutInMs}`);
|
|
|
|
core.debug(`Request timeout (ms): ${result.timeoutInMs}`);
|
|
|
|
core.debug(`Cache segment download timeout mins env var: ${process.env['SEGMENT_DOWNLOAD_TIMEOUT_MINS']}`);
|
|
|
|
core.debug(`Cache segment download timeout mins env var: ${process.env['SEGMENT_DOWNLOAD_TIMEOUT_MINS']}`);
|
|
|
|
core.debug(`Segment download timeout (ms): ${result.segmentTimeoutInMs}`);
|
|
|
|
core.debug(`Segment download timeout (ms): ${result.segmentTimeoutInMs}`);
|
|
|
|
|
|
|
|
core.debug(`Lookup only: ${result.lookupOnly}`);
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.getDownloadOptions = getDownloadOptions;
|
|
|
|
exports.getDownloadOptions = getDownloadOptions;
|
|
|
@ -47284,6 +47289,10 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
|
|
|
|
// Cache not found
|
|
|
|
// Cache not found
|
|
|
|
return undefined;
|
|
|
|
return undefined;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (options === null || options === void 0 ? void 0 : options.lookupOnly) {
|
|
|
|
|
|
|
|
core.info('Lookup only - skipping download');
|
|
|
|
|
|
|
|
return cacheEntry.cacheKey;
|
|
|
|
|
|
|
|
}
|
|
|
|
archivePath = path.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod));
|
|
|
|
archivePath = path.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod));
|
|
|
|
core.debug(`Archive Path: ${archivePath}`);
|
|
|
|
core.debug(`Archive Path: ${archivePath}`);
|
|
|
|
// Download the cache from the cache entry
|
|
|
|
// Download the cache from the cache entry
|
|
|
|