openvibers/openvibe.games Commits

Run the slice test on a free port with a longer server start timeout

OP OpenVibers committed 3 Oct 2026 · 882f831d93 · 8 files, +20 −2

Requested by finish-f1. Handed to the local harness by the cloud job pr-OpenVibe.Games-1; done by Claude opus.

Changes

ddiff --git a/apps/client/node_modules b/apps/client/node_modules
nnew file mode 120000
iindex 0000000..0b556b4
---- /dev/null
++++ b/apps/client/node_modules
@@@ -0,0 +1 @@
++/mnt/120gb/openvibe-worktrees/OpenVibe.Games-agent-games-follow-up-of-https-github-com-open-081839-mus4ed3w-finish/apps/client/node_modules
\\ No newline at end of file
ddiff --git a/apps/server/node_modules b/apps/server/node_modules
nnew file mode 120000
iindex 0000000..3496642
---- /dev/null
++++ b/apps/server/node_modules
@@@ -0,0 +1 @@
++/mnt/120gb/openvibe-worktrees/OpenVibe.Games-agent-games-follow-up-of-https-github-com-open-081839-mus4ed3w-finish/apps/server/node_modules
\\ No newline at end of file
ddiff --git a/apps/server/scripts/sliceTest.ts b/apps/server/scripts/sliceTest.ts
iindex a764069..07af1d4 100644
---- a/apps/server/scripts/sliceTest.ts
++++ b/apps/server/scripts/sliceTest.ts
@@@ -10,6 +10,7 @@
* Run: tsx apps/server/scripts/sliceTest.ts
*/
import { spawn, type ChildProcess } from 'node:child_process'
++import { createServer } from 'node:net'
import { mkdtempSync, rmSync, writeFileSync } from 'node:fs'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
@@@ -30,7 +31,16 @@ import {
import { encodeHeights } from '@openvibe/content'
import { quantiseAngle } from '@openvibe/shared'
--const PORT = 18123
++// A port the OS hands out, not a fixed one: the checks and the verify job can run the slice at the
++// same time on one machine. Chosen once, so the restart test comes back on the same address.
++const PORT = await new Promise<number>((resolvePort, reject) => {
++ const probe = createServer()
++ probe.once('error', reject)
++ probe.listen(0, '127.0.0.1', () => {
++ const address = probe.address()
++ probe.close(() => resolvePort(typeof address === 'object' && address ? address.port : 0))
++ })
++})
const URL = `ws://127.0.0.1:${PORT}/ws`
const dir = mkdtempSync(join(tmpdir(), 'openvibe-slice-'))
@@@ -99,7 +109,8 @@ function startServer(): Promise<void> {
},
stdio: ['ignore', 'pipe', 'pipe'],
})
-- const timer = setTimeout(() => reject(new Error('server did not start')), 30000)
++ // Cold start compiles PGlite and Rapier (a few seconds idle); on a loaded machine 30 s was not enough.
++ const timer = setTimeout(() => reject(new Error('server did not start')), 120_000)
server.stdout?.on('data', (chunk: Buffer) => {
const text = chunk.toString()
if (process.env.SLICE_DEBUG) process.stdout.write(` [srv] ${text}`)
ddiff --git a/packages/content/node_modules b/packages/content/node_modules
nnew file mode 120000
iindex 0000000..44a09a9
---- /dev/null
++++ b/packages/content/node_modules
@@@ -0,0 +1 @@
++/mnt/120gb/openvibe-worktrees/OpenVibe.Games-agent-games-follow-up-of-https-github-com-open-081839-mus4ed3w-finish/packages/content/node_modules
\\ No newline at end of file
ddiff --git a/packages/gameplay/node_modules b/packages/gameplay/node_modules
nnew file mode 120000
iindex 0000000..f8f4113
---- /dev/null
++++ b/packages/gameplay/node_modules
@@@ -0,0 +1 @@
++/mnt/120gb/openvibe-worktrees/OpenVibe.Games-agent-games-follow-up-of-https-github-com-open-081839-mus4ed3w-finish/packages/gameplay/node_modules
\\ No newline at end of file
ddiff --git a/packages/persistence/node_modules b/packages/persistence/node_modules
nnew file mode 120000
iindex 0000000..9357878
---- /dev/null
++++ b/packages/persistence/node_modules
@@@ -0,0 +1 @@
++/mnt/120gb/openvibe-worktrees/OpenVibe.Games-agent-games-follow-up-of-https-github-com-open-081839-mus4ed3w-finish/packages/persistence/node_modules
\\ No newline at end of file
ddiff --git a/packages/physics/node_modules b/packages/physics/node_modules
nnew file mode 120000
iindex 0000000..d899574
---- /dev/null
++++ b/packages/physics/node_modules
@@@ -0,0 +1 @@
++/mnt/120gb/openvibe-worktrees/OpenVibe.Games-agent-games-follow-up-of-https-github-com-open-081839-mus4ed3w-finish/packages/physics/node_modules
\\ No newline at end of file
ddiff --git a/packages/protocol/node_modules b/packages/protocol/node_modules
nnew file mode 120000
iindex 0000000..edc90fd
---- /dev/null
++++ b/packages/protocol/node_modules
@@@ -0,0 +1 @@
++/mnt/120gb/openvibe-worktrees/OpenVibe.Games-agent-games-follow-up-of-https-github-com-open-081839-mus4ed3w-finish/packages/protocol/node_modules
\\ No newline at end of file