From 643d6d6123747a38698f1bb5427d78426594481b Mon Sep 17 00:00:00 2001
From: Bassem Dghaidi <568794+Link-@users.noreply.github.com>
Date: Mon, 10 Jun 2024 11:37:36 -0700
Subject: [PATCH] Implement cache v2

---
 dist/restore-only/index.js | 5 +++--
 dist/restore/index.js      | 5 +++--
 dist/save-only/index.js    | 5 +++--
 dist/save/index.js         | 5 +++--
 4 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js
index 145310b..3ee415e 100644
--- a/dist/restore-only/index.js
+++ b/dist/restore-only/index.js
@@ -12362,17 +12362,18 @@ const core = __importStar(__nccwpck_require__(4850));
 const storage_blob_1 = __nccwpck_require__(3864);
 function UploadCache(uploadURL, archivePath) {
     return __awaiter(this, void 0, void 0, function* () {
-        core.debug(`Uploading cache to: ${uploadURL}`);
+        core.info(`Uploading ${archivePath} to: ${uploadURL}`);
         // Specify data transfer options
         const uploadOptions = {
             blockSize: 4 * 1024 * 1024,
             concurrency: 2,
             maxSingleShotSize: 8 * 1024 * 1024, // 8 MiB initial transfer size
         };
-        // Create blob client from container client
         // const blobClient: BlobClient = new BlobClient(uploadURL.urls[0])
         const blobClient = new storage_blob_1.BlobClient(uploadURL.urls[0].url);
         const blockBlobClient = blobClient.getBlockBlobClient();
+        core.info(`BlobClient: ${blobClient}`);
+        core.info(`BlobClient: ${blockBlobClient}`);
         return blockBlobClient.uploadFile(archivePath, uploadOptions);
     });
 }
diff --git a/dist/restore/index.js b/dist/restore/index.js
index 83361c6..39cc97c 100644
--- a/dist/restore/index.js
+++ b/dist/restore/index.js
@@ -12362,17 +12362,18 @@ const core = __importStar(__nccwpck_require__(4850));
 const storage_blob_1 = __nccwpck_require__(3864);
 function UploadCache(uploadURL, archivePath) {
     return __awaiter(this, void 0, void 0, function* () {
-        core.debug(`Uploading cache to: ${uploadURL}`);
+        core.info(`Uploading ${archivePath} to: ${uploadURL}`);
         // Specify data transfer options
         const uploadOptions = {
             blockSize: 4 * 1024 * 1024,
             concurrency: 2,
             maxSingleShotSize: 8 * 1024 * 1024, // 8 MiB initial transfer size
         };
-        // Create blob client from container client
         // const blobClient: BlobClient = new BlobClient(uploadURL.urls[0])
         const blobClient = new storage_blob_1.BlobClient(uploadURL.urls[0].url);
         const blockBlobClient = blobClient.getBlockBlobClient();
+        core.info(`BlobClient: ${blobClient}`);
+        core.info(`BlobClient: ${blockBlobClient}`);
         return blockBlobClient.uploadFile(archivePath, uploadOptions);
     });
 }
diff --git a/dist/save-only/index.js b/dist/save-only/index.js
index 462e613..46b10de 100644
--- a/dist/save-only/index.js
+++ b/dist/save-only/index.js
@@ -12362,17 +12362,18 @@ const core = __importStar(__nccwpck_require__(4850));
 const storage_blob_1 = __nccwpck_require__(3864);
 function UploadCache(uploadURL, archivePath) {
     return __awaiter(this, void 0, void 0, function* () {
-        core.debug(`Uploading cache to: ${uploadURL}`);
+        core.info(`Uploading ${archivePath} to: ${uploadURL}`);
         // Specify data transfer options
         const uploadOptions = {
             blockSize: 4 * 1024 * 1024,
             concurrency: 2,
             maxSingleShotSize: 8 * 1024 * 1024, // 8 MiB initial transfer size
         };
-        // Create blob client from container client
         // const blobClient: BlobClient = new BlobClient(uploadURL.urls[0])
         const blobClient = new storage_blob_1.BlobClient(uploadURL.urls[0].url);
         const blockBlobClient = blobClient.getBlockBlobClient();
+        core.info(`BlobClient: ${blobClient}`);
+        core.info(`BlobClient: ${blockBlobClient}`);
         return blockBlobClient.uploadFile(archivePath, uploadOptions);
     });
 }
diff --git a/dist/save/index.js b/dist/save/index.js
index 9b681ed..716128d 100644
--- a/dist/save/index.js
+++ b/dist/save/index.js
@@ -12362,17 +12362,18 @@ const core = __importStar(__nccwpck_require__(4850));
 const storage_blob_1 = __nccwpck_require__(3864);
 function UploadCache(uploadURL, archivePath) {
     return __awaiter(this, void 0, void 0, function* () {
-        core.debug(`Uploading cache to: ${uploadURL}`);
+        core.info(`Uploading ${archivePath} to: ${uploadURL}`);
         // Specify data transfer options
         const uploadOptions = {
             blockSize: 4 * 1024 * 1024,
             concurrency: 2,
             maxSingleShotSize: 8 * 1024 * 1024, // 8 MiB initial transfer size
         };
-        // Create blob client from container client
         // const blobClient: BlobClient = new BlobClient(uploadURL.urls[0])
         const blobClient = new storage_blob_1.BlobClient(uploadURL.urls[0].url);
         const blockBlobClient = blobClient.getBlockBlobClient();
+        core.info(`BlobClient: ${blobClient}`);
+        core.info(`BlobClient: ${blockBlobClient}`);
         return blockBlobClient.uploadFile(archivePath, uploadOptions);
     });
 }