Compare commits

...

4 Commits

Author SHA1 Message Date
Meghan Denny
f1e0d94f01 use err for the log, we discovered windows was on ReleaseFast 2024-08-07 00:32:30 -07:00
Meghan Denny
53f5709a34 log what the exit code is getting truncated from 2024-08-06 23:53:18 -07:00
Meghan Denny
f2bf1ed368 add --verbose to 'node-gyp rebuild' 2024-08-06 22:59:17 -07:00
Meghan Denny
84dcfa9736 ci: investigate napi.test.ts failing on windows 2024-08-06 22:45:43 -07:00
3 changed files with 18 additions and 16 deletions

View File

@@ -383,7 +383,7 @@ pub const Process = struct {
const signal_code: ?bun.SignalCode = if (term_signal > 0 and term_signal < @intFromEnum(bun.SignalCode.SIGSYS)) @enumFromInt(term_signal) else null;
const rusage = uv_getrusage(process);
bun.windows.libuv.log("Process.onExit({d}) code: {d}, signal: {?}", .{ process.pid, exit_code, signal_code });
std.log.err("Process.onExit({d}) status={d}, sig={d}, code: {d}, signal: {?}", .{ process.pid, exit_status, term_signal, exit_code, signal_code });
if (signal_code) |sig| {
this.close();

View File

@@ -3,7 +3,7 @@
"version": "1.0.0",
"gypfile": true,
"scripts": {
"build": "node-gyp rebuild",
"build": "node-gyp rebuild --verbose",
"clean": "node-gyp clean"
},
"devDependencies": {

View File

@@ -3,21 +3,23 @@ import { bunExe, bunEnv } from "harness";
import { spawnSync } from "bun";
import { join } from "path";
describe("napi", () => {
beforeAll(() => {
// build gyp
const install = spawnSync({
cmd: [bunExe(), "install", "--verbose"],
cwd: join(__dirname, "napi-app"),
stderr: "inherit",
env: bunEnv,
stdout: "inherit",
stdin: "inherit",
});
if (!install.success) {
throw new Error("build failed");
}
beforeAll(() => {
// build gyp
const install = spawnSync({
cmd: [bunExe(), "install", "--verbose"],
cwd: join(__dirname, "napi-app"),
stderr: "inherit",
env: bunEnv,
stdout: "inherit",
stdin: "inherit",
});
console.log('bun install exited with', install.exitCode);
if (!install.success) {
throw new Error("build failed");
}
});
describe("napi", () => {
describe("issue_7685", () => {
it("works", () => {
const args = [...Array(20).keys()];