Skip to content

Commit d54756e

Browse files
committed
Fix server selection logging
1 parent f2ded85 commit d54756e

File tree

4 files changed

+33
-3
lines changed

4 files changed

+33
-3
lines changed

.evergreen/scripts/resync-all-specs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ def resync_specs(directory: pathlib.Path, errored: dict[str, str]) -> None:
3333
def apply_patches():
3434
print("Beginning to apply patches") # noqa: T201
3535
subprocess.run(["bash", "./.evergreen/remove-unimplemented-tests.sh"], check=True) # noqa: S603, S607
36-
subprocess.run(["git apply -R --allow-empty ./.evergreen/spec-patch/*"], shell=True, check=True) # noqa: S602, S607
36+
subprocess.run(
37+
["git apply -R --allow-empty --ignore-whitespace ./.evergreen/spec-patch/*"], # noqa: S607
38+
shell=True, # noqa: S602
39+
check=True,
40+
)
3741

3842

3943
def check_new_spec_directories(directory: pathlib.Path) -> list[str]:

.evergreen/spec-patch/PYTHON-4261.patch

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,29 @@ index 830b1ea51..5eba784bf 100644
1111
"component": "serverSelection",
1212
"data": {
1313
"message": "Waiting for suitable server to become available",
14+
diff --git a/test/server_selection_logging/standalone.json b/test/server_selection_logging/standalone.json
15+
index 830b1ea51..5eba784bf 100644
16+
--- a/test/server_selection_logging/standalone.json
17+
+++ b/test/server_selection_logging/standalone.json
18+
@@ -191,7 +191,7 @@
19+
}
20+
},
21+
{
22+
- "level": "debug",
23+
+ "level": "info",
24+
"component": "serverSelection",
25+
"data": {
26+
"message": "Waiting for suitable server to become available",
27+
diff --git a/test/server_selection_logging/sharded.json b/test/server_selection_logging/sharded.json
28+
index 830b1ea51..5eba784bf 100644
29+
--- a/test/server_selection_logging/sharded.json
30+
+++ b/test/server_selection_logging/sharded.json
31+
@@ -193,7 +193,7 @@
32+
}
33+
},
34+
{
35+
- "level": "debug",
36+
+ "level": "info",
37+
"component": "serverSelection",
38+
"data": {
39+
"message": "Waiting for suitable server to become available",

test/server_selection_logging/sharded.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
}
194194
},
195195
{
196-
"level": "info",
196+
"level": "debug",
197197
"component": "serverSelection",
198198
"data": {
199199
"message": "Waiting for suitable server to become available",

test/server_selection_logging/standalone.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
}
192192
},
193193
{
194-
"level": "info",
194+
"level": "debug",
195195
"component": "serverSelection",
196196
"data": {
197197
"message": "Waiting for suitable server to become available",

0 commit comments

Comments
 (0)