Skip to content

Commit d937319

Browse files
committed
Merge branch 'master' into cdriver-6045-renegotiation
2 parents 309f082 + f7a39ca commit d937319

File tree

308 files changed

+66875
-4540
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

308 files changed

+66875
-4540
lines changed

.evergreen/config_generator/components/abi_compliance_check.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
from shrub.v3.evg_command import EvgCommandType
2-
from shrub.v3.evg_command import s3_put
1+
from shrub.v3.evg_command import EvgCommandType, s3_put
32
from shrub.v3.evg_task import EvgTask
43

5-
from config_generator.components.funcs.set_cache_dir import SetCacheDir
6-
4+
from config_generator.components.funcs.install_uv import InstallUV
75
from config_generator.etc.function import Function
86
from config_generator.etc.utils import bash_exec
97

108

119
class CheckABICompliance(Function):
1210
name = 'abi-compliance-check'
13-
commands = SetCacheDir.commands + [
11+
commands = [
1412
bash_exec(
1513
command_type=EvgCommandType.SETUP,
1614
working_dir='mongoc',
1715
include_expansions_in_env=['MONGO_C_DRIVER_CACHE_DIR'],
18-
script='.evergreen/scripts/abi-compliance-check-setup.sh'
16+
script='.evergreen/scripts/abi-compliance-check-setup.sh',
1917
),
2018
bash_exec(
2119
command_type=EvgCommandType.TEST,
2220
add_expansions_to_env=True,
2321
working_dir='mongoc',
24-
include_expansions_in_env=['MONGO_C_DRIVER_CACHE_DIR'],
25-
script='.evergreen/scripts/abi-compliance-check.sh'
22+
include_expansions_in_env=['MONGO_C_DRIVER_CACHE_DIR', 'UV_INSTALL_DIR'],
23+
script='.evergreen/scripts/abi-compliance-check.sh',
2624
),
2725
s3_put(
2826
command_type=EvgCommandType.SYSTEM,
@@ -57,6 +55,9 @@ def tasks():
5755
return [
5856
EvgTask(
5957
name=CheckABICompliance.name,
60-
commands=[CheckABICompliance.call()],
58+
commands=[
59+
InstallUV.call(),
60+
CheckABICompliance.call(),
61+
],
6162
)
6263
]

.evergreen/config_generator/components/c_std_compile.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22
from shrub.v3.evg_command import EvgCommandType
33
from shrub.v3.evg_task import EvgTask, EvgTaskRef
44

5-
from config_generator.components.funcs.find_cmake_latest import FindCMakeLatest
6-
7-
from config_generator.etc.distros import find_large_distro
8-
from config_generator.etc.distros import make_distro_str
9-
from config_generator.etc.distros import compiler_to_vars
5+
from config_generator.components.funcs.install_uv import InstallUV
6+
from config_generator.etc.distros import compiler_to_vars, find_large_distro, make_distro_str
107
from config_generator.etc.function import Function
118
from config_generator.etc.utils import bash_exec
129

13-
1410
TAG = 'std-matrix'
1511

1612

@@ -95,10 +91,7 @@ def tasks():
9591
name=task_name,
9692
run_on=distro.name,
9793
tags=tags + [f'std-c{std}'],
98-
commands=[
99-
FindCMakeLatest.call(),
100-
StdCompile.call(vars=compile_vars | with_std)
101-
],
94+
commands=[InstallUV.call(), StdCompile.call(vars=compile_vars | with_std)],
10295
)
10396
)
10497

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
from shrub.v3.evg_build_variant import BuildVariant
22
from shrub.v3.evg_command import EvgCommandType
3-
from shrub.v3.evg_task import EvgTask
4-
from shrub.v3.evg_task import EvgTaskRef
3+
from shrub.v3.evg_task import EvgTask, EvgTaskRef
54

5+
from config_generator.components.funcs.install_uv import InstallUV
66
from config_generator.etc.distros import find_small_distro
77
from config_generator.etc.function import Function
88
from config_generator.etc.utils import bash_exec
99

10-
11-
TAG = "clang-format"
10+
TAG = 'clang-format'
1211

1312

1413
class ClangFormat(Function):
1514
name = TAG
1615
commands = [
1716
bash_exec(
1817
command_type=EvgCommandType.TEST,
19-
working_dir="mongoc",
18+
working_dir='mongoc',
2019
env={
21-
"DRYRUN": "1",
20+
'DRYRUN': '1',
2221
},
23-
script="uv run --frozen --only-group=format tools/format.py --mode=check",
22+
script='PATH="${UV_INSTALL_DIR}:$PATH" uv run --frozen --only-group=format tools/format.py --mode=check',
2423
),
2524
]
2625

@@ -33,7 +32,10 @@ def tasks():
3332
yield EvgTask(
3433
name=TAG,
3534
tags=[TAG],
36-
commands=[ClangFormat.call()],
35+
commands=[
36+
InstallUV.call(),
37+
ClangFormat.call(),
38+
],
3739
)
3840

3941

@@ -42,7 +44,7 @@ def variants():
4244
BuildVariant(
4345
name=TAG,
4446
display_name=TAG,
45-
run_on=[find_small_distro("ubuntu2204").name],
46-
tasks=[EvgTaskRef(name=f".{TAG}")],
47+
run_on=[find_small_distro('ubuntu2204').name],
48+
tasks=[EvgTaskRef(name=f'.{TAG}')],
4749
),
4850
]

.evergreen/config_generator/components/cse/darwinssl.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
from shrub.v3.evg_task import EvgTaskRef
33

44
from config_generator.etc.compile import generate_compile_tasks
5-
65
from config_generator.etc.cse.compile import CompileCommon
76
from config_generator.etc.cse.test import generate_test_tasks
87

9-
108
SSL = 'darwinssl'
119
TAG = f'cse-matrix-{SSL}'
1210

@@ -52,9 +50,7 @@ def tasks():
5250

5351
MORE_TAGS = ['cse']
5452

55-
res += generate_compile_tasks(
56-
SSL, TAG, SASL_TO_FUNC, COMPILE_MATRIX, MORE_TAGS
57-
)
53+
res += generate_compile_tasks(SSL, TAG, SASL_TO_FUNC, COMPILE_MATRIX, MORE_TAGS)
5854

5955
res += generate_test_tasks(SSL, TAG, TEST_MATRIX)
6056

.evergreen/config_generator/components/cse/openssl.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
from shrub.v3.evg_build_variant import BuildVariant
22

33
from config_generator.etc.compile import generate_compile_tasks
4-
from config_generator.etc.function import merge_defns
5-
from config_generator.etc.utils import TaskRef
6-
74
from config_generator.etc.cse.compile import CompileCommon
85
from config_generator.etc.cse.test import generate_test_tasks
9-
6+
from config_generator.etc.function import merge_defns
7+
from config_generator.etc.utils import TaskRef
108

119
SSL = 'openssl'
1210
TAG = f'cse-matrix-{SSL}'
@@ -83,7 +81,7 @@ def tasks():
8381

8482
# PowerPC and zSeries are limited resources.
8583
for task in res:
86-
if any(pattern in task.run_on for pattern in ["power", "zseries"]):
84+
if any(pattern in task.run_on for pattern in ['power', 'zseries']):
8785
task.patchable = False
8886

8987
return res
@@ -98,11 +96,11 @@ def variants():
9896

9997
# PowerPC and zSeries are limited resources.
10098
for task in TASKS:
101-
if any(pattern in task.run_on for pattern in ["power", "zseries"]):
99+
if any(pattern in task.run_on for pattern in ['power', 'zseries']):
102100
tasks.append(
103101
TaskRef(
104102
name=task.name,
105-
batchtime=1440, # 1 day
103+
batchtime=1440, # 1 day
106104
)
107105
)
108106
else:

.evergreen/config_generator/components/cse/winssl.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
from shrub.v3.evg_task import EvgTaskRef
33

44
from config_generator.etc.compile import generate_compile_tasks
5-
65
from config_generator.etc.cse.compile import CompileCommon
76
from config_generator.etc.cse.test import generate_test_tasks
87

9-
108
SSL = 'winssl'
119
TAG = f'cse-matrix-{SSL}'
1210

@@ -50,9 +48,7 @@ def tasks():
5048

5149
MORE_TAGS = ['cse']
5250

53-
res += generate_compile_tasks(
54-
SSL, TAG, SASL_TO_FUNC, COMPILE_MATRIX, MORE_TAGS
55-
)
51+
res += generate_compile_tasks(SSL, TAG, SASL_TO_FUNC, COMPILE_MATRIX, MORE_TAGS)
5652

5753
res += generate_test_tasks(SSL, TAG, TEST_MATRIX)
5854

0 commit comments

Comments
 (0)