[CDRIVER-3465] Test 3.6 drivers against 4.2 servers Created: 17/Dec/19  Updated: 10/Feb/20  Resolved: 10/Feb/20

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

Type: Task Priority: Major - P3
Reporter: PM Bot Assignee: Kevin Albertson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-788 Test 3.6 drivers against 4.2 servers Closed
Related
is related to CDRIVER-2962 Test 3.6 drivers against 4.0 servers Closed
Epic Link: C 4.4 Support

 Description   

See DRIVERS-788 for details.



 Comments   
Comment by Kevin Albertson [ 10/Feb/20 ]

Tests passed against a replica set running MongoDB 3.6.15.

For future reference:
1. Build the archived libbson (back before it was merged with libmongoc).

    git clone https://github.com/mongodb/libbson.git
    cd libbson
    mkdir cmake-build
    cmake -DCMAKE_INSTALL_PREFIX=/Users/kevinalbertson/libbson-install ..
    make install

2. Build libmongoc from the r1.9 branch

    git clone -b r1.9 https://github.com/mongodb/mongo-c-driver.git
    cd mongo-c-driver
    mkdir cmake-build
    cmake -DCMAKE_PREFIX_PATH=/Users/kevinalbertson/libbson-install ..
    make test-libmongoc

3. Run a mongodb replica set. Using mtools:

    mlaunch init --replicaset --nodes=2 --name=rs0 --priority --binarypath bin-3.6 --hostname localhost --enableMajorityReadConcern --setParameter enableTestCommands=1  --dir replicaset

4. Run test-libmongoc

    ./cmake-build/test-libmongoc

Comment by Kevin Albertson [ 31/Jan/20 ]

Ideally, let's try to get a successful patch build on evergreen to test all platforms and all variations of libmongoc/libbson. This might require including some test fixes in the patch. If that ends up taking longer than expected, then we could consider running tests manually.

Generated at Wed Feb 07 21:18:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.