[CDRIVER-4062] Load balancer: Add test tasks to evergreen Created: 07/Jul/21  Updated: 28/Oct/23  Resolved: 12/Aug/21

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

Type: Improvement Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to PHPC-1978 Expose libmongoc service ID mocking v... Closed
related to CDRIVER-3790 Specify error label in retryable writ... Closed
related to CDRIVER-3889 Implement change stream oplog parsing... Closed
Epic Link: Load Balancer Support
Quarter: FY22Q2

 Description   

Scope
Add new Evergreen tasks for testing against load balanced deployments, as described in the test README.

In addition to running the new unified tests, this should run the C driver specific tests in test-mongoc-loadbalancer.c under the test namespace "/loadbalanced/*".



 Comments   
Comment by Githook User [ 12/Aug/21 ]

Author:

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

Message: CDRIVER-4062 test load balancer on evg (#837)

Add tasks to the Evergreen configuration based to test against a loadbalanced cluster.

  • Tests with auth+SSL and with no auth+SSL on both server version 5.0 and latest.
  • Runs tests against: new load balanced tests, all unified tests, retryable reads, retryable writes, change streams, and the C driver specific /loadbalanced/* tests.

Update test-libmongoc to support testing against a load balancer.

  • Support the environment variable MONGOC_TEST_LOADBALANCED to enable testing against load balancers in test-libmongoc.
    Support the environment variables SINGLE_MONGOS_LB_URI, MULTI_MONGOS_LB_URI to set URIs for test clients.
  • Mock the serviceId when MONGOC_TEST_LOADBALANCED is true.
  • Support multiple occurrences of the -l flag in test-libmongoc and alias the flag as --match.
  • Remove unnecessary constraint of retryable writes tests for replica sets.

CDRIVER-4060 add remaining support to the unified test runner for the new loadbalancer spec tests.

Comment by Kevin Albertson [ 04/Aug/21 ]

PR: https://github.com/mongodb/mongo-c-driver/pull/837

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