Skip to content

Commit c46a6bd

Browse files
committed
fix(ci): force completed Node suites to exit
1 parent 10bfdb8 commit c46a6bd

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v7
2525

26+
- uses: actions/setup-node@v7
27+
with:
28+
node-version: 24
29+
2630
- name: Install Rust components
2731
run: rustup component add rustfmt clippy
2832

scripts/ci/run-node-checks.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ run_node_tests() {
3131

3232
node scripts/ci/manage-labels.js --check
3333

34+
if node --help | grep -q -- "--test-force-exit"; then
35+
# All assertions must finish, but a leaked worker handle must not hold CI open.
36+
node_test_args+=(--test-force-exit)
37+
fi
38+
3439
while IFS= read -r file; do
3540
test_files+=("$file")
3641
done < <(git ls-files '*.test.js' 'linux-features/*/test.js')

0 commit comments

Comments
 (0)