Troubleshoot

This commit is contained in:
Bassem Dghaidi 2024-12-02 03:35:47 -08:00 committed by GitHub
parent fbbd57a122
commit ec07d5423f
4 changed files with 68 additions and 32 deletions

View file

@ -6290,6 +6290,7 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
else {
core.warning(`Failed to save: ${typedError.message}`);
}
throw error;
}
finally {
// Try to delete the archive to save space
@ -9838,7 +9839,7 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
maxSingleShotSize: 128 * 1024 * 1024,
onProgress: uploadProgress.onProgress()
};
// try {
try {
uploadProgress.startDisplayTimer();
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`);
const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions);
@ -9847,6 +9848,14 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
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();
}
});
}
exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;

11
dist/restore/index.js vendored
View file

@ -6290,6 +6290,7 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
else {
core.warning(`Failed to save: ${typedError.message}`);
}
throw error;
}
finally {
// Try to delete the archive to save space
@ -9838,7 +9839,7 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
maxSingleShotSize: 128 * 1024 * 1024,
onProgress: uploadProgress.onProgress()
};
// try {
try {
uploadProgress.startDisplayTimer();
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`);
const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions);
@ -9847,6 +9848,14 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
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();
}
});
}
exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;

View file

@ -6290,6 +6290,7 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
else {
core.warning(`Failed to save: ${typedError.message}`);
}
throw error;
}
finally {
// Try to delete the archive to save space
@ -9838,7 +9839,7 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
maxSingleShotSize: 128 * 1024 * 1024,
onProgress: uploadProgress.onProgress()
};
// try {
try {
uploadProgress.startDisplayTimer();
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`);
const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions);
@ -9847,6 +9848,14 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
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();
}
});
}
exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;

11
dist/save/index.js vendored
View file

@ -6290,6 +6290,7 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
else {
core.warning(`Failed to save: ${typedError.message}`);
}
throw error;
}
finally {
// Try to delete the archive to save space
@ -9838,7 +9839,7 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
maxSingleShotSize: 128 * 1024 * 1024,
onProgress: uploadProgress.onProgress()
};
// try {
try {
uploadProgress.startDisplayTimer();
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`);
const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions);
@ -9847,6 +9848,14 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
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();
}
});
}
exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;