Skip to content

Commit ed57767

Browse files
committed
Don't measure size of downloaded cache
1 parent 2ff902e commit ed57767

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

lib/init-action.js

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dependency-caching.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ export enum CacheHitKind {
100100
/** Represents results of trying to restore a dependency cache for a language. */
101101
export interface DependencyCacheRestoreStatus {
102102
hit_kind: CacheHitKind;
103-
download_size_bytes?: number;
104103
download_duration_ms?: number;
105104
}
106105

@@ -164,9 +163,6 @@ export async function downloadDependencyCaches(
164163
restoreKeys,
165164
);
166165
const download_duration_ms = Math.round(performance.now() - start);
167-
const download_size_bytes = Math.round(
168-
await getTotalCacheSize(cacheConfig.paths, logger),
169-
);
170166

171167
if (hitKey !== undefined) {
172168
logger.info(`Cache hit on key ${hitKey} for ${language}.`);
@@ -175,7 +171,6 @@ export async function downloadDependencyCaches(
175171
status[language] = {
176172
hit_kind,
177173
download_duration_ms,
178-
download_size_bytes,
179174
};
180175
} else {
181176
status[language] = { hit_kind: CacheHitKind.Miss };

0 commit comments

Comments
 (0)