[GODRIVER-2072] Enable data race detector on all Evergreen tests Created: 07/Jul/21  Updated: 24/Jan/23  Resolved: 08/Nov/22

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.12.0, 1.12.0-alpha1

Type: Improvement Priority: Major - P3
Reporter: Matt Dale Assignee: Benji Rewis (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Epic Link: Improve Testing Suite
Quarter: FY23Q4

 Description   

Currently we do not enable the data race detector in most of our tests that run in Evergreen. Enable the data race detector on all tests run in Evergreen to expose any data race errors during tests.

Add the -race flag to all go test commands in the Makefile.

Note that running the data race detector makes the tests run slower (seems to double run time), so we may want to enable it for only certain Evergreen runs.



 Comments   
Comment by Githook User [ 08/Nov/22 ]

Author:

{'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}

Message: GODRIVER-2072 Add race detector Evergreen variant. (#1110)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/e9a0ce1e96e5f431f7d9d47efe2346d635d1a923

Comment by Benji Rewis (Inactive) [ 27/Oct/22 ]

https://github.com/mongodb/mongo-go-driver/pull/1110

Comment by Matt Dale [ 12/Jul/21 ]

Draft PR with example test results:
https://github.com/mongodb/mongo-go-driver/pull/698

Generated at Thu Feb 08 08:37:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.