diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index 85a10d1..fa6ad50 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -3334,6 +3334,7 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr core.warning(`Cache not found for keys: ${keys.join(', ')}`); return undefined; } + core.info(`Cache hit for: ${signedDownloadURL.blobs[0].key}`); core.info(`Starting download of artifact to: ${paths[0]}`); yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]); core.info(`Artifact download completed successfully.`); @@ -5781,7 +5782,7 @@ function StreamExtract(url, directory) { } catch (error) { retryCount++; - core.debug(`Failed to download cache after ${retryCount} retries due to ${error.message}. Retrying in 5 seconds...`); + core.info(`Failed to download cache after ${retryCount} retries due to ${error.message}. Retrying in 5 seconds...`); // wait 5 seconds before retrying yield new Promise(resolve => setTimeout(resolve, 5000)); } @@ -5795,6 +5796,7 @@ function streamExtractExternal(url, directory) { const client = new httpClient.HttpClient(`@actions/cache-${packageJson.version}`); const response = yield client.get(url); if (response.message.statusCode !== 200) { + core.info(`Failed to download cache. HTTP status code: ${response.message.statusCode}`); throw new Error(`Unexpected HTTP response from blob storage: ${response.message.statusCode} ${response.message.statusMessage}`); } const timeout = 30 * 1000; // 30 seconds @@ -5808,7 +5810,7 @@ function streamExtractExternal(url, directory) { timer.refresh(); }) .on('error', (error) => { - core.debug(`response.message: Cache download failed: ${error.message}`); + core.info(`response.message: Cache download failed: ${error.message}`); clearTimeout(timer); reject(error); }) diff --git a/dist/restore/index.js b/dist/restore/index.js index 2b4a787..d788a5a 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -3334,6 +3334,7 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr core.warning(`Cache not found for keys: ${keys.join(', ')}`); return undefined; } + core.info(`Cache hit for: ${signedDownloadURL.blobs[0].key}`); core.info(`Starting download of artifact to: ${paths[0]}`); yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]); core.info(`Artifact download completed successfully.`); @@ -5781,7 +5782,7 @@ function StreamExtract(url, directory) { } catch (error) { retryCount++; - core.debug(`Failed to download cache after ${retryCount} retries due to ${error.message}. Retrying in 5 seconds...`); + core.info(`Failed to download cache after ${retryCount} retries due to ${error.message}. Retrying in 5 seconds...`); // wait 5 seconds before retrying yield new Promise(resolve => setTimeout(resolve, 5000)); } @@ -5795,6 +5796,7 @@ function streamExtractExternal(url, directory) { const client = new httpClient.HttpClient(`@actions/cache-${packageJson.version}`); const response = yield client.get(url); if (response.message.statusCode !== 200) { + core.info(`Failed to download cache. HTTP status code: ${response.message.statusCode}`); throw new Error(`Unexpected HTTP response from blob storage: ${response.message.statusCode} ${response.message.statusMessage}`); } const timeout = 30 * 1000; // 30 seconds @@ -5808,7 +5810,7 @@ function streamExtractExternal(url, directory) { timer.refresh(); }) .on('error', (error) => { - core.debug(`response.message: Cache download failed: ${error.message}`); + core.info(`response.message: Cache download failed: ${error.message}`); clearTimeout(timer); reject(error); }) diff --git a/dist/save-only/index.js b/dist/save-only/index.js index 7f98750..42c3492 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -3334,6 +3334,7 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr core.warning(`Cache not found for keys: ${keys.join(', ')}`); return undefined; } + core.info(`Cache hit for: ${signedDownloadURL.blobs[0].key}`); core.info(`Starting download of artifact to: ${paths[0]}`); yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]); core.info(`Artifact download completed successfully.`); @@ -5781,7 +5782,7 @@ function StreamExtract(url, directory) { } catch (error) { retryCount++; - core.debug(`Failed to download cache after ${retryCount} retries due to ${error.message}. Retrying in 5 seconds...`); + core.info(`Failed to download cache after ${retryCount} retries due to ${error.message}. Retrying in 5 seconds...`); // wait 5 seconds before retrying yield new Promise(resolve => setTimeout(resolve, 5000)); } @@ -5795,6 +5796,7 @@ function streamExtractExternal(url, directory) { const client = new httpClient.HttpClient(`@actions/cache-${packageJson.version}`); const response = yield client.get(url); if (response.message.statusCode !== 200) { + core.info(`Failed to download cache. HTTP status code: ${response.message.statusCode}`); throw new Error(`Unexpected HTTP response from blob storage: ${response.message.statusCode} ${response.message.statusMessage}`); } const timeout = 30 * 1000; // 30 seconds @@ -5808,7 +5810,7 @@ function streamExtractExternal(url, directory) { timer.refresh(); }) .on('error', (error) => { - core.debug(`response.message: Cache download failed: ${error.message}`); + core.info(`response.message: Cache download failed: ${error.message}`); clearTimeout(timer); reject(error); }) diff --git a/dist/save/index.js b/dist/save/index.js index 4b15bb9..5725eea 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -3334,6 +3334,7 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr core.warning(`Cache not found for keys: ${keys.join(', ')}`); return undefined; } + core.info(`Cache hit for: ${signedDownloadURL.blobs[0].key}`); core.info(`Starting download of artifact to: ${paths[0]}`); yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]); core.info(`Artifact download completed successfully.`); @@ -5781,7 +5782,7 @@ function StreamExtract(url, directory) { } catch (error) { retryCount++; - core.debug(`Failed to download cache after ${retryCount} retries due to ${error.message}. Retrying in 5 seconds...`); + core.info(`Failed to download cache after ${retryCount} retries due to ${error.message}. Retrying in 5 seconds...`); // wait 5 seconds before retrying yield new Promise(resolve => setTimeout(resolve, 5000)); } @@ -5795,6 +5796,7 @@ function streamExtractExternal(url, directory) { const client = new httpClient.HttpClient(`@actions/cache-${packageJson.version}`); const response = yield client.get(url); if (response.message.statusCode !== 200) { + core.info(`Failed to download cache. HTTP status code: ${response.message.statusCode}`); throw new Error(`Unexpected HTTP response from blob storage: ${response.message.statusCode} ${response.message.statusMessage}`); } const timeout = 30 * 1000; // 30 seconds @@ -5808,7 +5810,7 @@ function streamExtractExternal(url, directory) { timer.refresh(); }) .on('error', (error) => { - core.debug(`response.message: Cache download failed: ${error.message}`); + core.info(`response.message: Cache download failed: ${error.message}`); clearTimeout(timer); reject(error); })