Skip to content

Commit 4683bcf

Browse files
[getsentry/action-github-commit] Auto commit
1 parent 577e9d4 commit 4683bcf

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

scripts/generate-md-exports.mjs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ async function createWork() {
108108
await mkdir(CACHE_DIR, {recursive: true});
109109
} else {
110110
const initialCacheFiles = await readdir(CACHE_DIR);
111-
console.log(`📦 Cache directory has ${initialCacheFiles.length} files from previous build`);
111+
console.log(
112+
`📦 Cache directory has ${initialCacheFiles.length} files from previous build`
113+
);
112114
}
113115

114116
// Track which cache files are used during this build
@@ -226,11 +228,12 @@ async function createWork() {
226228
console.log(` - Expected after cleanup: ${overlaps.length} files`);
227229

228230
// Debug: Show a few examples
229-
console.log(` - Example used: ${Array.from(globalUsedCacheFiles).slice(0, 2).join(', ')}`);
231+
console.log(
232+
` - Example used: ${Array.from(globalUsedCacheFiles).slice(0, 2).join(', ')}`
233+
);
230234
console.log(` - Example to delete: ${filesToDelete.slice(0, 2).join(', ')}`);
231235
console.log(` - Example kept: ${overlaps.slice(0, 2).join(', ')}`);
232236

233-
234237
if (filesToDelete.length > 0) {
235238
await Promise.all(
236239
filesToDelete.map(file => rm(path.join(CACHE_DIR, file), {force: true}))
@@ -428,7 +431,9 @@ async function processTaskList({id, tasks, cacheDir, noCache, usedCacheFiles}) {
428431
);
429432
}
430433
const cacheHits = success - cacheMisses.length;
431-
console.log(`📈 Worker[${id}]: Cache stats: ${cacheHits} hits, ${cacheMisses.length} misses (${((cacheMisses.length / success) * 100).toFixed(1)}% miss rate)`);
434+
console.log(
435+
`📈 Worker[${id}]: Cache stats: ${cacheHits} hits, ${cacheMisses.length} misses (${((cacheMisses.length / success) * 100).toFixed(1)}% miss rate)`
436+
);
432437

433438
if (cacheMisses.length / tasks.length > 0.1) {
434439
console.warn(`⚠️ Worker[${id}]: More than 10% cache miss rate during build.`);

0 commit comments

Comments
 (0)