Skip to content

Conversation

alecgibson
Copy link
Contributor

@alecgibson alecgibson commented Sep 30, 2020

This change combines two commits that aim to greenify the build due to upstream library changes. This should also greenify the downstream sharedb build.

Remove sharedb-mingo-memory tests

This change reverts 38d6f8a

That change moved some tests from this library into
sharedb-mingo-memory and then ran them in this library by requiring
them from that one.

While this de-duplicates code, it also introduces a surprising coupling
between the tests of the two libraries. sharedb-mingo-memory can
add arbitrary tests to the imported suite, which may not necessarily
be applicable to sharedb-mongo, and even fail the sharedb-mongo
build, as is happening now.

This change removes that require, and just puts the original tests
back (ignoring any other tests that have been added to that external
suite since).

Add ot-json1 as a devDependency

Some of the new sharedb tests rely on ot-json1 as a dependency.
Without it, the tests fail to run.

This change adds ot-json1 as a devDependency. Note that we didn't
need to do this for ot-json0, because sharedb ships with that as a
dependency.

Some of the new `sharedb` tests rely on `ot-json1` as a dependency.
Without it, the tests fail to run.

This change adds `ot-json1` as a `devDependency`. Note that we didn't
need to do this for `ot-json0`, because `sharedb` ships with that as a
`dependency`.
This change reverts 38d6f8a

That change moved some tests from this library into
`sharedb-mingo-memory` and then ran them in this library by requiring
them from that one.

While this de-duplicates code, it also introduces a surprising coupling
between the tests of the two libraries. `sharedb-mingo-memory` can
add arbitrary tests to the imported suite, which may not necessarily
be applicable to `sharedb-mongo`, and even fail the `sharedb-mongo`
build, as is happening now.

This change removes that `require`, and just puts the original tests
back (ignoring any other tests that have been added to that external
suite since).
@alecgibson alecgibson changed the title Remove sharedb-mingo-memory tests Greenify build Sep 30, 2020
@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.069% when pulling 6280fd5 on remove-mingo-tests into f746c0f on master.

@ericyhwang
Copy link
Contributor

A couple of the Mongo 3.4 tests originally timed out.

After signing out of Travis and signing back in, it recognized my orgs and let me re-run, and a re-run of those passed!

@ericyhwang ericyhwang merged commit 597386b into master Sep 30, 2020
@ericyhwang ericyhwang deleted the remove-mingo-tests branch September 30, 2020 21:49
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.

3 participants