Skip to content

Commit 91d0016

Browse files
committed
CDRIVER-3708 skip two tests on latest auth replset
Until SERVER-48715 is resolved, skip tests with auth against a >4.4 replica set that rely on arbiters being discovered. Also skips the DNS auth test failures described in CDRIVER-3709.
1 parent 52b09eb commit 91d0016

File tree

6 files changed

+49
-71
lines changed

6 files changed

+49
-71
lines changed

.evergreen/config.yml

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -13464,63 +13464,6 @@ tasks:
1346413464
AUTH: noauth
1346513465
DNS: 'on'
1346613466
SSL: ssl
13467-
- name: test-dns-auth-openssl
13468-
depends_on:
13469-
name: debug-compile-sasl-openssl
13470-
commands:
13471-
- func: fetch build
13472-
vars:
13473-
BUILD_NAME: debug-compile-sasl-openssl
13474-
- func: bootstrap mongo-orchestration
13475-
vars:
13476-
AUTH: auth
13477-
SSL: ssl
13478-
TOPOLOGY: replica_set
13479-
VERSION: latest
13480-
AUTHSOURCE: thisDB
13481-
- func: run tests
13482-
vars:
13483-
AUTH: auth
13484-
DNS: dns-auth
13485-
SSL: ssl
13486-
- name: test-dns-auth-winssl
13487-
depends_on:
13488-
name: debug-compile-sspi-winssl
13489-
commands:
13490-
- func: fetch build
13491-
vars:
13492-
BUILD_NAME: debug-compile-sspi-winssl
13493-
- func: bootstrap mongo-orchestration
13494-
vars:
13495-
AUTH: auth
13496-
SSL: ssl
13497-
TOPOLOGY: replica_set
13498-
VERSION: latest
13499-
AUTHSOURCE: thisDB
13500-
- func: run tests
13501-
vars:
13502-
AUTH: auth
13503-
DNS: dns-auth
13504-
SSL: ssl
13505-
- name: test-dns-auth-darwinssl
13506-
depends_on:
13507-
name: debug-compile-sasl-darwinssl
13508-
commands:
13509-
- func: fetch build
13510-
vars:
13511-
BUILD_NAME: debug-compile-sasl-darwinssl
13512-
- func: bootstrap mongo-orchestration
13513-
vars:
13514-
AUTH: auth
13515-
SSL: ssl
13516-
TOPOLOGY: replica_set
13517-
VERSION: latest
13518-
AUTHSOURCE: thisDB
13519-
- func: run tests
13520-
vars:
13521-
AUTH: auth
13522-
DNS: dns-auth
13523-
SSL: ssl
1352413467
- name: test-latest-server-compression-zlib
1352513468
tags:
1352613469
- compression
@@ -16776,7 +16719,6 @@ buildvariants:
1677616719
- .4.2 .openssl !.nosasl .server
1677716720
- .4.0 .openssl !.nosasl .server
1677816721
- test-dns-openssl
16779-
- test-dns-auth-openssl
1678016722
- name: darwin
1678116723
display_name: '*Darwin, macOS (Apple LLVM)'
1678216724
expansions:
@@ -16803,7 +16745,6 @@ buildvariants:
1680316745
- .3.2 .darwinssl !.nosasl .server
1680416746
- .3.2 .nossl
1680516747
- test-dns-darwinssl
16806-
- test-dns-auth-darwinssl
1680716748
- debug-compile-lto
1680816749
- debug-compile-lto-thin
1680916750
- debug-compile-aws
@@ -16838,7 +16779,6 @@ buildvariants:
1683816779
- .nosasl .latest .nossl
1683916780
- .sspi .latest
1684016781
- test-dns-winssl
16841-
- test-dns-auth-winssl
1684216782
- debug-compile-aws
1684316783
- test-aws-openssl-regular-4.4
1684416784
- test-aws-openssl-regular-latest

build/evergreen_config_lib/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,8 @@ def _check_allowed(self):
573573

574574

