Skip to content

Commit 407752b

Browse files
committed
no-mistakes: apply CI fixes
1 parent 648c73f commit 407752b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bin/fm-report-stack.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const metadataLimit = 1024 * 1024;
4646
const manifestLimit = 1024 * 1024;
4747
const transactionLimit = 64 * 1024;
4848
const lockControlLimit = 4 * 1024;
49+
const reportLockWaitMs = 60_000;
4950
const visualEntryLimit = 512;
5051
const visualDepthLimit = 24;
5152
const visualBytesLimit = 20 * 1024 * 1024;
@@ -456,7 +457,8 @@ function acquireLock() {
456457
const pinnedTombstones = pinnedDirectory(".retention-tombstones", pinnedStackRoot.real, "report retention tombstone directory");
457458
retentionTombstoneDescriptor = pinnedTombstones.descriptor;
458459
const lock = path.join(stackRoot, ".publish.lock");
459-
for (let attempt = 0; attempt < 300; attempt += 1) {
460+
const lockDeadline = Date.now() + reportLockWaitMs;
461+
while (Date.now() < lockDeadline) {
460462
const token = crypto.randomUUID();
461463
const candidate = path.join(stackRoot, `.publish.lock.candidate.${process.pid}.${token}`);
462464
try {

0 commit comments

Comments
 (0)