Files
mongo/buildscripts/smoke_tests/server_collection_write_path/BUILD.bazel
Sean Lyons b968047ec3 SERVER-115660 Enable running integration smoke tests with bazel (#45459)
GitOrigin-RevId: 967fb0b011eb714bbf31235ab6444a5a5e05a7ff
2026-01-02 17:32:19 +00:00

397 lines
22 KiB
Python

load("//bazel/resmoke:resmoke.bzl", "resmoke_suite_test")
resmoke_suite_test(
name = "core",
srcs = [
"//jstests/core/capped:capped.js",
"//jstests/core/capped:capped1.js",
"//jstests/core/capped:capped5.js",
"//jstests/core/capped:capped_large_docs.js",
"//jstests/core/capped:capped_max1.js",
"//jstests/core/capped:capped_queries_and_id_index.js",
"//jstests/core/capped:capped_resize.js",
"//jstests/core/capped:capped_update.js",
"//jstests/core/capped:capped_upsert.js",
"//jstests/core/capped:cappeda.js",
"//jstests/core/clustered:clustered_collection_basic.js",
"//jstests/core/clustered:clustered_collection_bounded_scan.js",
"//jstests/core/clustered:clustered_collection_collation.js",
"//jstests/core/clustered:clustered_collection_create_index_clustered.js",
"//jstests/core/clustered:clustered_collection_creation.js",
"//jstests/core/clustered:clustered_collection_hint.js",
"//jstests/core/timeseries/ddl:timeseries_index_spec.js",
"//jstests/core/timeseries/ddl:timeseries_index_spec_with_originalSpec.js",
"//jstests/core/timeseries/libs:timeseries.js",
"//jstests/core/timeseries/write:basic.js",
"//jstests/core/timeseries/write:timeseries_bucket_limit_count.js",
"//jstests/core/timeseries/write:timeseries_bucket_limit_time_range.js",
"//jstests/core/timeseries/write:timeseries_bucket_manual_removal.js",
"//jstests/core/timeseries/write:timeseries_buckets_find_and_modify.js",
"//jstests/core/timeseries/write:timeseries_buckets_write_explain.js",
"//jstests/core/timeseries/write:timeseries_delete_collation.js",
"//jstests/core/timeseries/write:timeseries_delete_compressed_buckets.js",
"//jstests/core/timeseries/write:timeseries_delete_hint.js",
"//jstests/core/timeseries/write:timeseries_delete_multi.js",
"//jstests/core/timeseries/write:timeseries_delete_one.js",
"//jstests/core/timeseries/write:timeseries_delete_with_meta.js",
"//jstests/core/timeseries/write:timeseries_delete_with_meta_concurrent.js",
"//jstests/core/timeseries/write:timeseries_findAndModify_deletes_hints.js",
"//jstests/core/timeseries/write:timeseries_findAndModify_updates_hints.js",
"//jstests/core/timeseries/write:timeseries_hint_id.js",
"//jstests/core/timeseries/write:timeseries_insert.js",
"//jstests/core/timeseries/write:timeseries_insert_after_delete.js",
"//jstests/core/timeseries/write:timeseries_insert_after_update.js",
"//jstests/core/timeseries/write:timeseries_insert_compresses_bucket.js",
"//jstests/core/timeseries/write:timeseries_insert_mixed_schema_bucket.js",
"//jstests/core/timeseries/write:timeseries_metadata.js",
"//jstests/core/timeseries/write:timeseries_min_max.js",
"//jstests/core/timeseries/write:timeseries_out_of_order.js",
"//jstests/core/timeseries/write:timeseries_raw_data_writes.js",
"//jstests/core/timeseries/write:timeseries_reopened_bucket_insert.js",
"//jstests/core/timeseries/write:timeseries_schema_validation.js",
"//jstests/core/timeseries/write:timeseries_simple.js",
"//jstests/core/timeseries/write:timeseries_sparse.js",
"//jstests/core/timeseries/write:timeseries_update.js",
"//jstests/core/timeseries/write:timeseries_update_arbitrary_updates_not_enabled.js",
"//jstests/core/timeseries/write:timeseries_update_collation.js",
"//jstests/core/timeseries/write:timeseries_update_compressed_buckets.js",
"//jstests/core/timeseries/write:timeseries_update_concurrent.js",
"//jstests/core/timeseries/write:timeseries_update_concurrent_arbitrary_updates_not_enabled.js",
"//jstests/core/timeseries/write:timeseries_update_delete_extended_range.js",
"//jstests/core/timeseries/write:timeseries_update_delete_fixed_bucket.js",
"//jstests/core/timeseries/write:timeseries_update_hint.js",
"//jstests/core/timeseries/write:timeseries_update_mixed_schema_bucket.js",
"//jstests/core/timeseries/write:timeseries_update_multi.js",
"//jstests/core/timeseries/write:timeseries_update_normalize_metadata.js",
"//jstests/core/timeseries/write:timeseries_update_one.js",
"//jstests/core/write:autoid.js",
"//jstests/core/write:crud_ops_do_not_throw_locktimeout.js",
"//jstests/core/write:depth_limit.js",
"//jstests/core/write:no_db_created.js",
"//jstests/core/write:storefunc.js",
"//jstests/core/write:ts1.js",
"//jstests/core/write:uniqueness.js",
"//jstests/core/write:validate_user_documents.js",
"//jstests/core/write:write_error_message_truncation.js",
"//jstests/core/write:write_result.js",
"//jstests/core/write/bulk:bulk_insert.js",
"//jstests/core/write/bulk:bulk_insert_capped.js",
"//jstests/core/write/bulk:bulk_write_insert_cursor.js",
"//jstests/core/write/bulk:bulk_write_non_transaction.js",
"//jstests/core/write/bulk:bulk_write_timeseries_basic.js",
"//jstests/core/write/empty_ts:bypass_empty_ts_replacement.js",
"//jstests/core/write/empty_ts:bypass_empty_ts_replacement_bulk_write.js",
"//jstests/core/write/empty_ts:bypass_empty_ts_replacement_timeseries.js",
"//jstests/core/write/empty_ts:empty_ts.js",
"//jstests/core/write/empty_ts:empty_ts_bulk_write.js",
"//jstests/core/write/insert:batch_write_command_insert.js",
"//jstests/core/write/insert:insert1.js",
"//jstests/core/write/insert:insert_id_undefined.js",
"//jstests/core/write/insert:insert_illegal_doc.js",
"//jstests/core/write/insert:insert_one.js",
],
config = "//buildscripts/resmokeconfig:suites/core.yml",
data = [
"//buildscripts/resmokeconfig:common_jstest_data",
"//jstests/core/libs:all_javascript_files",
],
resmoke_args = ["--runAllFeatureFlagTests"],
tags = [
"ci-development-critical-single-variant",
"server-collection-write-path",
],
deps = [
"//src/mongo/db:mongod",
"//src/mongo/shell:mongo",
],
)
resmoke_suite_test(
name = "replica_sets_jscore_passthrough",
srcs = [
"//jstests/replsets:apply_ops_capped_collection.js",
"//jstests/replsets:capped_deletes.js",
"//jstests/replsets:capped_insert_order.js",
"//jstests/replsets:initial_sync_capped_index.js",
"//jstests/replsets:rollback_capped_deletions.js",
"//jstests/replsets:sized_zero_capped.js",
"//jstests/replsets:ttl_index_with_capped_collection.js",
],
config = "//buildscripts/resmokeconfig:suites/replica_sets_jscore_passthrough.yml",
data = [
"//buildscripts/resmokeconfig:common_jstest_data",
"//jstests/replsets:rslib.js",
"//jstests/replsets/libs:all_javascript_files",
],
resmoke_args = ["--runAllFeatureFlagTests"],
tags = [
"ci-development-critical-single-variant",
"server-collection-write-path",
],
deps = [
"//src/mongo/db:mongod",
"//src/mongo/shell:mongo",
"//src/mongo/tools/mongobridge_tool:mongobridge",
],
)
resmoke_suite_test(
name = "sharding",
srcs = [
"//jstests/sharding/capped_collections:collection_uuid_shard_capped_collection.js",
"//jstests/sharding/capped_collections:convert_to_capped_failure.js",
],
config = "//buildscripts/resmokeconfig:suites/sharding.yml",
data = ["//buildscripts/resmokeconfig:common_jstest_data"],
resmoke_args = ["--runAllFeatureFlagTests"],
tags = [
"ci-development-critical-single-variant",
"server-collection-write-path",
],
deps = [
"//src/mongo/db:mongod",
"//src/mongo/s:mongos",
"//src/mongo/shell:mongo",
],
)
resmoke_suite_test(
name = "no_passthrough",
srcs = [
"//jstests/noPassthrough/clustered_collections:clustered_capped_collection.js",
"//jstests/noPassthrough/clustered_collections:clustered_capped_collection_arbitrary_key.js",
"//jstests/noPassthrough/clustered_collections:clustered_coll_mod.js",
"//jstests/noPassthrough/clustered_collections:clustered_coll_mod_arbitrary_key.js",
"//jstests/noPassthrough/clustered_collections:clustered_collection_at_startup.js",
"//jstests/noPassthrough/clustered_collections:clustered_collection_bounded_scan_nonreplicated.js",
"//jstests/noPassthrough/clustered_collections:clustered_collection_capped_concurrency.js",
"//jstests/noPassthrough/clustered_collections:clustered_collection_create_index_clustered_nonreplicated.js",
"//jstests/noPassthrough/clustered_collections:clustered_collection_creation_arbitrary_key.js",
"//jstests/noPassthrough/clustered_collections:clustered_collection_hint_nonreplicated.js",
"//jstests/noPassthrough/clustered_collections:clustered_collection_nonreplicated_basic.js",
"//jstests/noPassthrough/clustered_collections:clustered_collection_sorted_scan.js",
"//jstests/noPassthrough/clustered_collections:clustered_collection_ttl.js",
"//jstests/noPassthrough/timeseries:timeseries_buckets_oplog_update.js",
"//jstests/noPassthrough/timeseries:timeseries_write_concurrent_collection_replace.js",
"//jstests/noPassthrough/timeseries/bucket_reopening:intermediate_data_consistency_check_reopening.js",
"//jstests/noPassthrough/timeseries/bucket_reopening:timeseries_direct_remove_reopen.js",
"//jstests/noPassthrough/timeseries/bucket_reopening:timeseries_reopen_uncompressed_bucket_for_compression.js",
"//jstests/noPassthrough/timeseries/bulkwrite:bulkwrite_timeseries_insert_ordered_true.js",
"//jstests/noPassthrough/timeseries/bulkwrite:bulkwrite_timeseries_retry_delete_and_update.js",
"//jstests/noPassthrough/timeseries/bulkwrite:bulkwrite_timeseries_retry_writes.js",
"//jstests/noPassthrough/timeseries/bulkwrite:bulkwrite_timeseries_retryable_writes_restart.js",
"//jstests/noPassthrough/timeseries/create:initial_sync_recreate_timeseries_collection.js",
"//jstests/noPassthrough/timeseries/create:timeseries_block_compressor_options.js",
"//jstests/noPassthrough/timeseries/create:timeseries_create_drop_only_buckets.js",
"//jstests/noPassthrough/timeseries/create:timeseries_server_parameters.js",
"//jstests/noPassthrough/timeseries/create:timeseries_startup.js",
"//jstests/noPassthrough/timeseries/data_integrity:intermediate_data_consistency_checks_skips.js",
"//jstests/noPassthrough/timeseries/data_integrity:timeseries_insert_compression_failure.js",
"//jstests/noPassthrough/timeseries/data_integrity:timeseries_insert_decompression_failure.js",
"//jstests/noPassthrough/timeseries/data_integrity:timeseries_partial_compressed_bucket.js",
"//jstests/noPassthrough/timeseries/extended_range:timeseries_bucket_spanning_epoch.js",
"//jstests/noPassthrough/timeseries/extended_range:timeseries_extended_range_rollback.js",
"//jstests/noPassthrough/timeseries/extended_range:timeseries_extended_range_startup.js",
"//jstests/noPassthrough/timeseries/index_builds:hybrid_index_timeseries.js",
"//jstests/noPassthrough/timeseries/index_builds:resumable_timeseries_index_build_collection_scan_phase.js",
"//jstests/noPassthrough/timeseries/index_builds:timeseries_create_index_option_defaults.js",
"//jstests/noPassthrough/timeseries/stats:timeseries_collStats.js",
"//jstests/noPassthrough/timeseries/stats:timeseries_latency_stats.js",
"//jstests/noPassthrough/timeseries/stats:timeseries_serverStatus.js",
"//jstests/noPassthrough/timeseries/stats:timeseries_server_status_state_management.js",
"//jstests/noPassthrough/timeseries/ttl:timeseries_expire.js",
"//jstests/noPassthrough/timeseries/ttl:timeseries_ttl.js",
"//jstests/noPassthrough/timeseries/updates_deletes:intermediate_data_consistency_check_arbitrary_update.js",
"//jstests/noPassthrough/timeseries/updates_deletes:timeseries_delete_one_transaction.js",
"//jstests/noPassthrough/timeseries/updates_deletes:timeseries_direct_update.js",
"//jstests/noPassthrough/timeseries/updates_deletes:timeseries_multi_update_spill_to_disk.js",
"//jstests/noPassthrough/timeseries/updates_deletes:timeseries_update_delete_transaction.js",
"//jstests/noPassthrough/timeseries/updates_deletes:timeseries_update_one_transaction.js",
"//jstests/noPassthrough/timeseries/updates_deletes:timeseries_update_oplog.js",
"//jstests/noPassthrough/timeseries/validate:validate_compressed_bucket_with_time_out_of_order.js",
"//jstests/noPassthrough/timeseries/validate:validate_timeseries_bucket_max_span.js",
"//jstests/noPassthrough/timeseries/validate:validate_timeseries_bucketing_parameters_change.js",
"//jstests/noPassthrough/timeseries/validate:validate_timeseries_id_timestamp.js",
"//jstests/noPassthrough/timeseries/validate:validate_timeseries_minmax.js",
"//jstests/noPassthrough/timeseries/validate:validate_timeseries_version.js",
"//jstests/noPassthrough/timeseries/validate:validate_v3_buckets_are_unsorted.js",
"//jstests/noPassthrough/timeseries/write:promoting_compressed_sorted_bucket_to_compressed_unsorted_bucket.js",
"//jstests/noPassthrough/timeseries/write:timeseries_bucket_limit_size.js",
"//jstests/noPassthrough/timeseries/write:timeseries_bucket_oids.js",
"//jstests/noPassthrough/timeseries/write:timeseries_closed_due_to_schema_changes.js",
"//jstests/noPassthrough/timeseries/write:timeseries_compressed_bucket_size.js",
"//jstests/noPassthrough/timeseries/write:timeseries_dynamic_bucket_sizing_large.js",
"//jstests/noPassthrough/timeseries/write:timeseries_idle_buckets.js",
"//jstests/noPassthrough/timeseries/write:timeseries_insert_after_cycle_primary.js",
"//jstests/noPassthrough/timeseries/write:timeseries_insert_after_failed_insert.js",
"//jstests/noPassthrough/timeseries/write:timeseries_insert_invalid_timefield.js",
"//jstests/noPassthrough/timeseries/write:timeseries_insert_ordered_false.js",
"//jstests/noPassthrough/timeseries/write:timeseries_insert_ordered_true.js",
"//jstests/noPassthrough/timeseries/write:timeseries_large_measurements.js",
"//jstests/noPassthrough/timeseries/write:timeseries_large_measurements_max_size.js",
"//jstests/noPassthrough/timeseries/write:timeseries_retry_writes.js",
"//jstests/noPassthrough/timeseries/write:timeseries_retryable_writes_restart.js",
"//jstests/noPassthrough/timeseries/write:timeseries_time_backward.js",
"//jstests/noPassthrough/timeseries/write:timeseries_use_after_meta_update.js",
"//jstests/noPassthrough/timeseries/write:timeseries_write_compresses_uncompressed_bucket.js",
"//jstests/noPassthrough/timeseries/write:timeseries_write_concern.js",
],
config = "//buildscripts/resmokeconfig:suites/no_passthrough.yml",
data = [
"//buildscripts/resmokeconfig:common_jstest_data",
"//jstests/core/timeseries/libs:all_javascript_files",
"//jstests/noPassthrough/libs:all_subpackage_javascript_files",
"//jstests/noPassthrough/timeseries/updates_deletes:timeseries_retry_delete_and_update.js",
"//jstests/replsets:rslib.js",
"//jstests/replsets/libs:rollback_test.js",
],
resmoke_args = ["--runAllFeatureFlagTests"],
shard_count = 8,
tags = [
"ci-development-critical-single-variant",
"server-collection-write-path",
],
deps = [
"//src/mongo/db:mongod",
"//src/mongo/s:mongos",
"//src/mongo/shell:mongo",
"//src/mongo/tools/mongobridge_tool:mongobridge",
],
)
resmoke_suite_test(
name = "no_passthrough_with_mongod",
srcs = [
"//jstests/noPassthroughWithMongod/capped:capped4.js",
"//jstests/noPassthroughWithMongod/capped:clone_collection_as_capped_no_conflicts.js",
"//jstests/noPassthroughWithMongod/capped:convert_to_capped_no_conflicts.js",
"//jstests/noPassthroughWithMongod/capped:ttl_index_capped_collection.js",
"//jstests/noPassthroughWithMongod/timeseries:timeseries_list_collections_invalid_view.js",
"//jstests/noPassthroughWithMongod/timeseries:timeseries_list_collections_missing_view.js",
"//jstests/noPassthroughWithMongod/timeseries:timeseries_system_views_drop.js",
"//jstests/noPassthroughWithMongod/write/insert:insert_multi.js",
"//jstests/noPassthroughWithMongod/write/insert:insert_one_vs_insert.js",
],
config = "//buildscripts/resmokeconfig:suites/no_passthrough_with_mongod.yml",
data = [
"//buildscripts/resmokeconfig:common_jstest_data",
"//jstests/core/libs:raw_operation_utils.js",
"//jstests/core/timeseries/libs:all_javascript_files",
],
resmoke_args = ["--runAllFeatureFlagTests"],
tags = [
"ci-development-critical-single-variant",
"server-collection-write-path",
],
deps = [
"//src/mongo/db:mongod",
"//src/mongo/shell:mongo",
],
)
resmoke_suite_test(
name = "concurrency",
srcs = [
"//jstests/concurrency/fsm_workloads/crud:crud_and_commands.js",
"//jstests/concurrency/fsm_workloads/crud:crud_and_commands_with_createindexes.js",
"//jstests/concurrency/fsm_workloads/crud:crud_clustered_collection.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_1char.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_1char_noindex.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_2dsphere.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_base.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_base_capped.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_compound.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_heterogeneous.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_heterogeneous_noindex.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_large.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_large_noindex.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_long_fieldname.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_long_fieldname_noindex.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_multikey.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_multikey_noindex.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_ordered_bulk.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_text.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_text_multikey.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_ttl.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_unordered_bulk.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_upsert.js",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_wildcard.js",
],
config = "//buildscripts/resmokeconfig:suites/concurrency.yml",
data = [
"//buildscripts/resmokeconfig:common_jstest_data",
"//jstests/concurrency/fsm_libs:all_subpackage_javascript_files",
"//jstests/concurrency/fsm_utils:all_subpackage_javascript_files",
"//jstests/concurrency/fsm_workload_helpers:all_subpackage_javascript_files",
"//jstests/concurrency/fsm_workload_modifiers:all_subpackage_javascript_files",
"//jstests/concurrency/fsm_workloads/crud/indexed_insert:indexed_insert_2d.js",
"//jstests/core/txns/libs:prepare_helpers.js",
"//jstests/libs/txns:txn_util.js",
],
resmoke_args = ["--runAllFeatureFlagTests"],
tags = [
"ci-development-critical-single-variant",
"server-collection-write-path",
],
deps = [
"//src/mongo/db:mongod",
"//src/mongo/shell:mongo",
],
)
resmoke_suite_test(
name = "concurrency_sharded_replication",
srcs = [
"//jstests/concurrency/fsm_workloads/crud:move_collection_with_crud.js",
"//jstests/concurrency/fsm_workloads/crud:move_primary_with_crud.js",
"//jstests/concurrency/fsm_workloads/crud:reshard_collection_crud_ops.js",
],
config = "//buildscripts/resmokeconfig:suites/concurrency_sharded_replication.yml",
data = [
"//buildscripts/resmokeconfig:common_jstest_data",
"//jstests/concurrency/fsm_libs:all_subpackage_javascript_files",
"//jstests/concurrency/fsm_utils:all_subpackage_javascript_files",
"//jstests/concurrency/fsm_workload_helpers:all_subpackage_javascript_files",
"//jstests/core/txns/libs:prepare_helpers.js",
"//jstests/libs/txns:txn_util.js",
],
resmoke_args = ["--runAllFeatureFlagTests"],
tags = [
"ci-development-critical-single-variant",
"server-collection-write-path",
],
deps = [
"//src/mongo/db:mongod",
"//src/mongo/s:mongos",
"//src/mongo/shell:mongo",
],
)
resmoke_suite_test(
name = "concurrency_replication",
srcs = [
"//jstests/concurrency/fsm_workloads/timeseries:insert_ttl_retry_writes_timeseries.js",
],
config = "//buildscripts/resmokeconfig:suites/concurrency_replication.yml",
data = [
"//buildscripts/resmokeconfig:common_jstest_data",
"//jstests/concurrency/fsm_libs:all_subpackage_javascript_files",
"//jstests/concurrency/fsm_utils:all_subpackage_javascript_files",
"//jstests/concurrency/fsm_workload_helpers:all_subpackage_javascript_files",
"//jstests/concurrency/fsm_workloads/timeseries:insert_ttl_timeseries.js",
"//jstests/core/timeseries/libs:timeseries.js",
"//jstests/core/txns/libs:prepare_helpers.js",
"//jstests/libs/txns:txn_util.js",
"//jstests/replsets/libs:dbcheck_utils.js",
],
resmoke_args = ["--runAllFeatureFlagTests"],
tags = [
"ci-development-critical-single-variant",
"server-collection-write-path",
],
deps = [
"//src/mongo/db:mongod",
"//src/mongo/shell:mongo",
],
)