[CXX-2054] Run full test suite on Windows 2017+ Created: 17/Jun/20  Updated: 27/Oct/23  Resolved: 18/Jun/20

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CXX-2042 Add MongoDB 4.4 test tasks to evergreen Closed
is related to CXX-2055 Set /EHsc when building on Visual Studio Closed

 Description   

The "Windows (VS 2017) Debug (MongoDB Latest)" variant only runs the tasks:

  • compile_with_shared_libs
  • compile_and_test_auth_with_shared_libs

The auth tests only test connecting to a server with auth. This does not run any of the test runners. When attempting to add compile_and_test_with_shared_libs, I observed errors coming from the mock class. Example failure with logs:

 [2020/06/17 16:32:42.771]   -------------------------------------------------------------------------------
 [2020/06/17 16:32:42.771]   Collection
 [2020/06/17 16:32:42.771]     Writes
 [2020/06/17 16:32:42.771]     Insert One Error
 [2020/06/17 16:32:42.771]   -------------------------------------------------------------------------------
 [2020/06/17 16:32:42.771]   c:\data\mci\4492ed48d554efd5b54f2725316acd16\mongo-cxx-driver\src\mongocxx\test\collection_mocked.cpp(638)
 [2020/06/17 16:32:42.771]   ...............................................................................
 [2020/06/17 16:32:42.771]   c:\data\mci\4492ed48d554efd5b54f2725316acd16\mongo-cxx-driver\src\mongocxx\test\collection_mocked.cpp(481): FAILED:
 [2020/06/17 16:32:42.771]     REQUIRE( bulk_operation_destroy_called )
 [2020/06/17 16:32:42.771]   with expansion:
 [2020/06/17 16:32:42.771]     false
 [2020/06/17 16:32:42.771]   Assertion failed: !current, file c:\data\mci\4492ed48d554efd5b54f2725316acd16\mongo-cxx-driver\src\mongocxx\test_util\mock.hh, line 172

Though the Windows (VS 2015) variants do run the test tasks without issue.



 Comments   
Comment by Githook User [ 30/Jun/20 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CXX-2042 Add 4.4 tasks to evergreen

Comment by Kevin Albertson [ 18/Jun/20 ]

This is resolved by CXX-2042. The issue appears to be due to stack unwinding behavior in VS 2017, and was fixed by compiling with /EHsc. I created CXX-2055 to investigate whether this is an option users should be passing, an option we should enable by default, or if this is an issue limited to tests.

Generated at Wed Feb 07 22:04:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.