Don't measure size of downloaded cache

This commit is contained in:
Michael B. Gale
2025-09-25 21:02:43 +01:00
parent 2ff902e1f1
commit ed57767898
2 changed files with 1 additions and 10 deletions

6
lib/init-action.js generated
View File

@@ -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 */ };