-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix all hanging tests, reduce flakyness of other tests #2186
base: main
Are you sure you want to change the base?
Changes from all commits
9b24d0e
411ed05
1e8fdf2
f141b07
9bf96d8
3cc0a48
3ec09eb
cf5312c
ffb06db
c9042ff
885b8b9
1fbb480
b2bd56e
ac6cdb5
f4e44fc
b36b3a7
d00e5aa
f855aa0
2001054
fe098eb
2f32508
4cda584
b76116d
8afd28f
7415d6f
45745cf
fca3ffd
2a3fcf3
b6e287b
4d4111f
3185719
afcc5d4
11c0f9d
12335be
16c48b9
cbb65df
7ba8baa
5bba2b2
0f6cbe2
412cf5b
a8f4e50
8c0d17a
8758cd8
43b7f86
2c716ac
e068993
239d9b6
2d05db0
aa33ece
27279fa
58975f8
b0135c8
9ad5a9b
19b5288
f16b333
25414ff
fa02755
24041c7
ab5a2c8
7178948
8b30ca6
cfed328
dc347e9
7d9b824
7030a8b
23ac374
e6486c0
69eef4f
ab9b938
fb4cead
6f5d492
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,7 @@ jobs: | |
package: broker | ||
docker-services: cassandra init-keyspace dev-chain-fast deploy-network-subgraphs-fastchain | ||
run-entry-point: true | ||
command: npm run test-integration | ||
command: npm run test-sequential && npm run test-integration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. run sequential after integration |
||
client-browser: | ||
needs: build | ||
uses: ./.github/workflows/test-setup.yml | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,8 @@ | |
"eslint": "eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts}'", | ||
"test": "npm run test-unit && npm run test-integration && npm run test-sequential", | ||
"test-unit": "jest test/unit", | ||
"test-sequential": "jest --bail --forceExit --maxWorkers=1 test/sequential # always run sequential tests with maxWorkers=1", | ||
"test-integration": "jest --bail --forceExit test/integration && npm run test-sequential" | ||
"test-sequential": "streamr-keyserver 45456 800 899 & PIDS=$!; sleep 5 && jest --bail --maxWorkers=1 test/sequential/$npm_config_test && kill $PIDS || (kill $PIDS; return 1)", | ||
"test-integration": "streamr-keyserver 45455 500 799 & PID=$!; sleep 5 && jest --bail test/integration/$npm_config_test && kill $PID || (kill $PID; return1)" | ||
}, | ||
"author": "Streamr Network AG <[email protected]>", | ||
"license": "STREAMR NETWORK OPEN SOURCE LICENSE", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ createMessagingPluginTest('mqtt', | |
await client.publish(streamId, JSON.stringify(msg)) | ||
}, | ||
subscribe: async (messageQueue: Queue<Message>, streamId: string, client: AsyncMqttClient): Promise<void> => { | ||
client.once('message', (topic: string, message: Buffer) => { | ||
client.on('message', (topic: string, message: Buffer) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this an unnecessary change? |
||
if (topic === streamId) { | ||
messageQueue.push(JSON.parse(message.toString())) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment as to why this is necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a known bug in npm, another npm ci after build is needed to install the binaries generated by submodules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ptesavol Which binaries weren't installed in practice? Could you provide a link to that bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
streamr-keyserver was not installed. npm/cli#4591