-
Notifications
You must be signed in to change notification settings - Fork 94
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
Integration tests sometimes failing #27
Comments
@laggingreflex mind trying the latest version that's been released (3.2.0). we now warn rather than throw in this case, and also print a better error message. |
@laggingreflex -- is this okay now? We can close this issue? |
There's improvement. Out of 2 I'm now only getting 1 error: Again, this happens only some of the times unpredictably. Have you guys tested it running tests again and again? (at least ~10 or so times) I hope it's not just me, or my OS (Windows).
|
I see, when you make changes, you must generate a new snapshot with the command:
Is that the reason? PS. We're clarifying this in the contributing guidelines here #36 |
I'm not sure I understand.. I'm not making any changes. I'm just running the test. |
@laggingreflex -- ok, got it. We'll need to investigate this. Looks like for your case there is a slight change in coverage report between multiple runs, right? |
However, just to be sure, the earlier reported error #27 (comment) is no longer happening, right? |
Yes, earlier 2 tests were failing, now only one of them is still failing - 'merges reports from subprocesses together' (in the same manner, i.e. sometimes and unpredictably). And yes, the error is the result of a slight change in coverage report (which is what the test checks for using the snapshot) between multiple runs. |
Thanks. I’ll investigate. Also do let me know when you find any hints.
-na
On Wed, Sep 26, 2018 at 5:48 PM laggingreflex ***@***.***> wrote:
Yes, earlier 2 tests were failing, now only one of them is still failing -
'merges reports from subprocesses together' (in the same manner, i.e.
sometimes and unpredictably).
And yes, the error is the result of a slight change in coverage report
(which is what the test checks for using the snapshot) between multiple
runs.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAP8kZixgA8pVUJyUNJ6beuztBGgEbJYks5ue5PAgaJpZM4Wn7v6>
.
--
Sent from a tiny device while on the move.
|
I did a bit more digging, and it looks like the order in which arguments are passed to |
@laggingreflex could you provide output files that fail when the merge is reversed? We have a rework of the algorithm that might help. |
@bcoe Did you mean output of If so here it is. I've filtered the output to just where You'll see that in the output for
Whereas in the output of
They're identical except in reverse order, which means the arguments are themselves in reverse order. |
@laggingreflex Could you check with the changes from this PR? The order order should be increasing |
@demurgos Yep, that PR seems to fix this. I've ran tests many times with it and they're always passing 👍 |
This commit uses the [new merge algorithm][merge] to handle sub-processes. It fixes the issues reported in bcoe/v8-coverage-merge#7 and improves performance. [merge]: https://github.com/demurgos/v8-coverage/blob/master/docs/merge.md Closes bcoe#27
This commit uses the [new merge algorithm][merge] to handle sub-processes. It fixes the issues reported in bcoe/v8-coverage-merge#7 and improves performance. [merge]: https://github.com/demurgos/v8-coverage/blob/master/docs/merge.md Closes bcoe#27
@laggingreflex I believe this should be fixed now, let me know if you continue to bump into any issues. |
This is a weird issues, I'm not sure what's going wrong... if it's just me (I'm on Windows), or if it actually has something to do with integration tests
Sometimes the tests fail and sometimes they pass...
Here's a screen grab where I run the same test command:
The two tests that are failing are:
'merges reports from subprocesses together'
When it fails (see source for what's expected) the actual output is:
which differs in the last line (subprocess.js)
'omit-relative can be set to false'
When it fails (see source for what's expected) the actual output is:
It throws an "EISDIR: illegal operation on a directory" error instead of the expected "ENOENT: no such file or directory"
Edit: I'm testing this with #26 checked out, but this issue seems to exist without it too.
The text was updated successfully, but these errors were encountered: