-
Notifications
You must be signed in to change notification settings - Fork 22
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
resolves #99 pass version to the worker #103
Conversation
I've added an explicit timeout on string-limit-2.test.js and event.test.js because tests are running forever on GitHub actions. I thought it was related to the Node version and/or OS but I don't see any pattern. I think one of our tests is just flaky. Hopefully, with the timeout we will get a proper error. |
Still running forever 😬 |
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.
lgtm
Thanks for your review @mcollina I think the timeout in
I believe the value should be 60 seconds ? For reference, Pino is using 480. |
I can't find why tests are failing from time to time 😞 |
They are flaky :( |
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.
Looks good to me.
@@ -1,5 +1,6 @@ | |||
'use strict' | |||
|
|||
const { version } = require('./package.json') |
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.
Cue the future issue where people transpiling everything will complain about needing the package.json
....
please adopt the same trick we use in pino and fastify for keeping the version up to date without having to load package.json. |
Yes but I'm trying to understand why. It works fine when I run each test individually using
But I don't see when |
Pull Request Test Coverage Report for Build 2999159363
💛 - Coveralls |
Pull Request Test Coverage Report for Build 2999242094
💛 - Coveralls |
f4a480a
to
1e3f804
Compare
The plot thickens! Apparently, adding |
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.
lgtm
@@ -3,13 +3,15 @@ | |||
const { test } = require('tap') | |||
const { join } = require('path') | |||
const ThreadStream = require('..') | |||
require('why-is-node-running') |
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.
I think a separate issue should be opened and worked on to investigate why this is "fixing" the test suite.
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.
I think there is some weird interaction between tap own use of async_hooks
, worker_threads
and code coverage.
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.
It's affecting the Pino tests as well. We get flakes over there all the time.
resolves #99