mongo/buildscripts/smoke_tests
henrikedin beca4ba8b2 SERVER-111292 Reenable validation for geo indexes (#44340)
GitOrigin-RevId: b47900b2576d1ebe47c3d80dedf4f01304ba479f
2025-11-25 19:37:04 +00:00
..
BUILD.bazel SERVER-100631 Add ruff into "bazel run lint" (#32166) 2025-06-11 14:11:11 +00:00
OWNERS.yml SERVER-105460 Remove server-rss-sydney codeowners (#36494) 2025-05-27 23:43:47 +00:00
README.md SERVER-105669 Create team-wide smoke test suite target for storage-execution (#36754) 2025-06-02 18:43:04 +00:00
catalog_and_routing.yml SERVER-100135 Refactor the list_collection.js test to make it runnable against Sharded Clusters (#32185) 2025-04-09 20:07:12 +00:00
replication.yml SERVER-103116: add smoke test script tests (#34264) 2025-05-07 13:10:40 +00:00
server_collection_write_path.yml SERVER-104715 Update tests in component suite tests to reflect output of buildbaron (#35810) 2025-05-07 21:52:34 +00:00
server_index_builds.yml SERVER-104715 Update tests in component suite tests to reflect output of buildbaron (#35810) 2025-05-07 21:52:34 +00:00
server_integration.yml SERVER-111292 Reenable validation for geo indexes (#44340) 2025-11-25 19:37:04 +00:00
server_integration_backup.yml SERVER-105460 Remove server-rss-sydney codeowners (#36494) 2025-05-27 23:43:47 +00:00
server_programmability.yml SERVER-72901 Move remaining top-level core jstests to subdirectories (#30813) 2025-04-09 20:11:18 +00:00
server_storage_engine_integration.yml SERVER-104533 Create smoke test suites for individual components, write README, update team-wide smoke test suite (#35638) 2025-05-02 19:45:06 +00:00
server_ttl.yml SERVER-104715 Update tests in component suite tests to reflect output of buildbaron (#35810) 2025-05-07 21:52:34 +00:00
smoke_tests.py SERVER-107464 Remove pylinters (#38447) 2025-07-14 14:30:17 +00:00
storage_execution.yml SERVER-105669 Create team-wide smoke test suite target for storage-execution (#36754) 2025-06-02 18:43:04 +00:00

README.md

Smoke Test Suites

Smoke test suites are suites that are meant to be run locally during iterative development as a way to get a decent sense of whether a change to a given component has not broken the core functionality of that component. They are not meant to replace running a patch build before merging in a change, but are a way to get relatively quick feedback locally.

Available Smoke Test Suites

Below is information about the smoke test suites available for each team and how to run them. More information can be found in the respective .yml files for each team/component within this directory.

Catalog And Routing

The integration tests for the smoke test suite can be run with the following command:

python buildscripts/run_smoke_tests.py --suites=catalog_and_routing

Server Integration

The integration tests for the smoke test suite can be run with the following command:

bazel build install-devcore && python buildscripts/run_smoke_tests.py --suites=server_integration

This should be run in conjunction with the unit tests, which can be run with the following:

bazel test --test_tag_filters=server-integration-smoke //...

Replication

The integration tests for the smoke test suite can be run with the following command:

bazel build install-dist-test && python buildscripts/run_smoke_tests.py --suites=replication

This should be run in conjunction with the unit tests, which can be run with the following:

bazel test --test_output=summary //src/mongo/db/repl/...

Server Programmability

Running the unit tests and integration tests together can be accomplished with the following:

bazel test --test_tag_filters=server-programmability //...
bazel build install-devcore && python buildscripts/run_smoke_tests.py --suites=server_programmability

Storage Execution

The smoke test suites for storage execution are divided up into components. The smoke test suite for all of the components that storage execution owns can be run with the following:

bazel test --test_tag_filters=server-bsoncolumn,server-collection-write-path,server-external-sorter,server-index-builds,server-key-string,server-storage-engine-integration,server-timeseries-bucket-catalog,server-tracking-allocators,server-ttl //src/mongo/...
bazel build install-dist-test && python buildscripts/run_smoke_tests.py --suites=storage_execution

The individual components owned by storage execution are as follows:

Server-BSONColumn

The unit tests for the server-bsoncolumn component can be run with the following:

bazel test --test_tag_filters=server-bsoncolumn --test_output=summary //src/mongo/...

There are currently no smoke test integration tests for this component.

Server-Collection-Write-Path

The unit and integration tests for the server-collection-write-path component can be run with the following:

bazel test --test_tag_filters=server-collection-write-path --test_output=summary //src/mongo/...
bazel build install-dist-test && python buildscripts/run_smoke_tests.py --suites=server_collection_write_path

Server-External-Sorter

The unit tests for the server-external-sorter component can be run with the following:

bazel test --test_tag_filters=server-external-sorter --test_output=summary //src/mongo/...

There are currently no smoke test integration tests for this component.

Server-Index-Builds

The unit and integration tests for the server-index-builds component can be run with the following:

bazel test --test_tag_filters=server-index-builds --test_output=summary //src/mongo/...
bazel build install-dist-test && python buildscripts/run_smoke_tests.py --suites=server_index_builds

Server-Key-String

The unit tests for the server-key-string component can be run with the following:

bazel test --test_tag_filters=server-key-string --test_output=summary //src/mongo/...

There are currently no smoke test integration tests for this component.

Server-Storage-Engine-Integration

The unit and integration tests for the server-storage-engine-integration component can be run with the following:

bazel test --test_tag_filters=server-storage-engine-integration --test_output=summary //src/mongo/...
bazel build install-dist-test && python buildscripts/run_smoke_tests.py --suites=server_storage_engine_integration

Server-Timeseries-Bucket-Catalog

The unit tests for the server-timeseries-bucket-catalog component can be run with the following:

bazel test --test_tag_filters=server-timeseries-bucket-catalog --test_output=summary //src/mongo/...

There are currently no smoke test integration tests for this component.

Server-Tracking-Allocators

The unit tests for the server-tracking-allocators component can be run with the following:

bazel test --test_tag_filters=server-tracking-allocators --test_output=summary //src/mongo/...

There are currently no smoke test integration tests for this component.

Server-TTL

The unit and integration tests for the server-ttl component can be run with the following:

bazel test --test_tag_filters=server-ttl --test_output=summary //src/mongo/...
bazel build install-dist-test && python buildscripts/run_smoke_tests.py --suites=server_ttl