Skip to content

Run functional tests with -races #1400

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

Closed
tleyden opened this issue Jan 4, 2016 · 13 comments
Closed

Run functional tests with -races #1400

tleyden opened this issue Jan 4, 2016 · 13 comments
Assignees
Labels
Milestone

Comments

@tleyden
Copy link
Contributor

tleyden commented Jan 4, 2016

Retest #1260 and look for other issues.

@tleyden
Copy link
Contributor Author

tleyden commented Jan 6, 2016

After running this functional test:

python -m pytest --capture=no functional_tests/test_users_channels.py::test_single_user_single_channel

I saw some gocb data race errors:

https://issues.couchbase.com/browse/GOCBC-82

@tleyden tleyden added ready and removed in progress labels Jan 13, 2016
@tleyden
Copy link
Contributor Author

tleyden commented Jan 15, 2016

Note to self: can run provision.py script with -race flag

@tleyden
Copy link
Contributor Author

tleyden commented Jan 20, 2016

In progress

From @sethrosetter:

http://qa.sc.couchbase.com/view/mobile/job/centos-syncgateway-functional-tests-RACES/

There is your sandbox. Steps to get this working:

  1. Configure so that you can pass in a build flag to provision_cluster.py. Perhaps a branch and target that in the job.
  2. Configure the above job to build from source with the races flag instead of installing the package (current behavior).

@tleyden
Copy link
Contributor Author

tleyden commented Jan 20, 2016

@tleyden
Copy link
Contributor Author

tleyden commented Jan 20, 2016

Change needed on testcluster stuff: couchbaselabs/mobile-testkit#242

@tleyden
Copy link
Contributor Author

tleyden commented Jan 21, 2016

@tleyden
Copy link
Contributor Author

tleyden commented Jan 23, 2016

The test above had many failures, however I grepped all of the sync gateway logs of the failed cases and did not find the DATA RACE string.

@tleyden
Copy link
Contributor Author

tleyden commented Jan 23, 2016

http://qa.sc.couchbase.com/view/mobile/job/centos-syncgateway-functional-tests-RACES/7/ will have the explicit checking of the SG logs for panics / races on any test failures.

@tleyden
Copy link
Contributor Author

tleyden commented Jan 25, 2016

In progress:

http://qa.sc.couchbase.com/view/mobile/job/centos-syncgateway-functional-tests-RACES/16/console

this is checking every log zipfile for "panic" or "DATA RACE", even for passing tests.

@tleyden
Copy link
Contributor Author

tleyden commented Jan 26, 2016

Detected races:

2016-01-25 19:09:51,016 - ERROR - fetch_sync_gateway_logs - Error pulling logs
2016-01-25 19:09:56,457 - INFO - detected_pattern - Detected pattern DATA RACE: sg3/sync_gateway_error.log:WARNING: DATA RACE
sg3/sync_gateway_error.log:WARNING: DATA RACE
sg3/sync_gateway_error.log:WARNING: DATA RACE
sg3/sync_gateway_error.log:WARNING: DATA RACE

2016-01-25 19:09:56,460 - ERROR - fetch_logs - Detected data races in logs: /tmp/functional_tests-test_continuous.py-test_continuous_changes_parametrized[CC-6]-2016-01-25-19-09-51-sglogs.zip

@tleyden
Copy link
Contributor Author

tleyden commented Jan 26, 2016

The job finished and found more race issues:

http://qa.sc.couchbase.com/view/mobile/job/centos-syncgateway-functional-tests-RACES/16/consoleFull

2016-01-25 21:33:27,848 - ERROR - fetch_logs - Detected data races in logs: /tmp/functional_tests-test_db_online_offline.py-test_db_delayed_online[CC-1]-2016-01-25-21-33-27-sglogs.zip
2016-01-25 22:12:45,656 - ERROR - fetch_logs - Detected data races in logs: /tmp/functional_tests-test_multiple_dbs.py-test_multiple_db_unique_data_bucket_unique_index_bucket[CC-2]-2016-01-25-22-12-44-sglogs.zip
2016-01-25 22:23:07,529 - ERROR - fetch_logs - Detected data races in logs: /tmp/functional_tests-test_multiple_dbs.py-test_multiple_db_single_data_bucket_single_index_bucket[CC-2]-2016-01-25-22-23-05-sglogs.zip
2016-01-25 23:17:41,789 - ERROR - fetch_logs - Detected data races in logs: /tmp/functional_tests-test_seq.py-test_seq[CC-2]-2016-01-25-23-17-40-sglogs.zip

I will dig into the logs and file tickets for all the ones that look to be unique.

@tleyden
Copy link
Contributor Author

tleyden commented Jan 26, 2016

2016-01-25 21:33:27,848 - ERROR - fetch_logs - Detected data races in logs: /tmp/functional_tests-test_db_online_offline.py-test_db_delayed_online[CC-1]-2016-01-25-21-33-27-sglogs.zip

Filed: couchbase/go-couchbase#72

@tleyden
Copy link
Contributor Author

tleyden commented Jan 26, 2016

2016-01-25 22:12:45,656 - ERROR - fetch_logs - Detected data races in logs: /tmp/functional_tests-test_multiple_dbs.py-test_multiple_db_unique_data_bucket_unique_index_bucket[CC-2]-2016-01-25-22-12-44-sglogs.zip
2016-01-25 22:23:07,529 - ERROR - fetch_logs - Detected data races in logs: /tmp/functional_tests-test_multiple_dbs.py-test_multiple_db_single_data_bucket_single_index_bucket[CC-2]-2016-01-25-22-23-05-sglogs.zip
2016-01-25 23:17:41,789 - ERROR - fetch_logs - Detected data races in logs: /tmp/functional_tests-test_seq.py-test_seq[CC-2]-2016-01-25-23-17-40-sglogs.zip

#1521

@tleyden tleyden closed this as completed Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants