File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,9 @@ functions:
435
435
if [ -n "${TEST_INDEX_MANAGEMENT}" ]; then
436
436
export TEST_INDEX_MANAGEMENT=1
437
437
fi
438
+ if [ -n "${SKIP_CSOT_TESTS}" ]; then
439
+ export SKIP_CSOT_TESTS=1
440
+ fi
438
441
439
442
GREEN_FRAMEWORK=${GREEN_FRAMEWORK} \
440
443
PYTHON_BINARY=${PYTHON_BINARY} \
@@ -2072,13 +2075,17 @@ axes:
2072
2075
skip_EC2_auth_test : true
2073
2076
skip_ECS_auth_test : true
2074
2077
skip_web_identity_auth_test : true
2078
+ # CSOT tests are unreliable on our slow macOS hosts.
2079
+ SKIP_CSOT_TESTS : true
2075
2080
- id : macos-arm64
2076
2081
display_name : " macOS Arm64"
2077
2082
run_on : macos-14-arm64
2078
2083
variables :
2079
2084
skip_EC2_auth_test : true
2080
2085
skip_ECS_auth_test : true
2081
2086
skip_web_identity_auth_test : true
2087
+ # CSOT tests are unreliable on our slow macOS hosts.
2088
+ SKIP_CSOT_TESTS : true
2082
2089
- id : rhel7
2083
2090
display_name : " RHEL 7.x"
2084
2091
run_on : rhel79-small
@@ -2121,6 +2128,8 @@ axes:
2121
2128
skip_EC2_auth_test : true
2122
2129
skip_web_identity_auth_test : true
2123
2130
venv_bin_dir : " Scripts"
2131
+ # CSOT tests are unreliable on our slow Windows hosts.
2132
+ SKIP_CSOT_TESTS : true
2124
2133
2125
2134
# Test with authentication?
2126
2135
- id : auth
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ def test_timeout_nested(self):
77
77
@client_context .require_change_streams
78
78
def test_change_stream_can_resume_after_timeouts (self ):
79
79
coll = self .db .test
80
+ coll .insert_one ({})
80
81
with coll .watch () as stream :
81
82
with pymongo .timeout (0.1 ):
82
83
with self .assertRaises (PyMongoError ) as ctx :
Original file line number Diff line number Diff line change 145
145
from pymongo .typings import _Address
146
146
from pymongo .write_concern import WriteConcern
147
147
148
+ SKIP_CSOT_TESTS = os .getenv ("SKIP_CSOT_TESTS" )
149
+
148
150
JSON_OPTS = json_util .JSONOptions (tz_aware = False )
149
151
150
152
IS_INTERRUPTED = False
@@ -1953,6 +1955,9 @@ def verify_outcome(self, spec):
1953
1955
self .assertListEqual (sorted_expected_documents , actual_documents )
1954
1956
1955
1957
def run_scenario (self , spec , uri = None ):
1958
+ if "csot" in self .id ().lower () and SKIP_CSOT_TESTS :
1959
+ raise unittest .SkipTest ("SKIP_CSOT_TESTS is set, skipping..." )
1960
+
1956
1961
# Kill all sessions before and after each test to prevent an open
1957
1962
# transaction (from a test failure) from blocking collection/database
1958
1963
# operations during test set up and tear down.
You can’t perform that action at this time.
0 commit comments