Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 949566d

Browse files
committed
Update NodeCG exit code and log format in NodeCG integration test
1 parent c1367d9 commit 949566d

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

.scripts/ci-nodecg-integration.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,16 @@ child.once("exit", (exitCode, signal) => {
3939
console.log("Stopped NodeCG\n");
4040

4141
// Check exit code for failure
42-
if (exitCode !== null && exitCode !== 0) {
42+
// 143 is the exit code when the process is killed by the timeout (SIGTERM)
43+
if (exitCode !== null && exitCode !== 143) {
4344
throw new Error(`NodeCG exited with code ${exitCode} ${signal}`);
4445
}
4546

4647
const log = Buffer.concat(buffer).toString();
4748

4849
// Try to find each bundle in the logs.
4950
const missing = bundles.filter(
50-
(i) => !log.includes(`[nodecg/lib/server/extensions] Mounted ${i.packageJson.name} extension`),
51+
(bundle) => !log.includes(` [extensions] Mounted ${bundle.packageJson.name} extension`),
5152
);
5253

5354
// Fail the run if there are missing bundles.

samples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"description": "",
55
"private": true,
66
"nodecg": {
7-
"compatibleRange": "^1.1.1"
7+
"compatibleRange": ">=1.1.1"
88
}
99
}

services/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"description": "",
55
"private": true,
66
"nodecg": {
7-
"compatibleRange": "^1.1.1"
7+
"compatibleRange": ">=1.1.1"
88
}
99
}

utils/nodecg-io-tsconfig/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"nodecg-io"
1919
],
2020
"nodecg": {
21-
"compatibleRange": "^1.1.1"
21+
"compatibleRange": ">=1.1.1"
2222
},
2323
"license": "MIT"
2424
}

utils/nodecg-io-twitch-auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"nodecg-io"
1616
],
1717
"nodecg": {
18-
"compatibleRange": "^1.1.1"
18+
"compatibleRange": ">=1.1.1"
1919
},
2020
"license": "MIT",
2121
"devDependencies": {

utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"description": "",
55
"private": true,
66
"nodecg": {
7-
"compatibleRange": "^1.1.1"
7+
"compatibleRange": ">=1.1.1"
88
}
99
}

0 commit comments

Comments
 (0)