couchbaselabs / sync-gateway-tests

Sync Gateway Functional Tests
3 stars 2 forks source link

Run functional tests with -races #50

Open tleyden opened 9 years ago

tleyden commented 9 years ago

As mentioned in https://github.com/couchbase/sync_gateway/issues/1257, it's possible to induce and detect data races.

TODO:

tleyden commented 9 years ago

Build sync gateway with the -race flag

I just pushed https://github.com/couchbase/sync_gateway/commit/6bad08136d1bc274e1f3990af33216242dad1a3c which allows calling:

build.sh -race

which will build the sync gw binary with race detection enabled.

This will have the negative side effect of slowing the tests down, so you may want to make this optional for normal builds, but enabled for release builds.

(if build.sh is called on other branches which don't have this change, passing the -race flag will have no effect, but will be harmless)

tleyden commented 8 years ago

This needs a Jenkins change

tleyden commented 8 years ago

@michaelkwok this should be done as part of a PR