mongo/jstests/suites/README.md
Steve McClure 32e8f260de SERVER-124136 Format markdown via prettier: wrap lines and use width of 100 (#52231)
GitOrigin-RevId: 3305c1e2ee3a6a2c3a5b2b7883b0f491a59ed646
2026-04-21 19:20:11 +00:00

3.6 KiB

Resmoke suite test targets

Bazel test targets for resmoke suites.

For documentation of the resmoke_suite_test rule, see bazel/resmoke/README.md.

Configuring

In addition to attributes for resmoke_suite_test, the following are options for configuring test targets.

tags

Arbitrary tags may also be added to group test targets for batch execution. For example, a custom tag lets you run all matching suites at once:

bazel test //jstests/suites/... --test_tag_filters=my_tag

The following tags have special meaning:

Tag Purpose Example
resources:cpu:N Allocate multiple CPUs for the test. By default, all tests get 1 CPU. tags = ["resources:cpu:2"],
ci- tags Configure priority of the task in CI.
Setting one of these enables the test to run in CI. See task_selection_tags.md for the semantics of each.

One of
ci-default
ci-release-critical
ci-development-critical
ci-development-critical-single-variant
tags = ["ci-default"]
incompatible_with_bazel_remote_test Exclude the test from Bazel remote execution environments (e.g. remote CI executors). Use this when a test relies on resources or environment characteristics that are unavailable on remote executors. tags = ["incompatible_with_bazel_remote_test"], # Requires openssl, which is missing on remote executors.

target_compatible_with

Configure platforms/build options that the test is compatible with. Use this to exclude the test suite from platforms in CI.

Example — exclude the test on PPC/S390x, MacOS, and TSAN builds:

target_compatible_with = select({
    "@platforms//cpu:ppc64le": ["@platforms//:incompatible"],
    "@platforms//cpu:s390x": ["@platforms//:incompatible"],
    "@platforms//os:macos": ["@platforms//:incompatible"],
    "//bazel/config:tsan_enabled": ["@platforms//:incompatible"],
    "//conditions:default": [], # Otherwise, the test is compatible and can be run.
})