Skip to content

Commit 0d7f464

Browse files
authored
chore: add logging to flaky tests (#4513)
1 parent a1fffeb commit 0d7f464

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

test/tools/runner/flaky.ts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import { expect } from 'chai';
2+
3+
import { alphabetically } from '../utils';
4+
15
export const flakyTests = [
6+
'Change Streams should properly handle a changeStream event being processed mid-close when invoked with promises',
27
'Client Side Encryption (Unified) namedKMS-rewrapManyDataKey rewrap to azure:name1',
3-
'Server Discovery and Monitoring Prose Tests Connection Pool Management ensure monitors properly create and unpause connection pools when they discover servers',
4-
'CSOT spec tests legacy timeouts behave correctly for retryable operations operation succeeds after one socket timeout - aggregate on collection',
58
'Client Side Encryption Prose Tests 16. Rewrap Case 1: Rewrap with separate ClientEncryption should rewrap data key from aws to aws',
69
'Client Side Encryption Prose Tests 16. Rewrap Case 1: Rewrap with separate ClientEncryption should rewrap data key from aws to azure',
710
'Client Side Encryption Prose Tests 16. Rewrap Case 1: Rewrap with separate ClientEncryption should rewrap data key from aws to gcp',
@@ -28,12 +31,18 @@ export const flakyTests = [
2831
'Client Side Encryption Prose Tests 16. Rewrap Case 1: Rewrap with separate ClientEncryption should rewrap data key from local to kmip',
2932
'Client Side Encryption Prose Tests 16. Rewrap Case 1: Rewrap with separate ClientEncryption should rewrap data key from local to local',
3033
'Client Side Encryption Prose Tests 16. Rewrap Case 2: RewrapManyDataKeyOpts.provider is not optional when provider field is missing raises an error',
31-
'Transactions Convenient API Spec Unified Tests transaction-options withTransaction inherits transaction options from defaultTransactionOptions',
34+
'CSOT spec tests legacy timeouts behave correctly for retryable operations operation fails after two consecutive socket timeouts - aggregate on collection',
35+
'CSOT spec tests legacy timeouts behave correctly for retryable operations operation succeeds after one socket timeout - aggregate on collection',
36+
'CSOT spec tests operations ignore deprecated timeout options if timeoutMS is set socketTimeoutMS is ignored if timeoutMS is set - dropIndex on collection',
37+
'CSOT spec tests runCursorCommand Non-tailable cursor lifetime remaining timeoutMS applied to getMore if timeoutMode is unset',
3238
'CSOT spec tests timeoutMS behaves correctly for GridFS download operations timeoutMS applied to entire download, not individual parts',
33-
'Retryable Writes (unified) retryable writes handshake failures collection.updateOne succeeds after retryable handshake network error',
3439
'Retryable Reads (unified) retryable reads handshake failures collection.aggregate succeeds after retryable handshake network error',
35-
'CSOT spec tests legacy timeouts behave correctly for retryable operations operation fails after two consecutive socket timeouts - aggregate on collection',
40+
'Retryable Writes (unified) retryable writes handshake failures collection.updateOne succeeds after retryable handshake network error',
3641
'Server Discovery and Monitoring Prose Tests Connection Pool Management ensure monitors properly create and unpause connection pools when they discover servers',
37-
'CSOT spec tests legacy timeouts behave correctly for retryable operations operation succeeds after one socket timeout - aggregate on collection',
38-
'CSOT spec tests operations ignore deprecated timeout options if timeoutMS is set socketTimeoutMS is ignored if timeoutMS is set - dropIndex on collection'
42+
'Transactions Convenient API Spec Unified Tests transaction-options withTransaction inherits transaction options from defaultTransactionOptions'
3943
];
44+
45+
expect(flakyTests, 'expected list to be alphabetized').to.deep.equal(
46+
[...flakyTests].sort(alphabetically)
47+
);
48+
expect(flakyTests, 'expected to have no duplicates').to.have.lengthOf(new Set(flakyTests).size);

0 commit comments

Comments
 (0)