Skip to content

Reduce test flakiness #65

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

Merged
merged 2 commits into from
Aug 6, 2018
Merged

Conversation

alecgibson
Copy link
Contributor

This change attempts to reduce build flakiness by:

  • updating the versions of Node and ShareDb we run Travis against
  • bumping the sharedb-mingo-memory version to a version which fixes its unit tests

sharedb-mongo has a dependency on tests in sharedb-mingo-memory. These
tests were [recently fixed][1] in sharedb-mingo-memory. This change
bumps the patch version of that dependency here so that the tests are
fixed on this library, too.

[1]: share/sharedb-mingo-memory#5
@coveralls
Copy link

coveralls commented Jul 19, 2018

Coverage Status

Coverage remained the same at 93.033% when pulling fa734c9 on alecgibson:reduce-test-flakiness into 5a7c674 on share:master.

@gkubisa
Copy link
Contributor

gkubisa commented Jul 19, 2018

This is essentially a subset of #64.

@alecgibson
Copy link
Contributor Author

This test is still flaky, though. I think there's a race condition here that sometimes fails.

@gkubisa
Copy link
Contributor

gkubisa commented Jul 19, 2018

Uncaught Error: expected undefined to be truthy

Yes, I've seen this error in your previous PR too (different node and MongoDB version). I'd guess it could be the previous test affecting the failing test.

@alecgibson
Copy link
Contributor Author

I've attempted to fix this flaky test here: share/sharedb#227

@ericyhwang
Copy link
Contributor

Your fix for the flaky base test is published as [email protected], so we can pick this back up now.

You should be able to trigger a Travis re-run with the new published version by pushing up an empty commit to your branch, then deleting the commit and force-pushing once Travis starts running.

@alecgibson alecgibson force-pushed the reduce-test-flakiness branch from 7efee62 to 46f512f Compare August 2, 2018 06:30
@alecgibson alecgibson force-pushed the reduce-test-flakiness branch from 46f512f to fa734c9 Compare August 2, 2018 06:32
Copy link
Contributor

@ericyhwang ericyhwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates!

@ericyhwang ericyhwang merged commit 5c442f7 into share:master Aug 6, 2018
@alecgibson alecgibson deleted the reduce-test-flakiness branch August 7, 2018 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants