Skip to content

Commit 90fc5c8

Browse files
ryanberryhillMongoDB Bot
authored and
MongoDB Bot
committed
SERVER-100188 Run smoke tests with all feature flags enabled (#32346)
GitOrigin-RevId: 747f90b990c83f02024903f77728e4a9c83226ba
1 parent f096a68 commit 90fc5c8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

buildscripts/evergreen_gen_smoke_test_tasks.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
RANDOM_STRING_LENGTH = 5
2020

2121

22-
def make_smoke_test_task(suite: str, tests: list[str], compile_variant: str) -> Task:
22+
def make_smoke_test_task(suite: str, tests: set[str], compile_variant: str) -> Task:
23+
resmoke_args = ["--runAllFeatureFlagTests"] + list(tests)
2324
commands = [
2425
FunctionCall("do setup"),
25-
FunctionCall("run tests", {"suite": suite, "resmoke_args": shlex.join(tests)}),
26+
FunctionCall("run tests", {"suite": suite, "resmoke_args": shlex.join(resmoke_args)}),
2627
]
2728
dependencies = {TaskDependency("archive_dist_test", compile_variant)}
2829
# random string so we do not define the same task name for multiple variants which causes issues

buildscripts/run_smoke_tests.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,17 @@ def main(
143143
) -> None:
144144
"""
145145
Run the given smoke test suite via a series of `resmoke.py run` commands.
146-
All arguments not interpreted by this script are passed through to resmoke.
146+
All arguments not interpreted by this script are passed through to resmoke, preceded by
147+
the --runAllFeatureFlagTests option, which this script always passes.
147148
Typical usage to run a "full" smoke test suite, including both C++ unit tests and jstests,
148149
involves a bazel or ninja command to run the C++ portion followed by a run of this script
149150
to execute the jstest portion.
150151
"""
151152

152153
configure_logging(verbose)
153154

154-
passthrough_resmoke_args = ctx.args
155+
default_resmoke_args = ["--runAllFeatureFlagTests"]
156+
passthrough_resmoke_args = default_resmoke_args + ctx.args
155157
parser.set_run_options(shlex.join(passthrough_resmoke_args))
156158

157159
suite_names_or_paths = None if suites_str is None else suites_str.split(",")

0 commit comments

Comments
 (0)