Skip to content

Commit a427260

Browse files
authored
fix: TRAC-896 - avoid archiveManager readEntry stall on Windows/Node 24 CI (#1390)
1 parent 2b7d04e commit a427260

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/archiveManager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ async function extractZipFiles({ zipPath, fileToExtract, exclude = [], outputNam
4444
resolve();
4545
return;
4646
}
47+
// Windows: yield a tick so the previous entry's read stream (zlib
48+
// inflate + fd) fully tears down before requesting the next one,
49+
// otherwise readEntry() can stall (observed on windows-latest/Node 24 CI).
50+
await new Promise(setImmediate);
4751
zipFile.readEntry();
4852
} catch (err) {
4953
reject(err);

0 commit comments

Comments
 (0)