Skip to content
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

Flaky failure on multiple platforms in CITGM #1541

Closed
MylesBorins opened this issue Nov 29, 2018 · 8 comments
Closed

Flaky failure on multiple platforms in CITGM #1541

MylesBorins opened this issue Nov 29, 2018 · 8 comments

Comments

@MylesBorins
Copy link

Hey All,

We are periodically seeing failures with winston on various platforms in the Node.js Smoke Testing suite

https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1655/nodes=ubuntu1804-docker/testReport/(root)/citgm/winston_v3_1_0/

https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1655/nodes=osx1010/testReport/(root)/citgm/winston_v3_1_0/


   1) Logger, ExceptionHandler
        Custom exitOnError function does not exit:
      Uncaught [1m[31mUnknown assertation failure occured, assumed `[]` to deeply equal `[ 'Ignore this error' ]`
   [90m/home/iojs/build/workspace/citgm-smoker/nodes/ubuntu1804-docker/citgm_tmp/89c15413-6f86-4a39-97d1-0d7e8b66d8be/winston/test/log-exception.test.js[0m
       [31m                              v
       [90m66.       assume(child.killed).false();
       [0m67.       assume(stdout).deep.equals(['Ignore this error']);
       [90m68.       child.kill();
       [31m                              ^[0m
           at Assume.equal (node_modules/assume/index.js:676:15)
           at Timeout._onTimeout (test/log-exception.test.js:67:27)
   [0m

@indexzero
Copy link
Member

indexzero commented Nov 29, 2018

Exception logging is quite tricky to test. We spawn a child process that throws an error and assert the process exit code / stderr output. There could be a race condition in how we consume child_process.

How long has this been ongoing? Since those tests have not changed in quite some time it also could be subtle change to an aspect of child_process timing in Node itself. If this is recent flakiness that would be more likely.

@MylesBorins
Copy link
Author

MylesBorins commented Nov 29, 2018 via email

@indexzero
Copy link
Member

There is a larger discussion about exitOnError and some subtle bugs in it that @DABH knows more about than I do. Will make sure to bring this up when we have our monthly meeting next week.

@indexzero
Copy link
Member

Thanks again for the bug report – hopefully the flakiness isn't holding up releases on Node. If it is please let me know and we can make this a higher priority.

@MylesBorins
Copy link
Author

MylesBorins commented Nov 30, 2018 via email

@indexzero
Copy link
Member

Just caught this flakyness on 3.2.0 latest, but only on node@6 and only on Windows (see: Appveyor build.

Are you still seeing this on latest versions of node @MylesBorins or on other platforms?

  1) Logger, ExceptionHandler
       Custom exitOnError function does not exit:
     Uncaught Unknown assertation failure occured, assumed `[]` to deeply equal `[ 'Ignore this error' ]`
  C:\projects\winston\test\log-exception.test.js
                                    v
      66.       assume(child.killed).false();
      67.       assume(stdout).deep.equals(['Ignore this error']);
      68.       child.kill();
                                    ^
          at Assume.equal (node_modules\assume\index.js:676:15)
          at Timeout._onTimeout (test\log-exception.test.js:67:27)

@BridgeAR
Copy link
Contributor

We still encounter the very same failure. The failure is platform independent.

See e.g., https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/2142/nodes=debian9-64/testReport/junit/(root)/citgm/winston_v3_2_1/ (available ~7 days)

@BridgeAR
Copy link
Contributor

I just had a look at the test and it seems likely that something could be written to stderr instead of stdout. This should probably be tested as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants