From fbbd57a1222093f7d2c27a04d3a14e1826ed1370 Mon Sep 17 00:00:00 2001 From: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Date: Mon, 2 Dec 2024 03:08:37 -0800 Subject: [PATCH] Troubleshoot --- dist/restore-only/index.js | 24 ++++++++---------------- dist/restore/index.js | 24 ++++++++---------------- dist/save-only/index.js | 24 ++++++++---------------- dist/save/index.js | 24 ++++++++---------------- 4 files changed, 32 insertions(+), 64 deletions(-) diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index a6d490b..17e6d1c 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -9838,23 +9838,15 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { maxSingleShotSize: 128 * 1024 * 1024, onProgress: uploadProgress.onProgress() }; - try { - uploadProgress.startDisplayTimer(); - core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); - const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); - // TODO: better management of non-retryable errors - if (response._response.status >= 400) { - throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); - } - return response; - } - catch (error) { - core.debug(`Error uploading cache archive: ${error}`); - throw error; - } - finally { - uploadProgress.stopDisplayTimer(); + // try { + uploadProgress.startDisplayTimer(); + core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); + const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); + // TODO: better management of non-retryable errors + if (response._response.status >= 400) { + throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); } + return response; }); } exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK; diff --git a/dist/restore/index.js b/dist/restore/index.js index f35b1bd..630f80b 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -9838,23 +9838,15 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { maxSingleShotSize: 128 * 1024 * 1024, onProgress: uploadProgress.onProgress() }; - try { - uploadProgress.startDisplayTimer(); - core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); - const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); - // TODO: better management of non-retryable errors - if (response._response.status >= 400) { - throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); - } - return response; - } - catch (error) { - core.debug(`Error uploading cache archive: ${error}`); - throw error; - } - finally { - uploadProgress.stopDisplayTimer(); + // try { + uploadProgress.startDisplayTimer(); + core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); + const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); + // TODO: better management of non-retryable errors + if (response._response.status >= 400) { + throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); } + return response; }); } exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK; diff --git a/dist/save-only/index.js b/dist/save-only/index.js index b156461..506baf6 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -9838,23 +9838,15 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { maxSingleShotSize: 128 * 1024 * 1024, onProgress: uploadProgress.onProgress() }; - try { - uploadProgress.startDisplayTimer(); - core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); - const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); - // TODO: better management of non-retryable errors - if (response._response.status >= 400) { - throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); - } - return response; - } - catch (error) { - core.debug(`Error uploading cache archive: ${error}`); - throw error; - } - finally { - uploadProgress.stopDisplayTimer(); + // try { + uploadProgress.startDisplayTimer(); + core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); + const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); + // TODO: better management of non-retryable errors + if (response._response.status >= 400) { + throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); } + return response; }); } exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK; diff --git a/dist/save/index.js b/dist/save/index.js index c271c54..0818d64 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -9838,23 +9838,15 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { maxSingleShotSize: 128 * 1024 * 1024, onProgress: uploadProgress.onProgress() }; - try { - uploadProgress.startDisplayTimer(); - core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); - const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); - // TODO: better management of non-retryable errors - if (response._response.status >= 400) { - throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); - } - return response; - } - catch (error) { - core.debug(`Error uploading cache archive: ${error}`); - throw error; - } - finally { - uploadProgress.stopDisplayTimer(); + // try { + uploadProgress.startDisplayTimer(); + core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); + const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); + // TODO: better management of non-retryable errors + if (response._response.status >= 400) { + throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); } + return response; }); } exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;