mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Print compilation progress in node-napi.test.ts
This commit is contained in:
@@ -70,7 +70,10 @@ beforeAll(async () => {
|
||||
.map(t => dirname(t));
|
||||
const uniqueDirectories = Array.from(new Set(directories));
|
||||
|
||||
const start = Date.now();
|
||||
|
||||
async function buildOne(dir: string) {
|
||||
console.log(`Building in ${dir.replace(/.+node-napi-tests.test./, "")}.`, (Date.now() - start) / 1000, "s elapsed");
|
||||
const child = spawn({
|
||||
cmd: [bunExe(), "x", "node-gyp", "rebuild", "--debug"],
|
||||
cwd: dir,
|
||||
@@ -101,7 +104,7 @@ beforeAll(async () => {
|
||||
}
|
||||
}
|
||||
|
||||
const parallelism = Math.min(8, os.cpus().length);
|
||||
const parallelism = Math.min(8, os.cpus().length, 1 /* TODO(@heimskr): remove */);
|
||||
const jobs = [];
|
||||
for (let i = 0; i < parallelism; i++) {
|
||||
jobs.push(worker());
|
||||
@@ -129,7 +132,7 @@ describe.each([
|
||||
expect(result.success).toBeTrue();
|
||||
expect(result.exitCode).toBe(0);
|
||||
},
|
||||
20000, // timeout
|
||||
60000, // timeout
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user