575575
class DNSTask(MatrixTask):
576-
axes = OD([('auth', [False, True]),
576+
# TODO: CDRIVER-3708, change [False] back to [False, True] to test with auth again.
577+
axes = OD([('auth', [False]),
577578
('ssl', ['openssl', 'winssl', 'darwinssl'])])
578579

579580
name_prefix = 'test-dns'

build/evergreen_config_lib/variants.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,9 @@ def days(n):
290290
'retry-true-latest-server',
291291
'.4.2 .openssl !.nosasl .server',
292292
'.4.0 .openssl !.nosasl .server',
293-
'test-dns-openssl',
294-
'test-dns-auth-openssl'],
293+
'test-dns-openssl'
294+
# 'test-dns-auth-openssl' TODO CDRIVER-3708 add this back
295+
],
295296
{'CC': 'gcc'}),
296297
Variant('darwin',
297298
'*Darwin, macOS (Apple LLVM)',
@@ -317,7 +318,7 @@ def days(n):
317318
'.3.2 .darwinssl !.nosasl .server',
318319
'.3.2 .nossl',
319320
'test-dns-darwinssl',
320-
'test-dns-auth-darwinssl',
321+
# 'test-dns-auth-darwinssl', TODO CDRIVER-3708 add this back
321322
'debug-compile-lto',
322323
'debug-compile-lto-thin',
323324
'debug-compile-aws',
@@ -350,7 +351,7 @@ def days(n):
350351
'.nosasl .latest .nossl',
351352
'.sspi .latest',
352353
'test-dns-winssl',
353-
'test-dns-auth-winssl',
354+
# 'test-dns-auth-winssl', TODO CDRIVER-3708 add this back
354355
'debug-compile-aws',
355356
'test-aws-openssl-regular-4.4',
356357
'test-aws-openssl-regular-latest'

src/libmongoc/tests/test-libmongoc.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,6 +2400,20 @@ test_framework_skip_if_time_sensitive (void)
24002400
#endif
24012401
}
24022402

2403+
int
2404+
test_framework_skip_due_to_cdriver3708 (void)
2405+
{
2406+
if (0 == test_framework_skip_if_auth () &&
2407+
0 == test_framework_skip_if_replset () &&
2408+
test_framework_get_server_version () >
2409+
test_framework_str_to_version ("4.4.0")) {
2410+
/* If auth is enabled, we're using a replica set, and using a > 4.4
2411+
* server, skip test. */
2412+
return 0;
2413+
}
2414+
return 1;
2415+
}
2416+
24032417
static char MONGOC_TEST_UNIQUE[32];
24042418

24052419
#if defined(_MSC_VER) && defined(_WIN64)

src/libmongoc/tests/test-libmongoc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,7 @@ test_framework_skip_if_no_aws (void);
219219
int
220220
test_framework_skip_if_no_setenv (void);
221221

222+
int
223+
test_framework_skip_due_to_cdriver3708 (void);
224+
222225
#endif

src/libmongoc/tests/test-mongoc-client.c

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,20 +2411,18 @@ test_mongoc_client_get_description_pooled (void)
24112411
_test_mongoc_client_get_description (true);
24122412
}
24132413

2414-
24152414
static void
2416-
test_mongoc_client_descriptions (void)
2415+
test_mongoc_client_descriptions_single (void)
24172416
{
24182417
mongoc_client_t *client;
2419-
mongoc_client_pool_t *pool;
24202418
mongoc_server_description_t **sds;
24212419
size_t n, expected_n;
24222420
bson_error_t error;
24232421
bool r;
24242422
bson_t *ping = tmp_bson ("{'ping': 1}");
2425-
int64_t start;
24262423

24272424
expected_n = test_framework_server_count ();
2425+
n = 0;
24282426

24292427
/*
24302428
* single-threaded
@@ -2444,6 +2442,19 @@ test_mongoc_client_descriptions (void)
24442442

24452443
mongoc_server_descriptions_destroy_all (sds, n);
24462444
mongoc_client_destroy (client);
2445+
}
2446+
2447+
static void
2448+
test_mongoc_client_descriptions_pooled (void *unused)
2449+
{
2450+
mongoc_client_t *client;
2451+
mongoc_client_pool_t *pool;
2452+
mongoc_server_description_t **sds;
2453+
size_t n, expected_n;
2454+
int64_t start;
2455+
2456+
expected_n = test_framework_server_count ();
2457+
n = 0;
24472458

24482459
/*
24492460
* pooled
@@ -3969,8 +3980,16 @@ test_client_install (TestSuite *suite)
39693980
TestSuite_AddLive (suite,
39703981
"/Client/get_description/pooled",
39713982
test_mongoc_client_get_description_pooled);
3972-
TestSuite_AddLive (
3973-
suite, "/Client/descriptions", test_mongoc_client_descriptions);
3983+
TestSuite_AddLive (suite,
3984+
"/Client/descriptions/single",
3985+
test_mongoc_client_descriptions_single);
3986+
TestSuite_AddFull (suite,
3987+
"/Client/descriptions/pooled",
3988+
test_mongoc_client_descriptions_pooled,
3989+
NULL,
3990+
NULL,
3991+
TestSuite_CheckLive,
3992+
test_framework_skip_due_to_cdriver3708);
39743993
TestSuite_AddLive (suite,
39753994
"/Client/select_server/single",
39763995
test_mongoc_client_select_server_single);

0 commit comments

Comments
 (0)