Skip to content

Clean up remaining upstream diff #4

Clean up remaining upstream diff

Clean up remaining upstream diff #4

Triggered via pull request February 18, 2025 18:53
Status Failure
Total duration 7m 56s
Artifacts

branch-build.yml

on: pull_request
install-modules
4m 54s
install-modules
secrets-gate
0s
secrets-gate
Matrix: test
Matrix: test_docker
Fit to window
Zoom out
Zoom in

Annotations

18 errors
test (editor)
Process completed with exit code 1.
src/EntityNetworkState.test.tsx > EntityNetworkState > should spawn entity > should spawn object owned by host as host: packages/hyperflux/src/functions/ActionFunctions.ts#L294
TypeError: Failed type: ["ownerID"]string(undefined) given input {"type":"ee.network.SPAWN_ENTITY","entityUUID":"entity","parentUUID":"a092b477-15df-4a3f-a67b-7b7ebc79e17d","authorityPeerId":null,"$cache":true,"$topic":"world","$peer":"b569bee2-0093-429f-a889-b78782793664"} ❯ Parser.unsafeCast ../../node_modules/ts-matches/esm/src/parsers/parser.js:160:15 ❯ Function.actionCreator [as spawnEntity] ../hyperflux/src/functions/ActionFunctions.ts:294:25 ❯ src/EntityNetworkState.test.tsx:71:28
src/EntityNetworkState.test.tsx > EntityNetworkState > should spawn entity > should spawn object owned by host as other user: packages/hyperflux/src/functions/ActionFunctions.ts#L294
TypeError: Failed type: ["ownerID"]string(undefined) given input {"type":"ee.network.SPAWN_ENTITY","entityUUID":"entity","parentUUID":"1e8842fa-bc34-4fec-a56a-f4afa3ab8865","authorityPeerId":null,"$cache":true,"$topic":"world","$peer":"host peer"} ❯ Parser.unsafeCast ../../node_modules/ts-matches/esm/src/parsers/parser.js:160:15 ❯ Function.actionCreator [as spawnEntity] ../hyperflux/src/functions/ActionFunctions.ts:294:25 ❯ src/EntityNetworkState.test.tsx:121:28
src/EntityNetworkState.test.tsx > EntityNetworkState > should remove entity > should remove entity owned by host as host: packages/hyperflux/src/functions/ActionFunctions.ts#L294
TypeError: Failed type: ["ownerID"]string(undefined) given input {"type":"ee.network.SPAWN_ENTITY","entityUUID":"entity","parentUUID":"7ab8740f-9aff-4f28-9620-19f0ef2b571e","authorityPeerId":null,"$cache":true,"$topic":"world","$peer":"ce5114ff-bc4c-4f44-8481-5b80d88aaa40"} ❯ Parser.unsafeCast ../../node_modules/ts-matches/esm/src/parsers/parser.js:160:15 ❯ Function.actionCreator [as spawnEntity] ../hyperflux/src/functions/ActionFunctions.ts:294:25 ❯ src/EntityNetworkState.test.tsx:333:28
src/EntityNetworkState.test.tsx > EntityNetworkState > should remove entity > should remove entity owned by host as other user: packages/hyperflux/src/functions/ActionFunctions.ts#L294
TypeError: Failed type: ["ownerID"]string(undefined) given input {"type":"ee.network.SPAWN_ENTITY","entityUUID":"entity","parentUUID":"a4e2b588-450e-4bdc-9b2b-6dead06464e1","authorityPeerId":null,"$cache":true,"$topic":"world","$peer":"host peer"} ❯ Parser.unsafeCast ../../node_modules/ts-matches/esm/src/parsers/parser.js:160:15 ❯ Function.actionCreator [as spawnEntity] ../hyperflux/src/functions/ActionFunctions.ts:294:25 ❯ src/EntityNetworkState.test.tsx:395:28
src/serialization/DataReader.test.ts > DataReader > should readEntities: packages/hyperflux/src/functions/ActionFunctions.ts#L294
TypeError: Failed type: ["userID"]string(undefined) given input {"type":"ee.engine.network.PEER_JOINED","peerID":"host peer id","peerIndex":22,"$network":"instanceID"} ❯ Parser.unsafeCast ../../node_modules/ts-matches/esm/src/parsers/parser.js:160:15 ❯ Function.actionCreator [as peerJoined] ../hyperflux/src/functions/ActionFunctions.ts:294:25 ❯ src/serialization/DataReader.test.ts:748:24 ❯ src/serialization/DataReader.test.ts:729:14
test (network)
Process completed with exit code 1.
test (engine)
Process completed with exit code 1.
test (client-core)
Process completed with exit code 1.
tests/InstanceLoad.test.ts: packages/spatial/src/physics/types/PhysicsTypes.ts#L1
SyntaxError: Cannot use import statement outside a module ❯ ../spatial/src/physics/types/PhysicsTypes.ts:1:1 ❯ ../engine/src/gltf/GLTFComponent.tsx:7:31 ❯ tests/InstanceLoad.test.ts:14:32 Module /home/runner/work/ir-engine/ir-engine/node_modules/@dimforge/rapier3d-compat/rapier.cjs.js:2 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "@dimforge/rapier3d-compat" asking them to ship the file in .mjs extension or add "type": "module" in their package.json. As a temporary workaround you can try to inline the package by updating your config: // vitest.config.js export default { test: { server: { deps: { inline: [ "@dimforge/rapier3d-compat" ] } } } }
test_docker (instanceserver)
Process completed with exit code 1.
src/renderer/WebGLRendererSystem.test.tsx > WebGl Renderer System > Test Background, Environment, Fog Components: packages/spatial/src/renderer/WebGLRendererSystem.tsx#L373
TypeError: Cannot read properties of null (reading 'drawingBufferWidth') ❯ render src/renderer/WebGLRendererSystem.tsx:373:27 ❯ Object.execute src/renderer/WebGLRendererSystem.tsx:452:5 ❯ src/renderer/WebGLRendererSystem.test.tsx:121:49
src/renderer/WebGLRendererSystem.test.tsx > WebGl Renderer System > Test WebGL Reactors: packages/spatial/src/renderer/WebGLRendererSystem.tsx#L373
TypeError: Cannot read properties of null (reading 'drawingBufferWidth') ❯ render src/renderer/WebGLRendererSystem.tsx:373:27 ❯ Object.execute src/renderer/WebGLRendererSystem.tsx:452:5 ❯ src/renderer/WebGLRendererSystem.test.tsx:139:49
test (spatial)
Process completed with exit code 1.
test_docker (server-core)
The job was canceled because "instanceserver" failed.
test_docker (server-core)
The operation was canceled.
check-errors
Process completed with exit code 1.
check-lint
Process completed with exit code 1.