diff --git a/lib/init-action.js b/lib/init-action.js index f410060e9..994a68e6d 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -88208,16 +88208,12 @@ async function downloadDependencyCaches(languages, logger, minimizeJavaJars) { restoreKeys ); const download_duration_ms = Math.round(performance.now() - start); - const download_size_bytes = Math.round( - await getTotalCacheSize(cacheConfig.paths, logger) - ); if (hitKey !== void 0) { logger.info(`Cache hit on key ${hitKey} for ${language}.`); const hit_kind = hitKey === primaryKey ? "exact" /* Exact */ : "partial" /* Partial */; status[language] = { hit_kind, - download_duration_ms, - download_size_bytes + download_duration_ms }; } else { status[language] = { hit_kind: "miss" /* Miss */ }; diff --git a/src/dependency-caching.ts b/src/dependency-caching.ts index 28b4a156a..dedd1075c 100644 --- a/src/dependency-caching.ts +++ b/src/dependency-caching.ts @@ -100,7 +100,6 @@ export enum CacheHitKind { /** Represents results of trying to restore a dependency cache for a language. */ export interface DependencyCacheRestoreStatus { hit_kind: CacheHitKind; - download_size_bytes?: number; download_duration_ms?: number; } @@ -164,9 +163,6 @@ export async function downloadDependencyCaches( restoreKeys, ); const download_duration_ms = Math.round(performance.now() - start); - const download_size_bytes = Math.round( - await getTotalCacheSize(cacheConfig.paths, logger), - ); if (hitKey !== undefined) { logger.info(`Cache hit on key ${hitKey} for ${language}.`); @@ -175,7 +171,6 @@ export async function downloadDependencyCaches( status[language] = { hit_kind, download_duration_ms, - download_size_bytes, }; } else { status[language] = { hit_kind: CacheHitKind.Miss };