Skip to content

Commit 5f6fd28

Browse files
authored
DRIVERS-3021 Skip tests with errorCodeName on Serverless (#1680)
Skip tests on Atlas Serverless that expect a `codeName` from an error caused by a failpoint. Serverless may set an empty `codeName` due to CLOUDP-280424
1 parent 9ad41a1 commit 5f6fd28

File tree

6 files changed

+42
-2
lines changed

6 files changed

+42
-2
lines changed

source/transactions-convenient-api/tests/unified/commit-retry.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,11 @@
422422
},
423423
{
424424
"description": "commit is not retried after MaxTimeMSExpired error",
425+
"runOnRequirements": [
426+
{
427+
"serverless": "forbid"
428+
}
429+
],
425430
"operations": [
426431
{
427432
"name": "failPoint",

source/transactions-convenient-api/tests/unified/commit-retry.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ tests:
212212
- { _id: 1 }
213213
-
214214
description: commit is not retried after MaxTimeMSExpired error
215+
runOnRequirements:
216+
# Serverless sets empty `codeName` on failpoint errors. Remove once CLOUDP-280424 is fixed.
217+
- serverless: forbid
215218
operations:
216219
- name: failPoint
217220
object: testRunner

source/transactions-convenient-api/tests/unified/commit-writeconcernerror.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"description": "commit-writeconcernerror",
3-
"schemaVersion": "1.3",
3+
"schemaVersion": "1.4",
44
"runOnRequirements": [
55
{
66
"minServerVersion": "4.0",
@@ -414,6 +414,11 @@
414414
},
415415
{
416416
"description": "commitTransaction is not retried after UnknownReplWriteConcern error",
417+
"runOnRequirements": [
418+
{
419+
"serverless": "forbid"
420+
}
421+
],
417422
"operations": [
418423
{
419424
"name": "failPoint",
@@ -546,6 +551,11 @@
546551
},
547552
{
548553
"description": "commitTransaction is not retried after UnsatisfiableWriteConcern error",
554+
"runOnRequirements": [
555+
{
556+
"serverless": "forbid"
557+
}
558+
],
549559
"operations": [
550560
{
551561
"name": "failPoint",
@@ -678,6 +688,11 @@
678688
},
679689
{
680690
"description": "commitTransaction is not retried after MaxTimeMSExpired error",
691+
"runOnRequirements": [
692+
{
693+
"serverless": "forbid"
694+
}
695+
],
681696
"operations": [
682697
{
683698
"name": "failPoint",

source/transactions-convenient-api/tests/unified/commit-writeconcernerror.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
description: commit-writeconcernerror
22

3-
schemaVersion: '1.3'
3+
schemaVersion: '1.4' # For `serverless` in `runOnRequirements`
44

55
runOnRequirements:
66
- minServerVersion: '4.0'
@@ -151,6 +151,9 @@ tests:
151151
outcome: *outcome
152152
-
153153
description: commitTransaction is not retried after UnknownReplWriteConcern error
154+
runOnRequirements:
155+
# Serverless sets empty `codeName` on failpoint errors. Remove once CLOUDP-280424 is fixed.
156+
- serverless: forbid
154157
operations:
155158
- name: failPoint
156159
object: testRunner
@@ -203,6 +206,9 @@ tests:
203206
outcome: *outcome
204207
-
205208
description: commitTransaction is not retried after UnsatisfiableWriteConcern error
209+
runOnRequirements:
210+
# Serverless sets empty `codeName` on failpoint errors. Remove once CLOUDP-280424 is fixed.
211+
- serverless: forbid
206212
operations:
207213
- name: failPoint
208214
object: testRunner
@@ -226,6 +232,9 @@ tests:
226232
outcome: *outcome
227233
-
228234
description: commitTransaction is not retried after MaxTimeMSExpired error
235+
runOnRequirements:
236+
# Serverless sets empty `codeName` on failpoint errors. Remove once CLOUDP-280424 is fixed.
237+
- serverless: forbid
229238
operations:
230239
- name: failPoint
231240
object: testRunner

source/transactions/tests/unified/retryable-commit.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/transactions/tests/unified/retryable-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ initialData:
6767
tests:
6868
-
6969
description: 'commitTransaction fails after Interrupted'
70+
runOnRequirements:
71+
# Serverless sets empty `codeName` on failpoint errors. Remove once CLOUDP-280424 is fixed.
72+
- serverless: forbid
7073
operations:
7174
-
7275
object: testRunner

0 commit comments

Comments
 (0)