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

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

diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js
index 3537aa3..947e495 100644
--- a/dist/restore-only/index.js
+++ b/dist/restore-only/index.js
@@ -10017,7 +10017,7 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
             // inputs:
             // - getSignedUploadURL
             // - archivePath
-            core.debug(`Saving Cache v2: ${archivePath}`);
+            core.info(`Saving Cache v2: ${archivePath}`);
             yield (0, upload_cache_1.UploadCache)(signedUploadURL, archivePath);
             core.debug('Reserving Cache');
             const reserveCacheResponse = yield cacheHttpClient.reserveCache(key, paths, {
@@ -12362,7 +12362,7 @@ 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.info(`Uploading ${archivePath} to: ${uploadURL}`);
+        core.info(`Uploading ${archivePath} to: ${JSON.stringify(uploadURL)}`);
         // Specify data transfer options
         const uploadOptions = {
             blockSize: 4 * 1024 * 1024,
@@ -12372,8 +12372,8 @@ function UploadCache(uploadURL, archivePath) {
         // 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}`);
+        core.info(`BlobClient: ${JSON.stringify(blobClient)}`);
+        core.info(`blockBlobClient: ${JSON.stringify(blockBlobClient)}`);
         return blockBlobClient.uploadFile(archivePath, uploadOptions);
     });
 }
diff --git a/dist/restore/index.js b/dist/restore/index.js
index b75e79c..49f1bcb 100644
--- a/dist/restore/index.js
+++ b/dist/restore/index.js
@@ -10017,7 +10017,7 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
             // inputs:
             // - getSignedUploadURL
             // - archivePath
-            core.debug(`Saving Cache v2: ${archivePath}`);
+            core.info(`Saving Cache v2: ${archivePath}`);
             yield (0, upload_cache_1.UploadCache)(signedUploadURL, archivePath);
             core.debug('Reserving Cache');
             const reserveCacheResponse = yield cacheHttpClient.reserveCache(key, paths, {
@@ -12362,7 +12362,7 @@ 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.info(`Uploading ${archivePath} to: ${uploadURL}`);
+        core.info(`Uploading ${archivePath} to: ${JSON.stringify(uploadURL)}`);
         // Specify data transfer options
         const uploadOptions = {
             blockSize: 4 * 1024 * 1024,
@@ -12372,8 +12372,8 @@ function UploadCache(uploadURL, archivePath) {
         // 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}`);
+        core.info(`BlobClient: ${JSON.stringify(blobClient)}`);
+        core.info(`blockBlobClient: ${JSON.stringify(blockBlobClient)}`);
         return blockBlobClient.uploadFile(archivePath, uploadOptions);
     });
 }
diff --git a/dist/save-only/index.js b/dist/save-only/index.js
index fc35fdb..fd97db1 100644
--- a/dist/save-only/index.js
+++ b/dist/save-only/index.js
@@ -12362,7 +12362,7 @@ 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.info(`Uploading ${archivePath} to: ${uploadURL}`);
+        core.info(`Uploading ${archivePath} to: ${JSON.stringify(uploadURL)}`);
         // Specify data transfer options
         const uploadOptions = {
             blockSize: 4 * 1024 * 1024,
@@ -12372,8 +12372,8 @@ function UploadCache(uploadURL, archivePath) {
         // 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}`);
+        core.info(`BlobClient: ${JSON.stringify(blobClient)}`);
+        core.info(`blockBlobClient: ${JSON.stringify(blockBlobClient)}`);
         return blockBlobClient.uploadFile(archivePath, uploadOptions);
     });
 }
diff --git a/dist/save/index.js b/dist/save/index.js
index d8db196..5d3b5c4 100644
--- a/dist/save/index.js
+++ b/dist/save/index.js
@@ -10017,7 +10017,7 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
             // inputs:
             // - getSignedUploadURL
             // - archivePath
-            core.debug(`Saving Cache v2: ${archivePath}`);
+            core.info(`Saving Cache v2: ${archivePath}`);
             yield (0, upload_cache_1.UploadCache)(signedUploadURL, archivePath);
             core.debug('Reserving Cache');
             const reserveCacheResponse = yield cacheHttpClient.reserveCache(key, paths, {
@@ -12362,7 +12362,7 @@ 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.info(`Uploading ${archivePath} to: ${uploadURL}`);
+        core.info(`Uploading ${archivePath} to: ${JSON.stringify(uploadURL)}`);
         // Specify data transfer options
         const uploadOptions = {
             blockSize: 4 * 1024 * 1024,
@@ -12372,8 +12372,8 @@ function UploadCache(uploadURL, archivePath) {
         // 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}`);
+        core.info(`BlobClient: ${JSON.stringify(blobClient)}`);
+        core.info(`blockBlobClient: ${JSON.stringify(blockBlobClient)}`);
         return blockBlobClient.uploadFile(archivePath, uploadOptions);
     });
 }