AI Slop Code RIsk Monitor

mongodb/mongo

The MongoDB Database

6.3 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for mongodb/mongo, a C++ project with 28,627 GitHub stars. SynthScan examined 10,485,477 lines of code across 39589 source files, recording 54581 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 6.3 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

6.3
Adjusted Signal
6.3
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
28.6K
Stars
C++
Language
10.5M
Lines of Code
39.6K
Files
54.6K
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 20.7/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 49575 finding(s).

Hallucinated Dependency & Supply Chain Risk 6.5/100 · LOW

Are imports declared and package/API names verified? 3764 finding(s).

Agent Over-Engineering Ratio 6.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 10649 finding(s).

PR Review Velocity Impact 28.3/100 · MEDIUM

Which changes need focused human review? 54581 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 9HIGH 2570MEDIUM 1192LOW 50810

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 54581 distinct pattern matches across 27 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block38139 hits · 35188 pts
SeverityFileLineSnippetContext
LOWpyproject.toml101 "tenacity>=9.0.0,<10",COMMENT
LOWpyproject.toml141 # click 8.2 changed Parameter.make_metavar()'s signature in a way thatCOMMENT
LOWpyproject.toml221 "pypiwin32>=223 ; sys_platform == 'win32'",COMMENT
LOWpyproject.toml321rapidyaml = { index = "mdb-build-public" }COMMENT
LOWmodules_poc/mod_scanner.py101 @staticmethodCOMMENT
LOWmodules_poc/mod_scanner.py681 if ref.kind == CursorKind.OVERLOADED_DECL_REF:COMMENT
LOWmodules_poc/mod_scanner.py701 # at the internal declaration. Make sure that this isn't causing us to skipCOMMENT
LOWmodules_poc/cindex.py1# This local copy is modified as in https://github.com/llvm/llvm-project/pull/120590COMMENT
LOWmodules_poc/cindex.py821COMMENT
LOWmodules_poc/cindex.py861 ###COMMENT
LOWmodules_poc/cindex.py941COMMENT
LOWmodules_poc/cindex.py1021COMMENT
LOWmodules_poc/cindex.py1041 # pack.COMMENT
LOWmodules_poc/cindex.py3021COMMENT
LOWmodules_poc/modules.yaml1# This file defines the modules for the MongoDB project.COMMENT
LOWetc/performance_thresholds.yml1########################################################################################################COMMENT
LOWetc/performance_thresholds.yml21# bound_direction: {What the threshold direction should be. Must be one of upper or lower}COMMENT
LOWetc/extensions.yml1# mongo/etc/extensions.ymlCOMMENT
LOWetc/code_lockdown.yml41COMMENT
LOWetc/code_lockdown.yml61 # count: 100COMMENT
LOWetc/code_lockdown.yml81 # Drill into the data using the <https://jira.mongodb.org/secure/Dashboard.jspa?selectPageId=33950|Jira DashboarCOMMENT
LOWetc/coverity.yml21 # Enforces the Rule of Zero/Three/Five. MongoDB's class hierarchyCOMMENT
LOWetc/coverity.yml41 # produced only noise.COMMENT
LOWetc/coverity.yml61 # --- Explicitly enabled checkers ---COMMENT
LOWetc/coverity.yml101 # result without a null check. stat_threshold:50 requires at least 50% ofCOMMENT
LOWetc/coverity.yml121 c-cpp-fnptr: trueCOMMENT
LOWetc/test_retrial.yml1# This file is used to tag JS tests for retry on failure that run in the mainline.COMMENT
LOWetc/test_retrial.yml21# in task_name: sharding_csrs_continuous_config_stepdown_WTCOMMENT
LOWetc/test_retrial.yml41#COMMENT
LOWetc/test_lifecycle.yml1# This file is used to tag JS tests that run under resmoke.py.COMMENT
LOWetc/backports_required_for_multiversion_tests.yml1# This file is intended to track tests that should be denylisted from multiversion testing due toCOMMENT
LOWetc/evergreen_lint.yml21 # # source of pain:COMMENT
LOWetc/system_perf_soak.yml1# Config file for the sys-perf-soak Evergreen project.COMMENT
LOWetc/evergreen.yml1####################################################COMMENT
LOWetc/evergreen.yml21#COMMENT
LOWetc/evergreen.yml41# - func: "cleanup environment"COMMENT
LOWetc/coverity_models/mongo_models.cpp1// Coverity model file for MongoDB-specific patterns.COMMENT
LOWetc/coverity_models/mongo_models.cpp41namespace mongo {COMMENT
LOWetc/coverity_models/mongo_models.cpp101// The model marks the output buffer as written (via __coverity_writeall__) soCOMMENT
LOWetc/coverity_models/mongo_models.cpp161// OutOfLineExecutor::schedule — service executor callback dispatchCOMMENT
LOWetc/coverity_models/mongo_models.cpp201 Status s;COMMENT
LOWetc/coverity_models/mongo_security_directives.json1// Coverity Security Directives for MongoDB — C/C++ analysisCOMMENT
LOWetc/coverity_models/mongo_security_directives.json21// - sensitive_operation — sink patternsCOMMENT
LOWetc/coverity_models/mongo_security_directives.json41//COMMENT
LOWetc/coverity_models/extract_pw_rw_findings.sh1#!/usr/bin/env bashCOMMENT
LOWetc/coverity_models/extract_pw_rw_findings.sh21# After suppression:COMMENT
LOWevergreen/bazel_test.sh41fiCOMMENT
LOWevergreen/query_tester_test_repo_setup.sh1# This script is designed to clone a specific GitHub repository that contains server tests used by query_tester.COMMENT
LOWevergreen/prelude_mongo_task_generator.sh1function setup_mongo_task_generator {COMMENT
LOWevergreen/prelude_mongo_task_generator.sh21# popdCOMMENT
LOWevergreen/resmoke_tests_execute_bazel.sh221 # bazel-level timeout well beyond the remote-exec default so the run can finish.COMMENT
LOWevergreen/fetch_remote_test_results.sh1# Downloads bazel test results from remote executions and prepares them for Evergreen ingestion.COMMENT
LOWevergreen/multiversion_selection.sh41 last_lts_arg=""COMMENT
LOWevergreen/generate_evergreen_bazelrc.sh81if [[ "${evergreen_remote_exec}" != "on" ]]; thenCOMMENT
LOWevergreen/selinux_run_test.sh1#!/bin/bashCOMMENT
LOWevergreen/verify_extension_visibility_test.sh1#!/usr/bin/env bashCOMMENT
LOWevergreen/verify_extension_visibility_test.sh81# ------------------------------------------------------------------------------COMMENT
LOWevergreen/verify_extension_visibility_test.sh121COMMENT
LOWevergreen/external_auth_azure_setup.sh41ssh -VCOMMENT
LOWevergreen/verify_all_extensions_visibility.sh1#!/usr/bin/env bashCOMMENT
38079 more matches not shown…
Cross-Language Confusion (JS/TS)2177 hits · 12216 pts
SeverityFileLineSnippetContext
HIGHbuildscripts/testdata/test.js1print("hello world");CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js106 print(CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js114 print(`failed due to unretryable error: ${JSON.stringify(err)}`);CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js119 print(`Exhausted all retries, failing`);CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js131 print(`Establishing connection to "${MONGO_URI}"`);CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js140 print("executing find");CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js145 print("done executing find");CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js150 print("executing fsync");CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js152 print("done executing fsync. result:", JSON.stringify(result));CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js292 print("done executing update");CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js297 print("executing delete");CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js307 print("done executing delete");CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js312 print("executing txn");CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js356 print(CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js365 print("done executing txn");CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js370 print("executing dbcheck");CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js373 print(`running dbCheck on test.${coll}`);CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js377 print("done executing dbcheck");CODE
HIGH⚡…ithesis/test_composer/basic_js_commands/js/commands.js383 print("Done executing replSetGetStatus. result:", JSON.stringify(result));CODE
HIGH…ithesis/test_composer/basic_js_commands/js/commands.js69 print(`Received not OK result: ${JSON.stringify(result)}`);CODE
HIGH…ithesis/test_composer/basic_js_commands/js/commands.js73 print(CODE
HIGH…ithesis/test_composer/basic_js_commands/js/commands.js92 print(CODE
HIGH…ithesis/test_composer/basic_js_commands/js/commands.js211 print("done executing PIT read. result:", JSON.stringify(snapshotReadResult));CODE
HIGH…ithesis/test_composer/basic_js_commands/js/commands.js226 print(`validating ${dbName}.${coll}...`);CODE
HIGH…ithesis/test_composer/basic_js_commands/js/commands.js240 print("executing aggregate");CODE
HIGH…ithesis/test_composer/basic_js_commands/js/commands.js271 print("done executing aggregate");CODE
HIGH…ithesis/test_composer/basic_js_commands/js/commands.js276 print("executing update");CODE
HIGH…ithesis/test_composer/basic_js_commands/js/commands.js333 print("txn committed");CODE
HIGH…ithesis/test_composer/basic_js_commands/js/commands.js340 print(CODE
HIGH…oke_end2end/external_module_test/tests/another_test.js2print("External module test 2");CODE
HIGH…smoke_end2end/external_module_test/tests/mongo_test.js26 print("External module MongoDB test passed!");CODE
HIGH…moke_end2end/external_module_test/tests/simple_test.js2print("External module test");CODE
HIGH…tests/resmoke_end2end/testfiles/fixture_info_mongos.js4 print("DEBUG BUILDINFO");CODE
HIGH…smoke_end2end/testfiles/debugger/debugger_statement.js9print("Test Passed!");CODE
HIGH…/resmoke_end2end/testfiles/debugger/simple_debugger.js10print("Test Passed!");CODE
HIGH⚡…_end2end/mongo_shell/tests/mongo_path_relative_test.js11print("Testing relative path imports...");CODE
HIGH⚡…_end2end/mongo_shell/tests/mongo_path_relative_test.js18print("SUCCESS: relative path import worked");CODE
HIGH⚡…_end2end/mongo_shell/tests/mongo_path_relative_test.js24print("SUCCESS: relative path load() worked");CODE
HIGH…_end2end/mongo_shell/tests/mongo_path_relative_test.js40print("SUCCESS: relative path dynamic import() worked");CODE
HIGH…_end2end/mongo_shell/tests/mongo_path_relative_test.js42print("All relative path tests passed!");CODE
HIGH⚡…oke_end2end/mongo_shell/tests/mongo_path_mixed_test.js8print("Testing mixed path imports...");CODE
HIGH⚡…oke_end2end/mongo_shell/tests/mongo_path_mixed_test.js10print("SUCCESS: MONGO_PATH import worked");CODE
HIGH⚡…oke_end2end/mongo_shell/tests/mongo_path_mixed_test.js15print("SUCCESS: relative path load() worked");CODE
HIGH⚡…oke_end2end/mongo_shell/tests/mongo_path_mixed_test.js20print("SUCCESS: MONGO_PATH dynamic import() worked");CODE
HIGH⚡…oke_end2end/mongo_shell/tests/mongo_path_mixed_test.js22print("All mixed path tests passed!");CODE
HIGH…s/resmoke_end2end/mongo_shell/tests/mongo_path_test.js9print("Testing top-level import with MONGO_PATH...");CODE
HIGH⚡…s/resmoke_end2end/mongo_shell/tests/mongo_path_test.js20print("SUCCESS: top-level import found file in MONGO_PATH");CODE
HIGH⚡…s/resmoke_end2end/mongo_shell/tests/mongo_path_test.js23print("Testing load() with MONGO_PATH...");CODE
HIGH⚡…s/resmoke_end2end/mongo_shell/tests/mongo_path_test.js31print("SUCCESS: load() found file in MONGO_PATH");CODE
HIGH⚡…s/resmoke_end2end/mongo_shell/tests/mongo_path_test.js34print("Testing dynamic import() with MONGO_PATH...");CODE
HIGH…s/resmoke_end2end/mongo_shell/tests/mongo_path_test.js46print("SUCCESS: dynamic import() found file in MONGO_PATH");CODE
HIGH…s/resmoke_end2end/mongo_shell/tests/mongo_path_test.js48print("All MONGO_PATH tests passed (top-level import, load, and dynamic import)!");CODE
HIGH…tests/aggregation/optimization/push_limit_into_sort.js53 print("failed with limit=" + limit + " direction= " + direction);CODE
HIGHjstests/aggregation/expressions/iso_date_exprs.js25 print("skipping test of " + date.tojson() + " because system doesn't support old dates");CODE
HIGHjstests/aggregation/expressions/iso_date_exprs.js31 print("skipping test of " + date.tojson() + " because it is outside of time_t range");CODE
HIGHjstests/aggregation/expressions/rand.js7print("Generating test collection...");CODE
HIGHjstests/aggregation/expressions/rand.js21print("Average: ", avg);CODE
HIGH…tests/aggregation/expressions/date_expr_before_1970.js5 print("testing " + date);CODE
HIGH…tests/aggregation/expressions/date_expr_before_1970.js44 print("skipping test of " + date.tojson() + " because system doesn't support old dates");CODE
HIGH…tests/aggregation/expressions/date_expr_before_1970.js50 print("skipping test of " + date.tojson() + " because it is outside of time_t range");CODE
2117 more matches not shown…
Hyper-Verbose Identifiers9374 hits · 9374 pts
SeverityFileLineSnippetContext
LOWmodules_poc/browse.py236def add_mod_loc_mapping_nodes(node: TreeNode, usages: Usages, kind: str):CODE
LOWmodules_poc/mod_scanner.py360def try_extract_file_level_visibility(c: Cursor) -> str | None:CODE
LOWmodules_poc/private_headers.py47def get_all_paths_to_files_passing_filter(CODE
LOWmodules_poc/private_headers.py159def add_mod_visibility_to_idl(idl_path: str, write_unless_dry: Callable) -> bool:CODE
LOW⚡modules_poc/cindex.py2078 def get_num_template_arguments(self):CODE
LOW⚡modules_poc/cindex.py2082 def get_template_argument_kind(self, num):CODE
LOW⚡modules_poc/cindex.py2089 def get_template_argument_type(self, num):CODE
LOW⚡modules_poc/cindex.py2095 def get_template_argument_value(self, num):CODE
LOW⚡modules_poc/cindex.py2099 def get_template_argument_unsigned_value(self, num):CODE
LOWmodules_poc/cindex.py1583 def is_converting_constructor(self):CODE
LOWmodules_poc/cindex.py1611 def is_copy_assignment_operator_method(self):CODE
LOWmodules_poc/cindex.py1636 def is_move_assignment_operator_method(self):CODE
LOWmodules_poc/cindex.py1927 def exception_specification_kind(self):CODE
LOWmodules_poc/cindex.py2545 def get_num_template_arguments(self):CODE
LOWmodules_poc/cindex.py2548 def get_template_argument_type(self, num):CODE
LOWmodules_poc/cindex.py2686 def get_exception_specification_kind(self):CODE
LOWmodules_poc/cindex.py3706 def write_main_file_to_stdout(self):CODE
LOWetc/set_up_workstation_test.py10 def test_python_environment_is_ready_before_bazel_runs(self) -> None:CODE
LOWevergreen/validate_compile_commands_test.py15 def test_validation_output_dir_uses_workspace_when_writable(self):CODE
LOWevergreen/validate_compile_commands_test.py22 def test_validation_output_dir_falls_back_when_workspace_is_read_only(self):CODE
LOWevergreen/validate_compile_commands_test.py38 def test_validation_output_dir_uses_container_shared_install_mount(self):CODE
LOWevergreen/validate_compile_commands_test.py53 def test_validation_output_dir_infers_container_shared_install_mount(self):CODE
LOWevergreen/validate_compile_commands_test.py87 def test_validate_clang_tidy_setup_skips_unsupported_platforms(self):CODE
LOWevergreen/validate_compile_commands_test.py94 def test_validate_clang_tidy_setup_accepts_expected_files(self):CODE
LOWevergreen/validate_compile_commands_test.py113 def test_validate_clang_tidy_setup_rejects_missing_config(self):CODE
LOWevergreen/validate_compile_commands_test.py121 def test_validate_clang_tidy_setup_rejects_missing_plugin(self):CODE
LOWevergreen/validate_compile_commands_test.py141 def test_accepts_standard_arguments_entry(self):CODE
LOWevergreen/validate_compile_commands_test.py152 def test_accepts_standard_command_entry(self):CODE
LOWevergreen/validate_compile_commands_test.py162 def test_rejects_non_standard_keys(self):CODE
LOWevergreen/validate_compile_commands_test.py174 def test_rejects_entries_with_both_command_and_arguments(self):CODE
LOWevergreen/validate_compile_commands_test.py186 def test_selection_rejects_non_standard_compile_commands_json(self):CODE
LOWevergreen/validate_compile_commands_test.py207 def test_ensure_compiledb_exists_builds_install_wiredtiger_too(self):CODE
LOWevergreen/record_mongodb_server_version_test.py13 def test_skips_cross_architecture_binary(self) -> None:CODE
LOWevergreen/record_mongodb_server_version_test.py41 def test_uses_declared_install_output_when_convenience_link_is_missing(self) -> None:CODE
LOWevergreen/record_mongodb_server_version_test.py78 def test_uses_bazel_out_install_output_when_bazel_bin_is_a_plain_directory(self) -> None:CODE
LOWevergreen/record_mongodb_server_version_test.py126 def test_failure_reports_binary_diagnostics_and_preserves_exit_code(self) -> None:CODE
LOWevergreen/validate_compile_commands.py45def _probe_writable_output_dir(path: str) -> str | None:CODE
LOWevergreen/validate_compile_commands.py61def _compiledb_shared_install_dir(compdb_path: str) -> str | None:CODE
LOWevergreen/validate_compile_commands.py145def _mongo_tidy_checks_supported_platform() -> bool:CODE
LOWevergreen/validate_compile_commands.py150def _validate_clang_tidy_setup(workspace_dir: str) -> None:CODE
LOWevergreen/validate_compile_commands.py187def _parse_repo_env_from_bazelrc(bazelrc_path: str, var_name: str) -> str | None:CODE
LOWevergreen/validate_compile_commands.py263def _maybe_add_windows_toolchain_env(base_env: dict[str, str], repo_root: str) -> dict[str, str]:CODE
LOWevergreen/validate_compile_commands.py358def _validate_compiledb_entry(entry: dict[str, Any], *, index: int) -> None:CODE
LOWevergreen/validate_compile_commands.py482def _determine_selection_count(CODE
LOWevergreen/validate_compile_commands.py565def _map_writable_output_path(out_root: str, original_path: str) -> str:CODE
LOWevergreen/validate_compile_commands.py622def _rewrite_output_paths_to_writable_dir(CODE
LOWevergreen/validate_compile_commands.py747def _ensure_parent_dirs_exist_for_outputs(args: list[str], cwd: str, repo_root: str) -> None:CODE
LOWevergreen/validate_compile_commands.py806def _select_entries_for_test_compile(path: str, n: int) -> tuple[int, list[dict[str, Any]]]:CODE
LOWevergreen/functions/upload_sbom_via_silkbomb.py17def get_changed_files_from_latest_commit(local_repo_path: str, branch_name: str = "master") -> dict:CODE
LOWevergreen/functions/code_coverage_data_process.py15def get_bazel_coverage_report_file() -> str:CODE
LOWevergreen/functions/code_coverage_data_process.py49def _parse_lcov_line_coverage(report_path: str) -> dict[str, dict[int, int]]:CODE
LOWx509/mkcert.py111def find_certificate_definition(name):CODE
LOWx509/mkcert.py383 def authority_information_access(v, **_):CODE
LOWx509/mkcert.py706def read_certificate_generation_year(year_file):CODE
LOWbazel/workspace_status.py31def print_feature_flag_status():CODE
LOWbazel/workspace_status.py72def print_evergreen_expansions():CODE
LOWbazel/bazelisk.py107def decide_which_bazel_version_to_use():CODE
LOWbazel/bazelisk.py146def resolve_version_label_to_number_or_commit(bazelisk_directory, version):CODE
LOWbazel/bazelisk.py253def determine_executable_filename_suffix():CODE
LOWbazel/bazelisk.py276def get_supported_machine_archs(version, operating_system):CODE
9314 more matches not shown…
Self-Referential Comments536 hits · 1668 pts
SeverityFileLineSnippetContext
MEDIUMmodules_poc/modules.yaml1# This file defines the modules for the MongoDB project.COMMENT
MEDIUMetc/evergreen_timeouts.yml1# This file defines timeouts in evergreen that will override the default timeouts.COMMENT
MEDIUMetc/performance_thresholds.yml2# This file contains thresholds for performance tests run by resmoke. These correspond to #COMMENT
MEDIUMetc/test_retrial.yml1# This file is used to tag JS tests for retry on failure that run in the mainline.COMMENT
MEDIUMetc/test_lifecycle.yml1# This file is used to tag JS tests that run under resmoke.py.COMMENT
MEDIUMetc/backports_required_for_multiversion_tests.yml1# This file is intended to track tests that should be denylisted from multiversion testing due toCOMMENT
MEDIUMetc/burn_in_tests.yml1# This file is used to exclude suites, tasks or tests from running in the burn_in_test task.COMMENT
MEDIUMevergreen/external_auth_gcp_setup.sh8# Create the config file, which will contain the GCE project/zone information along withCOMMENT
MEDIUMevergreen/external_auth_gcp_setup.sh19# Create the SSH key file. Note that the SSH key has been base64 encoded and stored into an EVGCOMMENT
MEDIUMevergreen/collect_bazel_debug_logs.sh70 # Create the zip fileCOMMENT
MEDIUMevergreen/gen_supplementary_data.sh51 # Create the final archiveCOMMENT
MEDIUM…green/functions/evergreen_api_credentials_configure.sh6# Create the Evergreen API credentialsCOMMENT
MEDIUMbazel/crates.toml1# This file is automatically @generated by Cargo.COMMENT
MEDIUMbazel/workspace_status.py8# This file is executed by Bazel prior to the build. Expect no packages toCOMMENT
MEDIUMbazel/cargo_bindeps.toml1# This file is automatically @generated by Cargo.COMMENT
MEDIUMbazel/platforms/remote_execution_containers_pr.py244 # Creating a commit immediately after the ref can 409.COMMENT
MEDIUMbazel/hermetic_container/hermetic_container.py787 # Create the actual services string.COMMENT
MEDIUMbazel/wrapper_hook/lint.py402 # Create a new list of files that are in all_typed_files but not in typed_files_in_targetsSTRING
MEDIUM…ldscripts/evergreen_gen_streams_build_and_push_task.py16# This file is for generating the task that builds and pushes the streams docker image.COMMENT
MEDIUMbuildscripts/bazel_burn_in.py177 # Create the label "//jstests:foo.js" from jstests/foo.jsCOMMENT
MEDIUMbuildscripts/github_merge_queue_metrics.py292 # Create a span for each PR merge eventCOMMENT
MEDIUMbuildscripts/clang_tidy_vscode.py39# This file is intended to document the configuration options availableCOMMENT
MEDIUMbuildscripts/uv_sync.sh118 # Create the venv up front and repoint py3 into it so the pip installCOMMENT
MEDIUMbuildscripts/compare_evergreen_versions.py203 # Create a mapping of build_id to build_variant_nameCOMMENT
MEDIUMbuildscripts/idl/generate_ifr_registry.py27 # This file is regenerated by buildscripts/idl/generate_ifr_registry.py.COMMENT
MEDIUMbuildscripts/idl/gen_dts.py196 # Create the _gen.d.ts file if it doesn't exist.COMMENT
MEDIUMbuildscripts/idl/gen_dts.py212 # Create a Typescript definition from the symbol and write it to the file.COMMENT
MEDIUMbuildscripts/idl/idl/compiler.py116 # This function is fragile:COMMENT
MEDIUMbuildscripts/idl/tests/test_binder.py46 # Create a text wrap for common types.COMMENT
MEDIUMbuildscripts/gdb/mongo.py835 # The following block is roughly equivalent to this:COMMENT
MEDIUMbuildscripts/cost_model/ce_generate_data.py121 # Create an array named 'chunkNames' with all chunk file names to be loaded.COMMENT
MEDIUM⚡buildscripts/tests/test_sync_repo_with_copybara.py2286 # Define the content for the Git configuration fileCOMMENT
MEDIUM⚡buildscripts/tests/test_sync_repo_with_copybara.py2328 # Define the content for the Git configuration fileCOMMENT
MEDIUM⚡buildscripts/tests/test_sync_repo_with_copybara.py2332 # Define a invalid branching off commitCOMMENT
MEDIUMbuildscripts/tests/test_sync_repo_with_copybara.py777 # Create a mock private repository and get all commit hashesCOMMENT
MEDIUMbuildscripts/tests/test_sync_repo_with_copybara.py782 # Create a mock public repository and pass the list of private commit hashesCOMMENT
MEDIUMbuildscripts/tests/test_sync_repo_with_copybara.py2262 # Define the content for the Git configuration fileCOMMENT
MEDIUMbuildscripts/tests/test_sync_repo_with_copybara.py6968 "# This file is generated by buildscripts/copybara/generate_evergreen.py.",CODE
MEDIUM⚡buildscripts/tests/test_legacy_commands_check.py59 # This class is not a Command type and should not be mistaken for a Command typeCOMMENT
MEDIUM⚡buildscripts/tests/test_legacy_commands_check.py65 # This class is not a Command type and should not be mistaken for a Command typeCOMMENT
MEDIUM…/tests/resmoke_end2end/test_external_fixtures_hooks.py67 # Create a _SingleJSTestCase with env_vars in config (not shell_options)COMMENT
MEDIUM…/tests/resmoke_end2end/test_external_fixtures_hooks.py89 # Create a PyTestCase with env_vars in configCOMMENT
MEDIUM…/tests/resmoke_end2end/test_external_fixtures_hooks.py105 # Create a MatrixSuiteConfigCOMMENT
MEDIUM…ipts/tests/resmoke_end2end/test_resmoke_js_debugger.py274 # Create a test file that expects modified variablesCOMMENT
MEDIUM…sts/sbom_linter/inputs/kafka_missing_version_import.sh14# Create a temporary directory to clone and configure librdkafkaCOMMENT
MEDIUM…scripts/tests/sbom_linter/inputs/kafka_valid_import.sh14# Create a temporary directory to clone and configure librdkafkaCOMMENT
MEDIUMbuildscripts/tests/resmokelib/core/test_programs.py28 # Create a multiversion binary in a separate directory and look it up by its bare name.COMMENT
MEDIUMbuildscripts/tests/resmokelib/testing/test_job.py242 # Initialize the Job instance such that its setup_fixture() and teardown_fixture() methodsCOMMENT
MEDIUM…keconfig/suites/sharded_retryable_writes_downgrade.yml64 # This file is testing resmoke's multiversion framework, not Server behaviorCOMMENT
MEDIUM…ipts/resmokeconfig/suites/change_streams_downgrade.yml224 # This file is testing resmoke's multiversion framework, not Server behaviorCOMMENT
MEDIUM…s/resmokeconfig/matrix_suites/overrides/bulk_write.yml63 # This file is an end to end test for both CSFLE and QE. CSFLE is not supported in bulk_write mode,COMMENT
MEDIUM…esmokeconfig/matrix_suites/generated_suites/OWNERS.yml1# This file is AUTO-GENERATED by 'buildscripts/resmoke.py generate-matrix-suites'.COMMENT
MEDIUM…dscripts/resmokeconfig/powercycle/powercycle_tasks.yml3# This file contains additional options to run the powercycle task with.COMMENT
MEDIUM…onfig/setup_multiversion/setup_multiversion_config.yml1# This file contains the list of all build variants running on *ALL* Evergreen mongo waterfalls.COMMENT
MEDIUMbuildscripts/resmokelib/owners_generation.py185 "# This file is AUTO-GENERATED by 'buildscripts/resmoke.py generate-matrix-suites'.\n"CODE
MEDIUMbuildscripts/resmokelib/utils/autoloader.py30 # Create a synthetic module for the parent packageCOMMENT
MEDIUMbuildscripts/resmokelib/utils/otel_id_generator.py43 # Create a separate Random instance to avoid interfering with other uses of randomCOMMENT
MEDIUM…ts/resmokelib/extensions/generate_extension_configs.py109 # Create the output directory with restricted permissions so it is not world-writable. TheCOMMENT
MEDIUMbuildscripts/resmokelib/run/__init__.py133 # Create the resolved UUID directory eagerly so thatCOMMENT
MEDIUM…ripts/bazel_testbuilds/verify_resmoke_coredump_test.sh101# Create an expansions file that is like what will exist in the tests tasks.COMMENT
476 more matches not shown…
Decorative Section Separators443 hits · 1484 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml302# ---------------------------------------------------------------------------COMMENT
MEDIUMpyproject.toml304# ---------------------------------------------------------------------------COMMENT
MEDIUMpyproject.toml343# ---------------------------------------------------------------------------COMMENT
MEDIUMpyproject.toml345# ---------------------------------------------------------------------------COMMENT
MEDIUMevergreen/verify_extension_visibility_test.sh43# ------------------------------------------------------------------------------COMMENT
MEDIUMevergreen/verify_extension_visibility_test.sh51# ------------------------------------------------------------------------------COMMENT
MEDIUMevergreen/verify_extension_visibility_test.sh81# ------------------------------------------------------------------------------COMMENT
MEDIUMevergreen/verify_extension_visibility_test.sh90# ------------------------------------------------------------------------------COMMENT
MEDIUMevergreen/verify_extension_visibility_test.sh212# ------------------------------------------------------------------------------COMMENT
MEDIUMevergreen/verify_extension_visibility_test.sh222# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡evergreen/jepsen_docker/list-append-sls-sharded.sh15# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡evergreen/jepsen_docker/list-append-sls-sharded.sh18# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡evergreen/jepsen_docker/list-append-sls-sharded.sh22# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡evergreen/jepsen_docker/list-append-sls-sharded.sh26# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡evergreen/jepsen_docker/list-append-sls-rs.sh15# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡evergreen/jepsen_docker/list-append-sls-rs.sh18# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡evergreen/jepsen_docker/list-append-sls-rs.sh22# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡evergreen/jepsen_docker/list-append-sls-rs.sh26# ---------------------------------------------------------------------------COMMENT
MEDIUMbazel/auto_header/gen_all_headers.py313# ---------------------------------------------------------------------------COMMENT
MEDIUM…approval-recency/tests/integration/test_integration.py43# ---------------------------------------------------------------------------COMMENT
MEDIUM…approval-recency/tests/integration/test_integration.py45# ---------------------------------------------------------------------------COMMENT
MEDIUM…approval-recency/tests/integration/test_integration.py122# ---------------------------------------------------------------------------COMMENT
MEDIUM…approval-recency/tests/integration/test_integration.py124# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…approval-recency/tests/integration/test_integration.py155# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…approval-recency/tests/integration/test_integration.py157# ---------------------------------------------------------------------------COMMENT
MEDIUMbuildscripts/build_cargo_bazel_ppc64le.sh23# ---------------------------------------------------------------------------COMMENT
MEDIUMbuildscripts/idl/generate_ifr_registry.py33 # --------------------COMMENT
MEDIUMbuildscripts/idl/generate_ifr_registry.py50 # -----------COMMENT
MEDIUM⚡buildscripts/tests/test_compiledb_posthook.py48 # ------------------------------------------------------------------COMMENT
MEDIUM⚡buildscripts/tests/test_compiledb_posthook.py50 # ------------------------------------------------------------------COMMENT
MEDIUM⚡buildscripts/tests/test_compiledb_posthook.py138 # ------------------------------------------------------------------COMMENT
MEDIUM⚡buildscripts/tests/test_compiledb_posthook.py140 # ------------------------------------------------------------------COMMENT
MEDIUM⚡buildscripts/tests/test_compiledb_posthook.py283 # ------------------------------------------------------------------COMMENT
MEDIUM⚡buildscripts/tests/test_compiledb_posthook.py285 # ------------------------------------------------------------------COMMENT
MEDIUM⚡buildscripts/tests/test_compiledb_posthook.py293 # ------------------------------------------------------------------COMMENT
MEDIUM⚡buildscripts/tests/test_compiledb_posthook.py295 # ------------------------------------------------------------------COMMENT
MEDIUM⚡buildscripts/tests/test_compiledb_posthook.py306 # ------------------------------------------------------------------COMMENT
MEDIUM⚡buildscripts/tests/test_compiledb_posthook.py308 # ------------------------------------------------------------------COMMENT
MEDIUM…te_multi_op_sharded_collections_jscore_passthrough.yml42 # ----------------------------------------COMMENT
MEDIUM…te_multi_op_sharded_collections_jscore_passthrough.yml44 # ----------------------------------------COMMENT
MEDIUM…nfig/matrix_suites/overrides/with_mongot_extension.yml57# ---------------------------------------------------------------------------------------------COMMENT
MEDIUM…nfig/matrix_suites/overrides/with_mongot_extension.yml62# ---------------------------------------------------------------------------------------------COMMENT
MEDIUM…nfig/matrix_suites/overrides/with_mongot_extension.yml95# ---------------------------------------------------------------------------------------------COMMENT
MEDIUM…nfig/matrix_suites/overrides/with_mongot_extension.yml99# ---------------------------------------------------------------------------------------------COMMENT
MEDIUM…nfig/matrix_suites/overrides/with_mongot_extension.yml129# ---------------------------------------------------------------------------------------------COMMENT
MEDIUM…nfig/matrix_suites/overrides/with_mongot_extension.yml133# ---------------------------------------------------------------------------------------------COMMENT
MEDIUM…nfig/matrix_suites/overrides/with_mongot_extension.yml163# ---------------------------------------------------------------------------------------------COMMENT
MEDIUM…nfig/matrix_suites/overrides/with_mongot_extension.yml167# ---------------------------------------------------------------------------------------------COMMENT
MEDIUMbuildscripts/resmokelib/owners_generation.py102 # ── private helpers ───────────────────────────────────────────────────────COMMENT
MEDIUM…index/geo/geo_strict_polygon_in_geometry_collection.js89// ── insert + query on unindexed collection ──────────────────────────────────────────────────────COMMENT
MEDIUM…index/geo/geo_strict_polygon_in_geometry_collection.js124// ── insert into 2dsphere-indexed collection ─────────────────────────────────────────────────────COMMENT
MEDIUM…index/geo/geo_strict_polygon_in_geometry_collection.js144// ── createIndex on collection that already has the document ─────────────────────────────────────COMMENT
MEDIUM⚡jstests/replsets/nodes_prefer_primary_sync_source.js99// west ──────────▶ central ────────▶ eastCentral ───────────▶ eastCOMMENT
MEDIUM⚡jstests/replsets/nodes_prefer_primary_sync_source.js103// ├──── 55 ms ──────┼───────────────────┘ │COMMENT
MEDIUM⚡jstests/replsets/nodes_prefer_primary_sync_source.js105// │ └──────────── 50 ms ─────────────────────┤COMMENT
MEDIUM⚡jstests/replsets/nodes_prefer_primary_sync_source.js107// └──────────────────────── 300 ms ──────────────────────────┘COMMENT
MEDIUM…ore_sharding/ddl/timeseries_sharded_fixed_bucketing.js57// ── shardCollection behavior ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ore_sharding/ddl/timeseries_sharded_fixed_bucketing.js148// ── Global catalog — createCollection then shardCollection ────────────────────────────────────COMMENT
MEDIUM…ore_sharding/ddl/timeseries_sharded_fixed_bucketing.js198// ── Global catalog — collMod bucketing change on a sharded collection ─────────────────────────COMMENT
MEDIUM…hird_party/mozjs/extract/js/src/util/SpecialCasing.txt27# ================================================================================COMMENT
383 more matches not shown…
Unused Imports1299 hits · 1064 pts
SeverityFileLineSnippetContext
LOWmodules_poc/cindex.py51CODE
LOWmodules_poc/cindex.py70CODE
LOWmodules_poc/cindex.py76CODE
LOWetc/set_up_workstation_test.py1CODE
LOWevergreen/record_mongodb_server_version_test.py1CODE
LOWbazel/merge_tidy_configs.py12CODE
LOWbazel/gpg_signer.py14CODE
LOWbazel/gpg_signer_test.py1CODE
LOW…latforms/remote_execution_containers_generator_test.py1CODE
LOWbazel/platforms/remote_execution_containers_pr_test.py1CODE
LOWbazel/auto_header/ensure_fd.py14CODE
LOWbazel/wrapper_hook/wrapper_scripts_test.py3CODE
LOWbazel/wrapper_hook/quality_checks.py9CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py10CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py11CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py12CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py13CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py14CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py15CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py16CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py17CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py19CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py20CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py21CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py22CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py23CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py24CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py26CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py27CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py29CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py30CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py31CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py32CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py32CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py32CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py32CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py80CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py103CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py103CODE
LOWbazel/wrapper_hook/hermetic_container_integration.py103CODE
1239 more matches not shown…
Empty Error Handlers190 hits · 950 pts
SeverityFileLineSnippetContext
HIGHmodules_poc/cindex.py224except:CODE
HIGHevergreen/fetch_optional_s3_targz.py173except OSError:CODE
HIGHevergreen/validate_compile_commands.py259except OSError:CODE
HIGHbazel/bazelisk.py399except Exception:CODE
HIGHbazel/bazelisk.py505except KeyboardInterrupt:CODE
HIGHbazel/resmoke/derive_suite_selectors.py86except Exception:CODE
HIGHbazel/resmoke/generate_tss_test_list.py138except OSError:CODE
HIGHbazel/resmoke/download_historic_runtimes.py26except OSError:CODE
HIGHbazel/auto_header/auto_header.py291except FileNotFoundError:CODE
HIGHbazel/auto_header/auto_header.py293except Exception:CODE
HIGHbazel/auto_header/auto_header.py565except FileNotFoundError:CODE
HIGHbazel/auto_header/auto_header.py321except FileNotFoundError:CODE
HIGHbazel/auto_header/auto_header.py328except Exception:CODE
HIGHbazel/auto_header/gen_all_headers.py35except FileNotFoundError:CODE
HIGHbazel/auto_header/gen_all_headers.py215except FileNotFoundError:CODE
HIGHbazel/auto_header/gen_all_headers.py51except OSError:CODE
HIGHbazel/install_rules/install_rules.py332except FileNotFoundError:CODE
HIGHbazel/install_rules/install_rules.py445except FileNotFoundError:CODE
HIGHbazel/install_rules/install_rules.py553except FileNotFoundError:CODE
HIGHbazel/install_rules/install_rules.py369except OSError:CODE
HIGHbazel/wrapper_hook/compiledb.py209except OSError:CODE
HIGHbazel/wrapper_hook/compiledb.py535except IsADirectoryError:CODE
HIGHbazel/wrapper_hook/compiledb.py537except PermissionError:CODE
HIGHbazel/wrapper_hook/compiledb.py547except OSError:CODE
HIGHbazel/wrapper_hook/compiledb.py128except (ValueError, OSError):CODE
HIGHbazel/wrapper_hook/compiledb.py149except (AttributeError, OSError):CODE
HIGHbazel/wrapper_hook/compiledb.py1021except OSError:CODE
HIGHbazel/wrapper_hook/compiledb.py181except OSError:CODE
HIGHbazel/wrapper_hook/compiledb.py194except OSError:CODE
HIGHbazel/wrapper_hook/install_modules.py466except OSError:CODE
HIGHbazel/wrapper_hook/generate_common_bes_bazelrc.py82except Exception:CODE
HIGHbazel/wrapper_hook/generate_common_bes_bazelrc.py43except Exception:CODE
HIGHbazel/wrapper_hook/generate_common_bes_bazelrc.py59except Exception:CODE
HIGHbazel/wrapper_hook/generate_common_bes_bazelrc.py64except Exception:CODE
HIGHbazel/wrapper_hook/generate_common_bes_bazelrc.py70except Exception:CODE
HIGHbazel/wrapper_hook/generate_common_bes_bazelrc.py54except Exception:CODE
HIGHbazel/wrapper_hook/plus_interface.py343except ValueError:CODE
HIGHbazel/wrapper_hook/hermetic_container/symlinks.py363except OSError:CODE
HIGHbazel/wrapper_hook/hermetic_container/download.py38except OSError:CODE
HIGHbazel/wrapper_hook/hermetic_container/fsutil.py373except OSError:CODE
HIGHbazel/wrapper_hook/hermetic_container/fsutil.py396except OSError:CODE
HIGHbazel/wrapper_hook/hermetic_container/fsutil.py104except FileNotFoundError:CODE
HIGHbazel/wrapper_hook/hermetic_container/cross/common.py161except OSError:CODE
HIGHbazel/wrapper_hook/hermetic_container/cross/linux.py1079except OSError:CODE
HIGHbazel/wrapper_hook/hermetic_container/cross/linux.py1047except FileExistsError:CODE
HIGH…ins/cc/mongo_apple_cross/macos_cross_action_wrapper.py111except FileExistsError:CODE
HIGH…/cc/mongo_linux/linux_container_action_wrapper_test.py85except (OSError, ValueError):CODE
HIGH…hains/cc/mongo_linux/linux_container_action_wrapper.py235except FileExistsError:CODE
HIGH…hains/cc/mongo_linux/linux_container_action_wrapper.py258except OSError:CODE
HIGH…hains/cc/mongo_linux/linux_container_action_wrapper.py530except OSError:CODE
HIGH…hains/cc/mongo_linux/linux_container_action_wrapper.py1009except OSError:CODE
HIGHbuildscripts/mongosymb.py790except (TypeError, AttributeError):CODE
HIGHbuildscripts/mongosymb.py803except json.JSONDecodeError:CODE
HIGHbuildscripts/mongosymb.py826except FileExistsError:CODE
HIGHbuildscripts/bazel_burn_in.py208except:CODE
HIGHbuildscripts/bazel_burn_in.py212except:CODE
HIGHbuildscripts/clang_tidy_vscode.py147except ValueError:CODE
HIGHbuildscripts/cs_suggest_variants.py778except (TypeError, ValueError):CODE
HIGHbuildscripts/simple_report.py64except NameError:CODE
HIGHbuildscripts/simple_report.py66except IOError:CODE
130 more matches not shown…
Deep Nesting610 hits · 562 pts
SeverityFileLineSnippetContext
LOWmodules_poc/browse.py676CODE
LOWmodules_poc/browse.py407CODE
LOWmodules_poc/merge_decls.py42CODE
LOWmodules_poc/merge_decls.py198CODE
LOWmodules_poc/mod_scanner.py255CODE
LOWmodules_poc/mod_scanner.py965CODE
LOWmodules_poc/mod_scanner.py103CODE
LOWmodules_poc/mod_mapping.py173CODE
LOWmodules_poc/private_headers.py65CODE
LOWmodules_poc/private_headers.py108CODE
LOWmodules_poc/private_headers.py159CODE
LOWevergreen/validate_compile_commands_test.py22CODE
LOWevergreen/fetch_optional_s3_targz.py72CODE
LOWevergreen/validate_compile_commands.py296CODE
LOWevergreen/validate_compile_commands.py421CODE
LOWevergreen/validate_compile_commands.py622CODE
LOWevergreen/validate_compile_commands.py855CODE
LOWevergreen/activate_task.py13CODE
LOWevergreen/functions/code_coverage_data_process.py49CODE
LOWx509/mkcert.py425CODE
LOWx509/mkcert.py532CODE
LOWx509/mkcert.py319CODE
LOWbazel/bazelisk.py107CODE
LOWbazel/bazelisk.py186CODE
LOWbazel/bazelisk.py408CODE
LOWbazel/bazelisk.py450CODE
LOWbazel/resmoke/resmoke_shim.py45CODE
LOWbazel/resmoke/resmoke_shim.py95CODE
LOWbazel/resmoke/query_correctness_corpus_fetch.py37CODE
LOWbazel/resmoke/derive_suite_selectors.py47CODE
LOWbazel/resmoke/derive_suite_selectors.py228CODE
LOWbazel/resmoke/resource_monitor.py45CODE
LOWbazel/resmoke/resource_monitor.py74CODE
LOWbazel/resmoke/generate_tss_test_list.py129CODE
LOWbazel/resmoke/generate_tss_test_list.py360CODE
LOWbazel/resmoke/download_historic_runtimes.py18CODE
LOW…zel/platforms/remote_execution_containers_generator.py91CODE
LOWbazel/platforms/remote_execution_containers_pr_test.py94CODE
LOWbazel/auto_header/auto_header.py556CODE
LOWbazel/auto_header/auto_header.py570CODE
LOWbazel/auto_header/gen_all_headers.py16CODE
LOWbazel/auto_header/gen_all_headers.py57CODE
LOWbazel/auto_header/gen_all_headers.py204CODE
LOWbazel/install_rules/install_rules.py290CODE
LOWbazel/install_rules/install_rules.py336CODE
LOWbazel/install_rules/install_rules.py378CODE
LOWbazel/install_rules/install_rules.py437CODE
LOWbazel/install_rules/install_rules.py467CODE
LOWbazel/install_rules/install_rules_script_test.py518CODE
LOWbazel/install_rules/install_rules_script_test.py1231CODE
LOWbazel/install_rules/install_rules_script_test.py1304CODE
LOWbazel/format/rules_lint_format_wrapper.py69CODE
LOWbazel/format/rules_lint_format_wrapper.py103CODE
LOWbazel/wrapper_hook/compiledb.py52CODE
LOWbazel/wrapper_hook/compiledb.py132CODE
LOWbazel/wrapper_hook/compiledb.py309CODE
LOWbazel/wrapper_hook/compiledb.py578CODE
LOWbazel/wrapper_hook/compiledb.py613CODE
LOWbazel/wrapper_hook/compiledb.py716CODE
LOWbazel/wrapper_hook/compiledb.py744CODE
550 more matches not shown…
Verbosity Indicators274 hits · 500 pts
SeverityFileLineSnippetContext
LOW⚡…kelib/testing/hooks/generate_and_check_perf_results.py1230 # Step 1: get the statistic type.COMMENT
LOW⚡…kelib/testing/hooks/generate_and_check_perf_results.py1236 # Step 2: Get the thread count and name.COMMENT
LOW⚡…kelib/testing/hooks/generate_and_check_perf_results.py1245 # Step 3: Remove any explicit iteration count from the base name.COMMENT
LOW⚡jstests/query_golden/libs/plan_stability_utils.js434 // JSON does not allow trailing commas, so we need to check if there are more fields after the "rows" fieldCOMMENT
LOW⚡jstests/query_golden/libs/plan_stability_utils.js443 // JSON does not allow trailing commas, so we need to check if there are more fields after the "result" fielCOMMENT
LOW⚡…ry_golden/test_inputs/simple_plan_stability_dataset.js24 // Step 1: Calculate the normalization constantCOMMENT
LOW⚡…ry_golden/test_inputs/simple_plan_stability_dataset.js30 // Step 2: Generate the Zipfian probabilitiesCOMMENT
LOW⚡…ry_golden/test_inputs/simple_plan_stability_dataset.js36 // Step 3: Generate the output list based on probabilitiesCOMMENT
LOW⚡jstests/sharding/libs/proxy_protocol_server.py413 # Step 1: Stop accepting new connectionsCOMMENT
LOW⚡jstests/sharding/libs/proxy_protocol_server.py421 # Step 2: Close existing client connections gracefullyCOMMENT
LOW⚡jstests/sharding/libs/proxy_protocol_server.py429 # Step 3: Schedule abort as a safety fallback after 1 secondCOMMENT
LOW…tests/sharding/libs/set_allow_chunk_operations_util.js34 // Step 1: config-server write. It is a retryable write, so use a fresh session.COMMENT
LOW…tests/sharding/libs/set_allow_chunk_operations_util.js57 // Step 2: broadcast the command to every shard in the cluster. It must be a retryable writeCOMMENT
LOW…streams/change_stream_collection_v2_strict_whitebox.js278 // Step 1: Move [10, MaxKey) to shard1 - partial, shard0 still has 2 chunks.COMMENT
LOW…streams/change_stream_collection_v2_strict_whitebox.js300 // Step 2: Move [-10, 10) to shard2 -- partial, shard0 still has 1 chunk. Now 3 shards.COMMENT
LOW…streams/change_stream_collection_v2_strict_whitebox.js322 // Step 3: Move [MinKey, -10) to shard1 -- full drain, shard0 has 0 chunks.COMMENT
LOW…e_streams/change_stream_database_v2_strict_whitebox.js281 // Step 1: Move [10, MaxKey) to shard1 - placement refresh re-evaluates, cursors on shard0 + shard1.COMMENT
LOW…e_streams/change_stream_database_v2_strict_whitebox.js298 // Step 2: Move [-10, 10) to shard2 - placement refresh, now 3 shards.COMMENT
LOW…e_streams/change_stream_database_v2_strict_whitebox.js315 // Step 3: Move [MinKey, -10) to shard1 - all chunks off shard0, but shard0 is stillCOMMENT
LOWjstests/libs/crud_ops_to_bulk_write_lib.js272 * The purpose of this function is to take a server response from a bulkWrite command and toCOMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js112 // Step 1: For each state, compute shortest paths to all other states using BFS.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js115 // Step 2: For each state, record unvisited actions.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js118 // Step 3: Select starting state.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js123 // Step 4: While there are unvisited actions.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js460 // Step 1: Determine target shard key from action mapping.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js465 // Step 2: Build collection context copy.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js469 // Step 3: Pre-commands.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js531 // Step 4: Main command.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js534 // Step 5: Post-commands.COMMENT
LOW…query/prepare_constraint_validation_level_failpoint.js31// Step 1: start a non-conforming bypass write in a parallel shell; it will pause at the failpoint.COMMENT
LOW⚡…query/prepare_constraint_validation_level_failpoint.js49// Step 2: wait for the write to pause (it now holds the collection IX lock).COMMENT
LOW⚡…query/prepare_constraint_validation_level_failpoint.js52// Step 3: start the collMod in a parallel shell; it will wait for the X lock.COMMENT
LOW…query/prepare_constraint_validation_level_failpoint.js78// Step 4: start a second bypass write. The collMod X lock is already queued, so this write willCOMMENT
LOW…query/prepare_constraint_validation_level_failpoint.js97// Step 5: release the failpoint so the first write can complete.COMMENT
LOW…hWithMongod/query/explain/explain_with_backup_plans.js116 // Step 1: Verify the backup plan exists via queryPlanner explain.COMMENT
LOW…hWithMongod/query/explain/explain_with_backup_plans.js137 // Step 2: Verify the backup plan is actually executed when the sort exceeds memory.COMMENT
LOW⚡…pology/config_server_shard_registry_stale_secondary.js46// Step 1: Establish initial configTime. All config RS members are in sync.COMMENT
LOW⚡…pology/config_server_shard_registry_stale_secondary.js55// Step 2: Stop replication on one secondary to make it stale.COMMENT
LOW…pology/config_server_shard_registry_stale_secondary.js71// Step 3: Isolate the config primary's RSM so the only reachable member is the stale secondary.COMMENT
LOW⚡…on_control/deprioritization_stats_and_observability.js95 // Step 1: ensure the statistic schema is correct.COMMENT
LOW⚡…on_control/deprioritization_stats_and_observability.js102 // Step 2: compare the statistics. The caller tries to assert compFunc(obj1, obj2).COMMENT
LOW…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js43// Step 1: Pause just before generateSample() so that we can arm setYieldAllLocksHang afterCOMMENT
LOW⚡…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js56// Step 2: Wait for planning to complete (multikey = false in IndexScanNode).COMMENT
LOW⚡…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js59// Step 3: Arm the yield failpoint so we catch the first yield inside the sampling scan.COMMENT
LOW⚡…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js66// Step 4: Wait for the sampling scan to yield.COMMENT
LOW⚡…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js69// Step 5: Insert an array-valued document, making the compound index multikey on path 'a'.COMMENT
LOW⚡…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js73// Step 6: Release the yield. The scan resumes on a new snapshot that includes {a:[1,2,3]}.COMMENT
LOW…rty/mozjs/extract/js/src/frontend/DecoratorEmitter.cpp89 // We need to check if the decorator returned undefined, a callable value,COMMENT
LOW…rty/mozjs/extract/js/src/frontend/DecoratorEmitter.cpp231 // We need to check if the decorator returned undefined, a callable value,COMMENT
LOW…rty/mozjs/extract/js/src/frontend/DecoratorEmitter.cpp419 // We need to check if the decorator returned undefined, a callable value,COMMENT
LOWsrc/third_party/mozjs/extract/js/src/wasm/WasmTypeDef.h860 // We need to check if `superTypeDef` is one of `subTypeDef`s super typesCOMMENT
LOWsrc/third_party/mozjs/extract/js/src/vm/BigIntType.cpp2972 // Step 4: If `mod >= 2**(bits - 1)`, return `mod - 2**bits`; otherwise,COMMENT
LOW…third_party/mozjs/extract/js/src/vm/AsyncIteration.cpp59 // Step 1: Assert...COMMENT
LOWsrc/third_party/mozjs/extract/js/src/vm/Modules.cpp1677 // Step 1: If module is not a Cyclic Module Record, thenCOMMENT
LOW…third_party/mozjs/extract/js/src/debugger/Debugger.cpp3983 // But since the purpose of this function is to retrieve such edges, if theyCOMMENT
LOW…d_party/mozjs/extract/js/src/builtin/AtomicsObject.cpp887 // Step 3: Append waiterRecord to WL.[[Waiters]].COMMENT
LOW…d_party/mozjs/extract/js/src/builtin/AtomicsObject.cpp1046 // Step 17: Enter critical section.COMMENT
LOW…d_party/mozjs/extract/js/src/builtin/AtomicsObject.cpp1122 // Step 31: Leave critical section.COMMENT
LOWsrc/third_party/mozjs/extract/js/src/builtin/Symbol.cpp163 // Step 3: omitted.COMMENT
LOW⚡…c/third_party/mozjs/extract/js/src/builtin/Iterator.js1168 // Step 1: If start is NaN, throw a RangeError exception.COMMENT
214 more matches not shown…
Cross-File Repetition100 hits · 500 pts
SeverityFileLineSnippetContext
HIGHbazel/format/rules_lint_format_wrapper.py0query git to get a list of files in the repo from a diff.STRING
HIGHbazel/wrapper_hook/lint.py0query git to get a list of files in the repo from a diff.STRING
HIGHbuildscripts/linter/git.py0query git to get a list of files in the repo from a diff.STRING
HIGHbuildscripts/idl/tests/test_parser.py0feature_flags: featureflagtoaster: description: "make toast" cpp_varname: gtoaster fcv_gated: trueSTRING
HIGHbuildscripts/idl/tests/test_generator.py0feature_flags: featureflagtoaster: description: "make toast" cpp_varname: gtoaster fcv_gated: trueSTRING
HIGHbuildscripts/idl/tests/test_binder.py0feature_flags: featureflagtoaster: description: "make toast" cpp_varname: gtoaster fcv_gated: trueSTRING
HIGHbuildscripts/tests/test_validate_mongocryptd.py0return a full name from a name relative to the test module"s name space.STRING
HIGHbuildscripts/tests/burn_in/test_burn_in.py0return a full name from a name relative to the test module"s name space.STRING
HIGHbuildscripts/tests/timeouts/test_timeout_service.py0return a full name from a name relative to the test module"s name space.STRING
HIGHbuildscripts/tests/patch_builds/test_change_data.py0return a full name from a name relative to the test module"s name space.STRING
HIGH…ts/tests/resmokelib/hang_analyzer/test_process_list.py0return a full name from a name relative to the test module"s name space.STRING
HIGHbuildscripts/tests/resmokelib/testing/test_executor.py0return a full name from a name relative to the test module"s name space.STRING
HIGH…nd/testfiles/test_fixture_env_vars_with_uds_replset.py0test that mongodb_fixture_type environment variable is set.STRING
HIGH…nd/testfiles/test_fixture_env_vars_with_uds_sharded.py0test that mongodb_fixture_type environment variable is set.STRING
HIGH…ke_end2end/testfiles/test_fixture_env_vars_with_uds.py0test that mongodb_fixture_type environment variable is set.STRING
HIGH…nd/testfiles/test_fixture_env_vars_with_uds_replset.py0test that mongodb_connection_string is still set even with uds.STRING
HIGH…nd/testfiles/test_fixture_env_vars_with_uds_sharded.py0test that mongodb_connection_string is still set even with uds.STRING
HIGH…ke_end2end/testfiles/test_fixture_env_vars_with_uds.py0test that mongodb_connection_string is still set even with uds.STRING
HIGHbuildscripts/tests/resmokelib/testing/test_job.py0unit tests for the resmokelib.testing.executor module.STRING
HIGH…scripts/tests/resmokelib/testing/test_queue_element.py0unit tests for the resmokelib.testing.executor module.STRING
HIGHbuildscripts/tests/resmokelib/testing/test_executor.py0unit tests for the resmokelib.testing.executor module.STRING
HIGHbuildscripts/resmokelib/plugin.py0add parser options for this plugin. :param subparsers: argparse subparsersSTRING
HIGHbuildscripts/resmokelib/multiversion/__init__.py0add parser options for this plugin. :param subparsers: argparse subparsersSTRING
HIGHbuildscripts/resmokelib/discovery/__init__.py0add parser options for this plugin. :param subparsers: argparse subparsersSTRING
HIGH…dscripts/resmokelib/testing/hooks/dbhash_background.py0signal the background thread to exit, and wait until it does.STRING
HIGH…dscripts/resmokelib/testing/hooks/analyze_shard_key.py0signal the background thread to exit, and wait until it does.STRING
HIGHbuildscripts/resmokelib/testing/hooks/bghook.py0signal the background thread to exit, and wait until it does.STRING
HIGHbuildscripts/resmokelib/testing/hooks/secondary_lag.py0signal the background thread to exit, and wait until it does.STRING
HIGHbuildscripts/resmokelib/testing/hooks/change_streams.py0signal the background thread to exit, and wait until it does.STRING
HIGH…testing/hooks/check_multikey_consistency_background.py0signal the background thread to exit, and wait until it does.STRING
HIGH…scripts/resmokelib/testing/hooks/dbcheck_background.py0signal the background thread to exit, and wait until it does.STRING
HIGH…smokelib/testing/hooks/metrics_filtering_background.py0signal the background thread to exit, and wait until it does.STRING
HIGHbuildscripts/resmokelib/testing/hooks/background_job.py0signal the background thread to exit, and wait until it does.STRING
HIGH…cripts/resmokelib/testing/hooks/reconfig_background.py0signal the background thread to exit, and wait until it does.STRING
HIGH…dscripts/resmokelib/testing/hooks/dbhash_background.py0instruct the background thread to run the dbcheck check while 'test' is also running.STRING
HIGH…testing/hooks/check_multikey_consistency_background.py0instruct the background thread to run the dbcheck check while 'test' is also running.STRING
HIGH…scripts/resmokelib/testing/hooks/dbcheck_background.py0instruct the background thread to run the dbcheck check while 'test' is also running.STRING
HIGH…dscripts/resmokelib/testing/hooks/dbhash_background.py0instruct the background thread to stop running reconfigs now that 'test' has finished running.STRING
HIGH…cripts/resmokelib/testing/hooks/validate_background.py0instruct the background thread to stop running reconfigs now that 'test' has finished running.STRING
HIGHbuildscripts/resmokelib/testing/hooks/secondary_lag.py0instruct the background thread to stop running reconfigs now that 'test' has finished running.STRING
HIGH…scripts/resmokelib/testing/hooks/dbcheck_background.py0instruct the background thread to stop running reconfigs now that 'test' has finished running.STRING
HIGH…ipts/resmokelib/testing/hooks/fcv_upgrade_downgrade.py0instruct the background thread to stop running reconfigs now that 'test' has finished running.STRING
HIGH…cripts/resmokelib/testing/hooks/reconfig_background.py0instruct the background thread to stop running reconfigs now that 'test' has finished running.STRING
HIGHsrc/third_party/mozjs/extract/js/src/GeneratePrefs.py0\ /* this source code form is subject to the terms of the mozilla public * license, v. 2.0. if a copy of the mpl was notSTRING
HIGH…ty/mozjs/extract/js/src/wasm/GenerateBuiltinModules.py0\ /* this source code form is subject to the terms of the mozilla public * license, v. 2.0. if a copy of the mpl was notSTRING
HIGH…ty/mozjs/extract/js/src/jit/GenerateABIFunctionType.py0\ /* this source code form is subject to the terms of the mozilla public * license, v. 2.0. if a copy of the mpl was notSTRING
HIGH…ird_party/mozjs/extract/js/src/jit/GenerateLIRFiles.py0\ /* this source code form is subject to the terms of the mozilla public * license, v. 2.0. if a copy of the mpl was notSTRING
HIGH…party/mozjs/extract/js/src/jit/GenerateCacheIRFiles.py0\ /* this source code form is subject to the terms of the mozilla public * license, v. 2.0. if a copy of the mpl was notSTRING
HIGH…ird_party/mozjs/extract/js/src/jit/GenerateMIRFiles.py0\ /* this source code form is subject to the terms of the mozilla public * license, v. 2.0. if a copy of the mpl was notSTRING
HIGHsrc/third_party/wiredtiger/test/suite/test_config02.py0create entries, and read back in a cursor: key=string, value=stringSTRING
HIGHsrc/third_party/wiredtiger/test/suite/test_env01.py0create entries, and read back in a cursor: key=string, value=stringSTRING
HIGHsrc/third_party/wiredtiger/test/suite/test_base03.py0create entries, and read back in a cursor: key=string, value=stringSTRING
HIGHsrc/third_party/wiredtiger/test/suite/test_cursor04.py0create entries, and read back in a cursor: key=string, value=stringSTRING
HIGHsrc/third_party/wiredtiger/test/suite/test_base05.py0create entries, and read back in a cursor: key=string, value=stringSTRING
HIGHsrc/third_party/wiredtiger/test/suite/test_config04.py0create entries, and read back in a cursor: key=string, value=stringSTRING
HIGH…d_party/wiredtiger/test/suite/test_layered_stepup04.py0open a follower and apply the given checkpoint metadata.STRING
HIGH…party/wiredtiger/test/suite/test_prepare_discover10.py0open a follower and apply the given checkpoint metadata.STRING
HIGH…_party/wiredtiger/test/suite/test_layered_prepare09.py0open a follower and apply the given checkpoint metadata.STRING
HIGH…y/wiredtiger/test/suite/test_disagg_fast_truncate01.py0fast-truncate the configured key range at truncate_ts.STRING
HIGH…y/wiredtiger/test/suite/test_disagg_fast_truncate03.py0fast-truncate the configured key range at truncate_ts.STRING
40 more matches not shown…
Structural Annotation Overuse267 hits · 494 pts
SeverityFileLineSnippetContext
LOW⚡etc/coverity_models/codexm/CODEXM_LESSONS_LEARNED.md255// Step 1: Find pattern A in the function — binds result in outer scopeCOMMENT
LOW⚡etc/coverity_models/codexm/CODEXM_LESSONS_LEARNED.md258// Step 2: Derive additional context from result ACOMMENT
LOW⚡etc/coverity_models/codexm/CODEXM_LESSONS_LEARNED.md261// Step 3: Find pattern B in the SAME function — can use resultA and derivedCOMMENT
LOW⚡etc/coverity_models/codexm/CODEXM_LESSONS_LEARNED.md265// Step 4: Connect A and B via symbol equality (list exists inherits outer scope)COMMENT
LOWdocs/devcontainer/getting-started.md209### Step 1: Clone Repository in Named Container VolumeCOMMENT
LOWdocs/devcontainer/getting-started.md276### Step 2: Verify Your SetupCOMMENT
LOWdocs/devcontainer/getting-started.md328### Step 3: Understanding Your EnvironmentCOMMENT
LOW…fig/matrix_suites/overrides/rate_limiter_with_auth.yml15### IMPORTANT: Don't override 'eval' in shell_options - use the 'eval:' keyCOMMENT
LOW⚡…kelib/testing/hooks/generate_and_check_perf_results.py1230 # Step 1: get the statistic type.COMMENT
LOW⚡…kelib/testing/hooks/generate_and_check_perf_results.py1236 # Step 2: Get the thread count and name.COMMENT
LOW⚡…kelib/testing/hooks/generate_and_check_perf_results.py1245 # Step 3: Remove any explicit iteration count from the base name.COMMENT
LOW⚡…ry_golden/test_inputs/simple_plan_stability_dataset.js24 // Step 1: Calculate the normalization constantCOMMENT
LOW⚡…ry_golden/test_inputs/simple_plan_stability_dataset.js30 // Step 2: Generate the Zipfian probabilitiesCOMMENT
LOW⚡…ry_golden/test_inputs/simple_plan_stability_dataset.js36 // Step 3: Generate the output list based on probabilitiesCOMMENT
LOWjstests/sharding/large_chunk.js19// Step 1 - Test moving a large chunkCOMMENT
LOW⚡jstests/sharding/libs/proxy_protocol_server.py413 # Step 1: Stop accepting new connectionsCOMMENT
LOW⚡jstests/sharding/libs/proxy_protocol_server.py421 # Step 2: Close existing client connections gracefullyCOMMENT
LOW⚡jstests/sharding/libs/proxy_protocol_server.py429 # Step 3: Schedule abort as a safety fallback after 1 secondCOMMENT
LOW…tests/sharding/libs/set_allow_chunk_operations_util.js34 // Step 1: config-server write. It is a retryable write, so use a fresh session.COMMENT
LOW…tests/sharding/libs/set_allow_chunk_operations_util.js57 // Step 2: broadcast the command to every shard in the cluster. It must be a retryable writeCOMMENT
LOW…streams/change_stream_collection_v2_strict_whitebox.js278 // Step 1: Move [10, MaxKey) to shard1 - partial, shard0 still has 2 chunks.COMMENT
LOW…streams/change_stream_collection_v2_strict_whitebox.js300 // Step 2: Move [-10, 10) to shard2 -- partial, shard0 still has 1 chunk. Now 3 shards.COMMENT
LOW…streams/change_stream_collection_v2_strict_whitebox.js322 // Step 3: Move [MinKey, -10) to shard1 -- full drain, shard0 has 0 chunks.COMMENT
LOW…e_streams/change_stream_database_v2_strict_whitebox.js281 // Step 1: Move [10, MaxKey) to shard1 - placement refresh re-evaluates, cursors on shard0 + shard1.COMMENT
LOW…e_streams/change_stream_database_v2_strict_whitebox.js298 // Step 2: Move [-10, 10) to shard2 - placement refresh, now 3 shards.COMMENT
LOW…e_streams/change_stream_database_v2_strict_whitebox.js315 // Step 3: Move [MinKey, -10) to shard1 - all chunks off shard0, but shard0 is stillCOMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js112 // Step 1: For each state, compute shortest paths to all other states using BFS.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js115 // Step 2: For each state, record unvisited actions.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js118 // Step 3: Select starting state.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js123 // Step 4: While there are unvisited actions.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js460 // Step 1: Determine target shard key from action mapping.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js465 // Step 2: Build collection context copy.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js469 // Step 3: Pre-commands.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js531 // Step 4: Main command.COMMENT
LOW⚡…nge_stream/change_stream_sharding_command_generator.js534 // Step 5: Post-commands.COMMENT
LOW…query/prepare_constraint_validation_level_failpoint.js31// Step 1: start a non-conforming bypass write in a parallel shell; it will pause at the failpoint.COMMENT
LOW⚡…query/prepare_constraint_validation_level_failpoint.js49// Step 2: wait for the write to pause (it now holds the collection IX lock).COMMENT
LOW⚡…query/prepare_constraint_validation_level_failpoint.js52// Step 3: start the collMod in a parallel shell; it will wait for the X lock.COMMENT
LOW…query/prepare_constraint_validation_level_failpoint.js78// Step 4: start a second bypass write. The collMod X lock is already queued, so this write willCOMMENT
LOW…query/prepare_constraint_validation_level_failpoint.js97// Step 5: release the failpoint so the first write can complete.COMMENT
LOW…hWithMongod/query/explain/explain_with_backup_plans.js116 // Step 1: Verify the backup plan exists via queryPlanner explain.COMMENT
LOW…hWithMongod/query/explain/explain_with_backup_plans.js137 // Step 2: Verify the backup plan is actually executed when the sort exceeds memory.COMMENT
LOW⚡…pology/config_server_shard_registry_stale_secondary.js46// Step 1: Establish initial configTime. All config RS members are in sync.COMMENT
LOW⚡…pology/config_server_shard_registry_stale_secondary.js55// Step 2: Stop replication on one secondary to make it stale.COMMENT
LOW…pology/config_server_shard_registry_stale_secondary.js71// Step 3: Isolate the config primary's RSM so the only reachable member is the stale secondary.COMMENT
LOW⚡…on_control/deprioritization_stats_and_observability.js95 // Step 1: ensure the statistic schema is correct.COMMENT
LOW⚡…on_control/deprioritization_stats_and_observability.js102 // Step 2: compare the statistics. The caller tries to assert compFunc(obj1, obj2).COMMENT
LOW…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js43// Step 1: Pause just before generateSample() so that we can arm setYieldAllLocksHang afterCOMMENT
LOW⚡…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js56// Step 2: Wait for planning to complete (multikey = false in IndexScanNode).COMMENT
LOW⚡…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js59// Step 3: Arm the yield failpoint so we catch the first yield inside the sampling scan.COMMENT
LOW⚡…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js66// Step 4: Wait for the sampling scan to yield.COMMENT
LOW⚡…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js69// Step 5: Insert an array-valued document, making the compound index multikey on path 'a'.COMMENT
LOW⚡…/noPassthrough/query/cbr/ndv_estimate_multikey_race.js73// Step 6: Release the yield. The scan resumes on a new snapshot that includes {a:[1,2,3]}.COMMENT
LOWsrc/third_party/mozjs/README.md9## Step 1: Update the MozJS versionCOMMENT
LOWsrc/third_party/mozjs/README.md14## Step 2: Make sure you have `autoconf2.13` installed.COMMENT
LOW⚡src/third_party/mozjs/README.md48## Step 2: Checkout the branch of `mongo` repository used for MozJS upgradeCOMMENT
LOW⚡src/third_party/mozjs/README.md57## Step 3: Get MozJS sourcesCOMMENT
LOW⚡src/third_party/mozjs/README.md65## Step 4: Extract MozJS sourcesCOMMENT
LOW⚡src/third_party/mozjs/README.md73## Step 5: Generate platform-specific codeCOMMENT
LOW…c/third_party/mozjs/extract/js/src/wasm/WasmInstance.h473 // NOTE: This method only works for element segments that use the indexCOMMENT
207 more matches not shown…
Excessive Try-Catch Wrapping420 hits · 488 pts
SeverityFileLineSnippetContext
LOWmodules_poc/upload.py39 except Exception as e:CODE
MEDIUMmodules_poc/private_headers.py55 print("Error: merged_decls.json not found. Run merge_decls.py first.")CODE
LOWmodules_poc/private_headers.py154 except Exception as e:CODE
LOWmodules_poc/private_headers.py193 except Exception as e:CODE
MEDIUMmodules_poc/private_headers.py194 print(f"Error modifying IDL {idl_path}: {e}")CODE
LOWevergreen/validate_compile_commands.py285 except Exception as e:CODE
LOWevergreen/functions/upload_sbom_via_silkbomb.py36 except Exception as e:CODE
MEDIUMevergreen/functions/upload_sbom_via_silkbomb.py37 print(f"Error retrieving changed files: {e}")CODE
MEDIUMevergreen/functions/upload_sbom_via_silkbomb.py105 print(f"Error during ECR authentication:\n--- STDERR ---\n{e.stderr}")CODE
MEDIUMevergreen/functions/upload_sbom_via_silkbomb.py113 print(f"Error: '{container_command}' command not found.")CODE
MEDIUMevergreen/functions/upload_sbom_via_silkbomb.py205 print(f"Error: SBOM file not found at path: {str(sbom_path.resolve())}")CODE
LOWevergreen/functions/upload_sbom_via_silkbomb.py263 except Exception as e:CODE
LOW…s/security_reporting_scripts/upload_to_google_drive.py81 except Exception as e:CODE
MEDIUM.devcontainer/s3_artifact_utils.py58 print(f"Error querying S3: {e}", file=sys.stderr)CODE
LOWx509/mkcert.py898 except Exception as e:CODE
LOWbazel/bazelisk.py85 except Exception:CODE
LOWbazel/bazelisk.py399 except Exception:CODE
LOWbazel/resmoke/resmoke_shim.py283 except Exception as e:CODE
LOWbazel/resmoke/resmoke_shim.py296 except Exception as e:CODE
LOWbazel/resmoke/derive_suite_selectors.py86 except Exception:CODE
LOWbazel/resmoke/derive_suite_selectors.py249 except Exception as e:CODE
LOWbazel/resmoke/derive_suite_selectors.py316 except Exception as e:CODE
LOWbazel/resmoke/resource_monitor.py191 except Exception as e:CODE
LOWbazel/resmoke/resource_monitor.py232 except Exception as e:CODE
LOWbazel/resmoke/resource_monitor.py245 except Exception as e:CODE
LOWbazel/resmoke/resource_monitor.py256 except Exception as e:CODE
LOWbazel/resmoke/resource_monitor.py284 except Exception as e:CODE
LOWbazel/resmoke/resource_monitor.py306 except Exception as e:CODE
LOWbazel/resmoke/resource_monitor.py322 except Exception as e:CODE
LOWbazel/resmoke/resource_monitor.py341 except Exception as e:CODE
LOW⚡bazel/resmoke/resource_monitor.py628 except Exception as e:CODE
LOW⚡bazel/resmoke/resource_monitor.py630 except Exception as e:CODE
LOWbazel/resmoke/generate_tss_test_list.py444 except Exception:CODE
LOWbazel/resmoke/download_historic_runtimes.py40 except Exception:CODE
LOWbazel/auto_header/auto_header.py293 except Exception:CODE
LOWbazel/auto_header/auto_header.py328 except Exception:CODE
LOWbazel/auto_header/auto_header.py768 except Exception as e:STRING
LOWbazel/auto_header/auto_header.py822 except Exception as e:STRING
MEDIUMbazel/auto_header/auto_header.py284def _load_manifest_dirs() -> set[str]:CODE
LOWbazel/auto_header/gen_all_headers.py47 except Exception:CODE
LOWbazel/auto_header/gen_all_headers.py62 except Exception:CODE
LOWbazel/auto_header/gen_all_headers.py303 except Exception as e:CODE
LOWbazel/auto_header/ensure_fd.py99 except Exception:CODE
LOWbazel/auto_header/ensure_fd.py194 except Exception:CODE
MEDIUMbazel/format/rules_lint_format_wrapper.py21 print(f"Error running git command: {' '.join(command)}")CODE
LOW⚡bazel/wrapper_hook/generate_common_bes_bazelrc.py36 except Exception:CODE
LOW⚡bazel/wrapper_hook/generate_common_bes_bazelrc.py43 except Exception:CODE
LOW⚡bazel/wrapper_hook/generate_common_bes_bazelrc.py51 except Exception:CODE
LOW⚡bazel/wrapper_hook/generate_common_bes_bazelrc.py54 except Exception:CODE
LOW⚡bazel/wrapper_hook/generate_common_bes_bazelrc.py59 except Exception:CODE
LOW⚡bazel/wrapper_hook/generate_common_bes_bazelrc.py64 except Exception:CODE
LOW⚡bazel/wrapper_hook/generate_common_bes_bazelrc.py70 except Exception:CODE
LOWbazel/wrapper_hook/generate_common_bes_bazelrc.py82 except Exception:CODE
LOWbazel/wrapper_hook/wrapper_hook.py34 except Exception:CODE
LOWbazel/wrapper_hook/wrapper_hook.py246 except Exception as exc:CODE
LOWbazel/wrapper_hook/wrapper_util.py72 except Exception as _e:CODE
LOWbazel/wrapper_hook/wrapper_util.py85 except Exception as _e:CODE
LOWbazel/wrapper_hook/wrapper_util.py104 except Exception as _e:CODE
LOWbazel/wrapper_hook/wrapper_util.py129 except Exception as _e:CODE
LOWbazel/wrapper_hook/plus_interface.py224 except Exception as _:CODE
360 more matches not shown…
Cross-Language Confusion74 hits · 421 pts
SeverityFileLineSnippetContext
HIGHevergreen/validate_compile_commands.py243 ["cmd.exe", "/d", "/c", f'call "{vcvarsall}" {arch} >nul && set']CODE
HIGHbazel/gpg_signer.py39 return subprocess.run(argv, check=True, stdout=null, stderr=null)CODE
HIGHbazel/symbol_checker/symbol_extractor.py64 "undefined": sorted(undefined),CODE
HIGHbazel/resmoke/derive_suite_selectors.py282 # A selector with no roots (missing, null, or an empty list —COMMENT
HIGH⚡bazel/wrapper_hook/hermetic_container/volumes.py51 dnf install -y ncurses-compat-libs || true; \\CODE
HIGH⚡bazel/wrapper_hook/hermetic_container/volumes.py52 dnf clean all && rm -rf /var/cache/dnf; \\CODE
HIGH⚡bazel/wrapper_hook/hermetic_container/volumes.py55 yum install -y ncurses-compat-libs || true; \\CODE
HIGH⚡bazel/wrapper_hook/hermetic_container/volumes.py56 yum clean all && rm -rf /var/cache/yum; \\CODE
HIGH⚡bazel/wrapper_hook/hermetic_container/volumes.py61 apt-get install -y --no-install-recommends libtinfo5 || true; \\CODE
HIGH⚡bazel/wrapper_hook/hermetic_container/volumes.py65 zypper --non-interactive install libncurses5 || true; \\CODE
HIGH…mongot_extension_signing_key/gpg_export_armored_key.py35 return subprocess.run(argv, check=True, stdout=null, stderr=null)CODE
HIGH…hains/cc/mongo_linux/linux_container_action_wrapper.py857 'if : > "$1" 2>/dev/null; then 'CODE
HIGH…hains/cc/mongo_linux/linux_container_action_wrapper.py1111 kill -"$1" -- "-$(cat "$groupfile")" 2>/dev/null || trueCODE
HIGH…hains/cc/mongo_linux/linux_container_action_wrapper.py1115 kill -"$1" -- "-$child" 2>/dev/null || trueCODE
HIGH…hains/cc/mongo_linux/linux_container_action_wrapper.py1137while kill -0 "$child" 2>/dev/null; doCODE
HIGH⚡…hains/cc/mongo_linux/linux_container_action_wrapper.py1210 f'kill -{container_signal} -- "-$(cat {quoted_groupfile})" 2>/dev/null || true; 'STRING
HIGH⚡…hains/cc/mongo_linux/linux_container_action_wrapper.py1213 f'kill -{container_signal} "$(cat {quoted_pidfile})" 2>/dev/null || true; 'STRING
HIGH⚡…hains/cc/mongo_linux/linux_container_action_wrapper.py1217 f'kill -{container_signal} "$(cat {quoted_pidfile})" 2>/dev/null || true; 'STRING
HIGHbuildscripts/idl/idl/cpp_types.py653 return f"BSONBinData(tempCDR.data(), tempCDR.length(), {subtype})"CODE
HIGHbuildscripts/idl/idl/generator.py2250 if (request.validatedTenancyScope != boost::none && request.validatedTenancyScope->isFromAtlasProxy()) {CODE
HIGHbuildscripts/idl/tests/test_generator.py10$ coverage run run_tests.py && coverage htmlSTRING
HIGHbuildscripts/gdb/mongo_printers.py1040 gdb.parse_and_eval("$_mep_tmp.toString()")CODE
HIGHbuildscripts/package_test/package_test.py705 f"printf '%s\n' {ld_dirs} > /etc/ld.so.conf.d/zz-mongo-custom-build.conf && ldconfig"CODE
HIGHbuildscripts/package_test/package_test_commands.py54 f"apt-get {DEBIAN11_APT_UPDATE_OPTION} update || true",CODE
HIGHbuildscripts/tests/test_package_test_commands.py50 f"apt-get {under_test.DEBIAN11_APT_UPDATE_OPTION} update || true",CODE
HIGHbuildscripts/resmokelib/powercycle/setup/__init__.py77 cmds = f'{cmds}; pushd $remote_dir && python3 -m pip install "uv==$(cat buildscripts/uv_version.txt)" && popd'CODE
HIGHbuildscripts/resmokelib/powercycle/setup/__init__.py82 cmds = f"{cmds}; pushd $remote_dir && UV_PROJECT_ENVIRONMENT=$VIRTUAL_ENV python3 -m uv sync --locked --all-grouCODE
HIGH…pts/resmokelib/powercycle/save_diagnostics/__init__.py84 "core_files=$(/usr/bin/find -H . \\( -name '*.core' -o -name '*.mdmp' \\) 2> /dev/null)"CODE
HIGH…pts/resmokelib/powercycle/save_diagnostics/__init__.py118 SSHOperation.SHELL, f"ls {core_glob} > /dev/null 2>&1 && echo found; true", NoneCODE
HIGH…third_party/mozjs/extract/js/src/vm/make_opcode_doc.py47 " python3 -m venv venv && . venv/bin/activate && pip3 install markdown",CODE
HIGH…ty/mozjs/extract/js/src/builtin/intl/make_intl_data.py513 for (size_t i = 0; i < mVariants.length();) {STRING
HIGH…ty/mozjs/extract/js/src/builtin/intl/make_intl_data.py616 if (!Language().EqualTo("sgn") && mVariants.length() == 0) {STRING
HIGH…ty/mozjs/extract/js/src/builtin/intl/make_intl_data.py700 if (mVariants.length() >= 2) {STRING
HIGH…ty/mozjs/extract/js/src/builtin/intl/make_intl_data.py2867 let dtf = new Intl.DateTimeFormat(undefined, {timeZone: map(linkName)});STRING
HIGH…ty/mozjs/extract/js/src/builtin/intl/make_intl_data.py2989 let str = zdt.toString();STRING
HIGH…ty/mozjs/extract/js/src/builtin/intl/make_intl_data.py2991 assertEq(m !== null, true, str);STRING
HIGH…ty/mozjs/extract/js/src/builtin/intl/make_intl_data.py3015 assertEq(zdtLink.equals(zdtZone), true, `link=${link}, zone=${zone}`);STRING
HIGH…/python-subunit-1.4.4/python/subunit/progress_model.py48 self.push()CODE
HIGH⚡…unit-1.4.4/python/subunit/tests/test_progress_model.py73 progress.push()CODE
HIGH⚡…unit-1.4.4/python/subunit/tests/test_progress_model.py80 progress.push()CODE
HIGH⚡…unit-1.4.4/python/subunit/tests/test_progress_model.py89 progress.push()CODE
HIGH⚡…unit-1.4.4/python/subunit/tests/test_progress_model.py98 progress.push()CODE
HIGH⚡…unit-1.4.4/python/subunit/tests/test_progress_model.py107 progress.push()CODE
HIGH…unit-1.4.4/python/subunit/tests/test_filter_to_disk.py44 '{"details": ["fred"], "id": "foo", "start": null, 'CODE
HIGH…unit-1.4.4/python/subunit/tests/test_filter_to_disk.py45 '"status": "success", "stop": null, "tags": ["tag"]}'))CODE
HIGH…nit-1.4.4/python/subunit/filter_scripts/subunit2gtk.py186 self.progress_model.push()CODE
HIGH⚡src/third_party/wiredtiger/test/suite/test_intpack.py113 self.equals(forw[self.recno], i)CODE
HIGH⚡src/third_party/wiredtiger/test/suite/test_intpack.py114 self.equals(forw_idx[i], self.recno)CODE
HIGH⚡src/third_party/wiredtiger/test/suite/test_intpack.py115 self.equals(back[i], self.recno)CODE
HIGH⚡src/third_party/wiredtiger/test/suite/test_intpack.py116 self.equals(back_idx[self.recno], i)CODE
HIGHsrc/third_party/wiredtiger/test/suite/run.py233 returning the first non-null value. If all values are null,STRING
HIGHsrc/third_party/wiredtiger/test/suite/test_autoclose.py100 to be null, so we don't expect null checking.STRING
HIGH⚡…ird_party/wiredtiger/test/suite/test_cursor_compare.py172 wiredtiger.WiredTigerError, lambda: c1.equals(c2), msg)CODE
HIGH⚡…ird_party/wiredtiger/test/suite/test_cursor_compare.py174 wiredtiger.WiredTigerError, lambda: c2.equals(c1), msg)CODE
HIGH⚡…ird_party/wiredtiger/test/suite/test_cursor_compare.py179 self.assertFalse(c1.equals(c2))CODE
HIGH⚡…ird_party/wiredtiger/test/suite/test_cursor_compare.py180 self.assertFalse(c2.equals(c1))CODE
HIGH⚡…ird_party/wiredtiger/test/suite/test_cursor_compare.py182 self.assertTrue(c1.equals(c2))CODE
HIGH⚡…ird_party/wiredtiger/test/suite/test_cursor_compare.py183 self.assertTrue(c2.equals(c1))CODE
HIGH⚡…ird_party/wiredtiger/test/suite/test_cursor_compare.py190 wiredtiger.WiredTigerError, lambda: cX.equals(c1), msg)CODE
HIGH⚡…ird_party/wiredtiger/test/suite/test_cursor_compare.py193 self.expected_exception, lambda: cX.equals(None), msg)CODE
14 more matches not shown…
AI Slop Vocabulary122 hits · 338 pts
SeverityFileLineSnippetContext
MEDIUMmodules_poc/cindex.py554 """Helper class to facilitate token management.STRING
MEDIUMetc/evergreen_lint.yml34 # paradigm is to source a script in the evergreen/ directory, or to add aCOMMENT
LOWevergreen/jstestfuzz_run.sh50 # just use 'meta_seed' itself for the seed.COMMENT
LOWbuildscripts/check_for_noexcept.py176 # to a line on the RHS. If it's not provided, we just use the start line of the snippet,COMMENT
LOWbuildscripts/check_for_noexcept.py380 # can only appear on the RHS. Snippets already on the RHS just use their own line.COMMENT
MEDIUMbuildscripts/mongosymb.py76 # TODO: make identifying mongo shared library directory more robustCOMMENT
MEDIUMbuildscripts/packager.py180 # aforementioned rules, and prelease (above) adds a suffix later,COMMENT
LOWbuildscripts/candle_wrapper.py10# If our args contain GENERATE_UPGRADE_CODE we need to generate it, otherwise we can just call candleCOMMENT
LOWbuildscripts/idl/idl/writer.py302 # just use memcmp and compare with the trailing null byte.COMMENT
MEDIUMbuildscripts/tests/sbom_linter/bom-1.6.schema.json1287 "description": "Specifies the format and nature of the data being attached, helping systems correctly interpreCODE
LOW…ipts/bazel_rules_mongo/codeowners/parsers/owners_v1.py48 # approver is email, just add as isCOMMENT
MEDIUM…lica_sets_lag_oplog_application_jscore_passthrough.yml23 # These tests utilize 'fsyncLock' and subsequently wait for an insert operation to be blocked byCOMMENT
MEDIUM…es/replica_sets_configsvr_param_jscore_passthrough.yml31 # These tests utilize 'fsyncLock' and subsequently wait for an insert operation to be blocked byCOMMENT
MEDIUM…config/suites/replica_sets_jscore_passthrough_base.yml24 # These tests utilize 'fsyncLock' and subsequently wait for an insert operation to be blocked byCOMMENT
MEDIUM…ites/magic_restore_replica_sets_jscore_passthrough.yml24 # These tests utilize 'fsyncLock' and subsequently wait for an insert operation to be blocked byCOMMENT
MEDIUM…ig/suites/sharding_csrs_continuous_config_stepdown.yml140 # Temporarily denylisted until more robustCOMMENT
MEDIUM…ig/suites/sharding_csrs_continuous_config_stepdown.yml186 # setShardVersion is not robust during config server stepdown.COMMENT
MEDIUM…ig/suites/sharding_csrs_continuous_config_stepdown.yml188 # Runs commands directly on the config server primary and is not robust to the primary changing.COMMENT
LOWbuildscripts/ciconfig/evergreen.py77 # Then we just set USERPROFILE and unset it afterCOMMENT
LOWbuildscripts/resmokelib/suitesconfig.py200 # information isn't present in the hierarchy, just return the suite as is.COMMENT
MEDIUMbuildscripts/resmokelib/utils/jscomment.py9# TODO: use a more robust regular expression for matching tagsCOMMENT
LOW…ts/resmokelib/setup_multiversion/setup_multiversion.py164 # If the cmdline version is already a semvar, just use that.COMMENT
MEDIUM⚡jstests/core/index/wildcard/compound_wildcard_sort.js159 // Sort with filter + appropriate projection can leverage index.COMMENT
MEDIUMjstests/core/query/cover_null_queries.js869// Now test case with a multikey index. We can't leverage the optimization here.COMMENT
MEDIUMjstests/core/query/type/type7.js1// SERVER-20332 make JS NumberLong more robustCOMMENT
MEDIUMjstests/core/query/plan_cache/plan_cache_clear.js46// Essentially, this functions runs a query, and add its both to the query cache and toCOMMENT
MEDIUMjstests/core/query/or/orc.js21// robust test.COMMENT
MEDIUMjstests/replsets/catchup_takeover_with_higher_config.js144// This test produces a rollback and the above is expected to be robust to the network errorCOMMENT
MEDIUMjstests/replsets/apply_ops_dropDatabase.js8 * # dropDatabase can work in conjunction with other operations in 5.0.COMMENT
MEDIUMjstests/sharding/txn_two_phase_commit_killop.js215 // If the commit coordination was not robust to killOp, then commitTransaction would failCOMMENT
MEDIUMjstests/sharding/txn_two_phase_commit_killop.js220 // If deleting the coordinator doc was not robust to killOp, the document would still exist.COMMENT
MEDIUM…rding/query/change_streams/change_stream_no_orphans.js350 // Essentially, this verifies that the operation before dropping the collection did not notifyCOMMENT
MEDIUMjstests/libs/replsettest.js1468 // version then we cannot utilize failpoints below, since they may not be supported on olderCOMMENT
MEDIUMjstests/libs/override_methods/query/golden_overrides.js32// Initialize `printGolden` to have the same behavior as `print`. This is needed to utilize markdownCOMMENT
MEDIUMjstests/libs/query/cbr_utils.js13// be robust to floating point rounding differences but detect large changes in estimationCOMMENT
MEDIUM…s/server_catalog/check_metadata_consistency_helpers.js33 // TODO SERVER-78117: Remove once checkMetadataConsistency command is robust toCOMMENT
MEDIUM…assthroughWithMongod/query/cbr/cbr_elem_match_value.js60 // the equivalent estimate on the index scan as our implementation is not robust to "doubleCOMMENT
MEDIUM⚡…sts/noPassthrough/prepare_conflict_metrics_tracking.js30// Establishing a baseline makes this test robust against prepare conflicts that may have occurredCOMMENT
MEDIUMjstests/noPassthrough/admission/flow_control_logging.js25 // Use a speedy no-op writer to avoid needing a robust background writer.COMMENT
MEDIUM…/queryStats/query_stats_disk_usage_nested_pipelines.js380 // The query can leverage the index on each collection to examine only the matchingCOMMENT
MEDIUMjstests/noPassthrough/query/lookup/lookup_pushdown.js594// Build multiple compound indexes prefixed with the foreignField. We should utilize the index withCOMMENT
MEDIUMsrc/third_party/s2/s2polygonbuilder.h34// computing seamless unions of polygons that have been cut into pieces.COMMENT
MEDIUMsrc/third_party/mozjs/include/js/UbiNode.h150// Analyses consuming ubi::Node graphs must be robust when presented with graphsCOMMENT
MEDIUM…_party/mozjs/extract/mozglue/misc/PreXULSkeletonUI.cpp244// Note: this is specifically *not* a robust, multi-locale lowercasingCOMMENT
MEDIUMsrc/third_party/mozjs/extract/js/public/UbiNode.h150// Analyses consuming ubi::Node graphs must be robust when presented with graphsCOMMENT
MEDIUMsrc/third_party/mozjs/extract/js/src/frontend/Stencil.h78// execution. By decoupling from the GC and other runtime systems, robustCOMMENT
MEDIUM…c/third_party/mozjs/extract/js/src/frontend/Parser.cpp2103 // Functions with parameter expressions utilize the FunctionScope for varsCOMMENT
MEDIUMsrc/third_party/mozjs/extract/js/src/vm/BigIntType.cpp438 // Current callers don't pass in such large results, but let's be robust.COMMENT
MEDIUM…arty/mozjs/extract/js/src/devtools/rootAnalysis/CFG.js966 // immediately for a call. But just to be robust to future uses:COMMENT
LOWsrc/third_party/mozjs/extract/js/src/jit/MIROps.yaml1560# specialized alias set for this so just use the default alias set similar toCOMMENT
LOW…y/mozjs/extract/js/src/jit/GenerateAtomicOperations.py809 # cell. (There is no `sub`; just add the negated value.)STRING
MEDIUM…rty/mozjs/extract/js/src/jit/BacktrackingAllocator.cpp257// Fundamentally, a LiveRange (often written just "range") is a request forCOMMENT
MEDIUM…rty/mozjs/extract/js/src/jit/BacktrackingAllocator.cpp373// Fundamentally it is a container to hold all of the LiveRanges that togetherCOMMENT
MEDIUM…party/mozjs/extract/js/src/jit/arm64/Assembler-arm64.h223// * On entry to C++ code, PSP == SP. Certainly it appears that all callsCOMMENT
MEDIUM…mozjs/extract/js/src/jit/arm64/vixl/Simulator-vixl.cpp4308 // arguments, this is very difficult to do in a robust and portable way. ToCOMMENT
LOW…hird_party/icu4c-57.1/source/common/unicode/platform.h60 * Solution: #define any defines for non @internal API here, so that they are visible in the docs. If you just set PREDCOMMENT
MEDIUMsrc/third_party/icu4c-57.1/source/i18n/decNumberLocal.h46 #define DECCHECK 0 /* 1 to enable robust checking */COMMENT
MEDIUM…rty/boost/boost/atomic/detail/extra_fp_ops_generic.hpp95//! Negate implementation for IEEE 754 / IEC 559 floating point types. We leverage the fact that the sign bit is the mosCOMMENT
MEDIUMsrc/third_party/boost/boost/container/vector.hpp2322 //Absolutely experimental. This function might change, disappear or simply crash!COMMENT
MEDIUM…c/third_party/boost/boost/iterator/filter_iterator.hpp55 // Storage class to leverage EBO, when possibleCOMMENT
62 more matches not shown…
Fake / Example Data205 hits · 252 pts
SeverityFileLineSnippetContext
LOW⚡buildscripts/idl/tests/test_generator.py1580 (Enable on transitional FCV): Lorem ipsum dolor sit ametSTRING
LOW⚡buildscripts/idl/tests/test_generator.py1580 (Enable on transitional FCV): Lorem ipsum dolor sit ametSTRING
LOWbuildscripts/idl/tests/test_generator.py1611 (Enable on transitional FCV): Lorem ipsum dolor sit ametSTRING
LOWbuildscripts/idl/tests/test_generator.py1611 (Enable on transitional FCV): Lorem ipsum dolor sit ametSTRING
LOWbuildscripts/idl/tests/test_binder.py2905 (Enable on transitional FCV): Lorem ipsum dolor sit ametCODE
LOWbuildscripts/idl/tests/test_binder.py2905 (Enable on transitional FCV): Lorem ipsum dolor sit ametCODE
LOWbuildscripts/idl/tests/test_binder.py2921 (Enable on transitional FCV): Lorem ipsum dolor sit ametCODE
LOWbuildscripts/idl/tests/test_binder.py2921 (Enable on transitional FCV): Lorem ipsum dolor sit ametCODE
LOWbuildscripts/tests/sbom_linter/bom-1.6.schema.json987 "Acme Inc"CODE
LOWbuildscripts/tests/sbom_linter/bom-1.6.schema.json995 "Acme Inc"CODE
LOWbuildscripts/tests/sbom_linter/bom-1.6.schema.json1057 "Acme Inc"CODE
LOWbuildscripts/tests/sbom_linter/bom-1.5.schema.json439 "examples": ["Acme Inc"]CODE
LOWbuildscripts/tests/sbom_linter/bom-1.5.schema.json445 "examples": ["Acme Inc"]CODE
LOWbuildscripts/tests/sbom_linter/bom-1.5.schema.json494 "examples": ["Acme Inc"]CODE
LOW⚡buildscripts/tests/resmokelib/core/test_programs.py102 _format_shell_vars(string_builder, ["dummy_key"], with_dot)CODE
LOW⚡buildscripts/tests/resmokelib/core/test_programs.py103 expected = ["dummy_key = new Object()", 'dummy_key["a.b"] = "c"']CODE
LOW⚡buildscripts/tests/resmokelib/core/test_programs.py108 _format_shell_vars(string_builder, ["dummy_key"], without_dot)CODE
LOW⚡buildscripts/tests/resmokelib/core/test_programs.py110 "dummy_key = new Object()",CODE
LOW⚡buildscripts/tests/resmokelib/core/test_programs.py111 'dummy_key["a"] = new Object()',CODE
LOW⚡buildscripts/tests/resmokelib/core/test_programs.py112 'dummy_key["a"]["b"] = "c"',CODE
LOW⚡…/testing/hooks/test_generate_and_check_perf_results.py707 "github_token_mongo": "fake_token",CODE
LOW⚡…/testing/hooks/test_generate_and_check_perf_results.py727 "github_token_mongo": "fake_token",CODE
LOW⚡…/testing/hooks/test_generate_and_check_perf_results.py763 "github_token_mongo": "fake_token",CODE
LOW⚡…/testing/hooks/test_generate_and_check_perf_results.py781 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py745 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py805 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py878 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py917 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py1607 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py1631 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py1654 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py1678 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py1702 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py1728 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py1756 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py1804 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py1826 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py1848 "github_token_mongo": "fake_token",CODE
LOW…/testing/hooks/test_generate_and_check_perf_results.py1888 "github_token_mongo": "fake_token",CODE
LOWbuildscripts/tests/resmokelib/logging/test_loggers.py38 logger = loggers.new_test_thread_logger("dummy_parent", "dummy_kind", "dummy_id")CODE
LOW…hange_streams/oplog_rewrite/projection_changes_type.js53 computedProjection[fieldName] = {$literal: "dummy_value"};CODE
LOWjstests/core/index/fts/fts_trailing_fields.js6assert.commandWorked(coll.insert({a: 2, b: "lorem ipsum"}));CODE
LOWjstests/core/index/fts/fts_trailing_fields.js16assert.commandWorked(coll.insert({a: 2, b: "lorem ipsum", c: {d: 3}}));CODE
LOW⚡jstests/core/index/fts/fts_dotted_prefix_fields.js7 coll.insert({a: {x: 1, y: 2}, b: {x: 3, y: 4}, words: "lorem ipsum dolor sit"}),CODE
LOW⚡jstests/core/index/fts/fts_dotted_prefix_fields.js10 coll.insert({a: {x: 1, y: 2}, b: {x: 5, y: 4}, words: "lorem ipsum dolor sit"}),CODE
LOW⚡jstests/core/index/fts/fts_dotted_prefix_fields.js15 coll.find({$text: {$search: "lorem ipsum"}, "a.x": 1, "a.y": 2, "b.x": 3, "b.y": 4}).itcount(),CODE
LOWjstests/replsets/stepdown_needs_electable_secondary.js75 coll.insert({"dummy_key": "dummy_val"}, {writeConcern: {w: 1, wtimeout: timeout}}),CODE
LOWjstests/replsets/stepdown_needs_electable_secondary.js106 coll.insert({"dummy_key": "dummy_val"}, {writeConcern: {w: 2, wtimeout: timeout}}),CODE
LOWjstests/replsets/stepdown_needs_electable_secondary.js126 coll.insert({"dummy_key": "dummy_val"}, {writeConcern: {w: 3, wtimeout: timeout}}),CODE
LOWjstests/replsets/stepdown_needs_electable_secondary.js149 coll.insert({"dummy_key": "dummy_val"}, {writeConcern: {w: 4, wtimeout: timeout}}),CODE
LOWjstests/replsets/stepdown_needs_majority.js53let dummy_doc = {"dummy_key": "dummy_val"};CODE
LOWjstests/extensions/foo_and_bar_noops.js140 {name: "John Doe", role: "author"},CODE
LOWjstests/extensions/foo_and_bar_noops.js141 {name: "Jane Doe", role: "editor"},CODE
LOW⚡jstests/libs/assertions_core.js911 assert(false, "lorem ipsum");CODE
LOW⚡jstests/libs/assertions_core.js913 {msg: "assert failed : lorem ipsum"},CODE
LOW⚡jstests/libs/assertions_core.js917 assert(false, "lorem ipsum", kAttr);CODE
LOW⚡jstests/libs/assertions_core.js919 {msg: "assert failed : lorem ipsum", attr: {...kAttr}},CODE
LOW⚡jstests/libs/assertions_core.js942 assert(false, "lorem ipsum", kAttr);CODE
LOW⚡jstests/libs/assertions_core.js944 {msg: "assert failed : lorem ipsum", attr: {...kAttr}},CODE
LOW⚡jstests/libs/assertions_core.js954 assert.eq(5, 2 + 2, "lorem ipsum");CODE
145 more matches not shown…
Redundant / Tautological Comments99 hits · 154 pts
SeverityFileLineSnippetContext
LOWmodules_poc/private_headers.py268 # Output results of modifying files.COMMENT
LOWevergreen/generate_core_analysis_task.sh5# Check if test failures exist before proceeding. This expansion is created in fetch_remote_test_results.sh.COMMENT
LOWevergreen/generate_core_analysis_task.sh12# Check if there are any core dumps present before proceeding. Presence of a core dump hereCOMMENT
LOWevergreen/fetch_remote_test_results.sh253# Check if any results were foundCOMMENT
LOWevergreen/collect_bazel_debug_logs.sh26 # Check if zip command is availableCOMMENT
LOWevergreen/collect_bazel_debug_logs.sh64 # Check if we have any files to zipCOMMENT
LOWevergreen/prelude_venv.sh41 # Check if site_packages is already in sys.pathCOMMENT
LOWevergreen/multiversion_setup.sh22# Set multiversion_filter_downloads to anything other than "true" to disable it.COMMENT
LOWevergreen/streams_build_js_engine.sh290 # Check if we need to install Node.js (skip if already installed and correct version)COMMENT
LOWevergreen/prelude_python.sh8 # Check if Python 3.10 is requested via Evergreen parameterCOMMENT
LOWevergreen/prelude_python.sh18 # Check if v5 toolchain exists - it requires Python 3.13COMMENT
LOWevergreen/jepsen_docker/list-append.sh52 # Check if the "1 successes" string is in the last five linesCOMMENT
LOWevergreen/functions/run_diskstats.sh14# Check if vmstat -t is available.COMMENT
LOWevergreen/functions/run_diskstats.sh17# Check if vmstat -T d is available.COMMENT
LOWevergreen/functions/upload_sbom_via_silkbomb.py195 # Check if branch name matches the branch filter regexCOMMENT
LOWbazel/remote_execution_container/repin_dockerfiles.sh4# Check if we're running under BazelCOMMENT
LOWbazel/wrapper_hook/lint.py698 # Check if library has source files (produces .so)COMMENT
LOWbazel/wrapper_hook/lint.py703 # Check if srcs contains .cpp filesCOMMENT
LOWbuildscripts/parse_test_xml.py8 # Check if file exists and has contentCOMMENT
LOWbuildscripts/github_merge_queue_metrics.py45 # Check if the profile has sso_start_url configuredCOMMENT
LOWbuildscripts/github_merge_queue_metrics.py121 # Check if the SSO profile is configuredCOMMENT
LOWbuildscripts/github_merge_queue_metrics.py403 # Check if PR was added to merge queue but removed (not merged)COMMENT
LOWbuildscripts/github_merge_queue_metrics.py545 # Check if PR targets masterSTRING
LOWbuildscripts/github_merge_queue_metrics.py569 # Check if PR was added to merge queue but removed (not merged)STRING
LOWbuildscripts/github_merge_queue_metrics.py700 # Check if this PR was marked as skipped (e.g., non-master target branch)STRING
LOWbuildscripts/compare_evergreen_versions.py745 # Output resultsCOMMENT
LOWbuildscripts/idl/idl_check_compatibility.py1297 # Check if a new field has been added to the parameters or type struct.COMMENT
LOWbuildscripts/idl/idl/syntax.py220 # Check if we are adding a duplicate first field name since that wouldCOMMENT
LOWbuildscripts/gdb/optimizer_printers.py352 # Check if the tag is out of range for the set of types that we know about.COMMENT
LOWbuildscripts/package_test/package_test.py742 # Check if the path is within the test_external_root (buildscripts dir)COMMENT
LOWbuildscripts/cost_model/qsn_costing_parameters.py85 # Set strict to true, as these should always have the same tree structure.COMMENT
LOW⚡buildscripts/tests/test_sync_repo_with_copybara.py2273 # Check if the repository is only the MongoDB official repositoryCOMMENT
LOWbuildscripts/tests/test_sync_repo_with_copybara.py797 # Check if the commit in the search result matches the last commit in the public repositoryCOMMENT
LOW…/tests/resmoke_end2end/test_external_fixtures_hooks.py26 # Set EXTERNAL_MODULE_ROOT to the test module directoryCOMMENT
LOW…/tests/resmoke_end2end/test_external_fixtures_hooks.py37 # Set CONFIG_DIR to avoid errorsCOMMENT
LOW…ipts/tests/resmoke_end2end/test_resmoke_js_debugger.py166 # Check if expected is in the command output or full bufferCOMMENT
LOWbuildscripts/tests/resmokelib/logging/test_handlers.py172 # Close the file — this races with the flush thread's write.COMMENT
LOWbuildscripts/patch_builds/change_data.py139 # Read file contentsCOMMENT
LOWbuildscripts/resmokelib/suitesconfig.py276 # Check if is a named suite first for efficiency.COMMENT
LOWbuildscripts/resmokelib/suitesconfig.py279 # Check if is a path to a YAML file.COMMENT
LOWbuildscripts/resmokelib/core/process.py139 # Close file descriptors in the child process before executing the program. This preventsCOMMENT
LOW…ts/resmokelib/hang_analyzer/gen_hang_analyzer_tasks.py322 # Check if resmoke reported this core dump as a "boring one", in the BORING_CORE_DUMP_PIDS_FILE.COMMENT
LOWbuildscripts/resmokelib/hang_analyzer/extractor.py961 # Check if the files are already there. They would be on *SAN builds.COMMENT
LOW…/resmokelib/hang_analyzer/attach_core_analyzer_task.py77 # Check if the core analysis is from the current execution or a previous oneCOMMENT
LOWbuildscripts/resmokelib/utils/globstar.py50 # Check if basename is exactly "**" (recursive wildcard)COMMENT
LOWbuildscripts/resmokelib/utils/autoloader.py35 # Set __path__ to make it a proper package that can contain submodulesCOMMENT
LOWbuildscripts/resmokelib/utils/archival.py120 # Check if there is sufficient space for the tgz file.COMMENT
LOWbuildscripts/resmokelib/testing/hooks/maintenance.py214 # Check if the thread is alive in case it has thrown an exception while running.COMMENT
LOW…mokelib/testing/hooks/drop_config_cache_collections.py229 # Check if the thread is alive in case it has thrown an exception while running.COMMENT
LOWbuildscripts/resmokelib/testing/hooks/initialsync.py131 # Check if the initial sync node is in SECONDARY state. If it's been 'n' tests, then itCOMMENT
LOW…s/resmokelib/testing/hooks/drop_sessions_collection.py179 # Check if the thread is alive in case it has thrown an exception while running.COMMENT
LOW…cripts/resmokelib/testing/hooks/fuzz_runtime_stress.py145 # Check if the thread is alive in case it has thrown an exception while running.COMMENT
LOW…dscripts/resmokelib/testing/hooks/add_remove_shards.py391 # Check if the thread is alive in case it has thrown an exception while running.COMMENT
LOWbuildscripts/resmokelib/testing/testcases/jstest.py91 # Check if any test being run is a timeseries testCOMMENT
LOWbuildscripts/resmokelib/powercycle/powercycle.py382 # Check if file download was completed.COMMENT
LOWbuildscripts/resmokelib/powercycle/powercycle.py1223 # Check if replica set has already been initializedCOMMENT
LOWbuildscripts/resmokelib/powercycle/powercycle.py1763 # Check if the crash failed due to an ssh error.COMMENT
LOW…scripts/resmokelib/powercycle/lib/remote_operations.py74 # Check if we can remotely access the host.COMMENT
LOWsrc/third_party/icu4c-57.1/source/common/rbbicst.pl202# Assign numbers to each of the character classes classes used.COMMENT
LOWsrc/third_party/wiredtiger/tools/wt_to_mdb_bson.py142 # Loop through the data section and increment by 2, since we parse the K/V pairs.COMMENT
39 more matches not shown…
Synthetic Comment Markers19 hits · 142 pts
SeverityFileLineSnippetContext
HIGHbuildscripts/cs_suggest_variants.py1587 # variants through its alias, so they count as requested there.COMMENT
HIGHsrc/third_party/mozjs/include/mozilla/ModuloBuffer.h268 // then, there are no other functions named "Poke" as requested in theCOMMENT
HIGHsrc/third_party/boost/boost/system/config.hpp38// enable dynamic or static linking as requested --------------------------------------//COMMENT
HIGH…_party/boost/libs/timer/include/boost/timer/config.hpp18// enable dynamic or static linking as requested --------------------------------------//COMMENT
HIGH…include/boost/dynamic_bitset/detail/dynamic_bitset.hpp102 // Automatically generated by GPTableGen.exe v.1.0COMMENT
HIGH…bs/math/include_private/boost/math/tools/test_data.hpp516 // Generate a set of test points as requested, try and generate pointsCOMMENT
HIGH…umeric/ublas/include/boost/numeric/ublas/exception.hpp27 // Inherit from standard exceptions as requested during review.COMMENT
HIGH…umeric/ublas/include/boost/numeric/ublas/exception.hpp51 // Inherit from standard exceptions as requested during review.COMMENT
HIGH…umeric/ublas/include/boost/numeric/ublas/exception.hpp72 // Inherit from standard exceptions as requested during review.COMMENT
HIGH…umeric/ublas/include/boost/numeric/ublas/exception.hpp96 // Inherit from standard exceptions as requested during review.COMMENT
HIGH…umeric/ublas/include/boost/numeric/ublas/exception.hpp119 // Inherit from standard exceptions as requested during review.COMMENT
HIGH…umeric/ublas/include/boost/numeric/ublas/exception.hpp140 // Inherit from standard exceptions as requested during review.COMMENT
HIGH…umeric/ublas/include/boost/numeric/ublas/exception.hpp161 // Inherit from standard exceptions as requested during review.COMMENT
HIGH…umeric/ublas/include/boost/numeric/ublas/exception.hpp182 // Inherit from standard exceptions as requested during review.COMMENT
HIGH…/libs/thread/include/boost/thread/detail/singleton.hpp20// a class on demand, then dish it out as requested.COMMENT
HIGH…/agg/change_stream_handle_topology_change_v2_stage.cpp1323 // Opens and closes the cursors as requested in the reader context. If this throws, theCOMMENT
HIGH…/agg/change_stream_handle_topology_change_v2_stage.cpp1366 // Opens and closes the cursors as requested in the reader context. If this throws, theCOMMENT
HIGH…/agg/change_stream_handle_topology_change_v2_stage.cpp1418 // Opens and closes the cursors as requested in the reader context. If we catch aCOMMENT
HIGH…/agg/change_stream_handle_topology_change_v2_stage.cpp1520 // Opens and closes the cursors as requested in the reader context. If we catch aCOMMENT
Hallucination Indicators9 hits · 100 pts
SeverityFileLineSnippetContext
CRITICAL⚡…/testing/hooks/test_generate_and_check_perf_results.py713 mock_github_cls.return_value.get_repo.return_value.get_pull.assert_called_once_with(12345)CODE
CRITICAL⚡…/testing/hooks/test_generate_and_check_perf_results.py769 mock_github_cls.return_value.get_repo.return_value.get_pull.assert_called_once()CODE
CRITICALjstests/auth/system_buckets_invalid_nss.js7 assert.commandFailedWithCode(admin.system.buckets.system.buckets.foo.insert({x: 1}), [CODE
CRITICALjstests/auth/system_buckets_invalid_nss.js12 assert.commandFailedWithCode(admin.system.buckets.system.buckets.foo.insert({x: 1}), [CODE
CRITICALjstests/sharding/create_system_session.js122 const shardCatalogEntry = st.config.shard.catalog.collections.findOne({_id: kNs});CODE
CRITICALjstests/sharding/health_monitor/non_critical_facet.js56assert(result.faultInformation.facets.testObserver.description.includes("InternalError: test msg"));CODE
CRITICALjstests/sharding/health_monitor/status_failure.js47 result.faultInformation.facets.testObserver.description.includes(CODE
CRITICALsrc/mongo/shell/data_consistency_checker.js656 sourceInfo.options.storageEngine.wiredTiger.configString.replace(CODE
CRITICALsrc/mongo/shell/data_consistency_checker.js664 syncingInfo.options.storageEngine.wiredTiger.configString.replace(CODE
Modern Structural Boilerplate89 hits · 90 pts
SeverityFileLineSnippetContext
LOWmodules_poc/cindex.py4005 def set_library_path(path: StrPath) -> None:CODE
LOWmodules_poc/cindex.py4016 def set_library_file(filename: StrPath) -> None:CODE
LOWmodules_poc/cindex.py4027 def set_compatibility_check(check_status: bool) -> None:CODE
LOWmodules_poc/cindex.py4103__all__ = [CODE
LOWbuildscripts/install_bazel.py93def _set_bazel_permissions(binary_path: str) -> None:CODE
LOWbuildscripts/generate_bazel_spawn_pb2.py218def update_output(generated_path: Path, output_path: Path, check: bool) -> None:CODE
LOWbuildscripts/util/oauth.py139 def _set_response(self) -> None:CODE
LOWbuildscripts/cost_model/database_instance.py14__all__ = ["DatabaseInstance", "Find"]CODE
LOWbuildscripts/cost_model/database_instance.py56 async def set_parameter(self, name: str, value: any) -> None:CODE
LOWbuildscripts/cost_model/calibration_settings.py19__all__ = ["main_config", "distributions"]CODE
LOWbuildscripts/cost_model/query_solution_tree.py10__all__ = ["Node", "build"]CODE
LOWbuildscripts/cost_model/execution_tree_sbe.py12__all__ = ["Node", "build_execution_tree"]CODE
LOWbuildscripts/cost_model/qsn_calibrator.py19__all__ = ["calibrate"]CODE
LOWbuildscripts/cost_model/ce_generate_data.py26__all__ = []CODE
LOWbuildscripts/cost_model/start.py22__all__ = []CODE
LOWbuildscripts/cost_model/ce_data_settings.py22__all__ = ["database_config", "data_generator_config"]CODE
LOWbuildscripts/cost_model/data_generator.py19__all__ = ["DataGenerator"]CODE
LOWbuildscripts/cost_model/workload_execution.py16__all__ = ["execute"]CODE
LOWbuildscripts/cost_model/random_generator.py16__all__ = ["RangeGenerator", "DataType", "RandomDistribution"]CODE
LOW⚡buildscripts/tests/sbom_linter/sbom_linter.py53 def update_component_attribute(self, component_name: str) -> None:CODE
LOWbuildscripts/resmokelib/__init__.py16__all__ = [CODE
LOWbuildscripts/resmokelib/core/__init__.py5__all__ = ["network", "programs"]CODE
LOWbuildscripts/resmokelib/hang_analyzer/__init__.py6__all__ = ["dumper", "process", "process_list", "HangAnalyzerPlugin"]CODE
LOWbuildscripts/resmokelib/discovery/__init__.py18__all__ = ["MultiversionService", "MongoReleases", "MongoVersion"]CODE
LOWbuildscripts/resmokelib/utils/__init__.py15__all__ = ["archival"]CODE
LOWbuildscripts/resmokelib/utils/dictionary.py157def set_dict_value(dict1: MutableMapping[str, Any], path: list[str], value: Any) -> None:CODE
LOWbuildscripts/resmokelib/extensions/__init__.py26__all__ = [CODE
LOWbuildscripts/resmokelib/testing/__init__.py5__all__ = ["executor", "suite"]CODE
LOWbuildscripts/resmokelib/testing/hooks/__init__.py11__all__ = ["make_hook"]CODE
LOWbuildscripts/resmokelib/testing/testcases/__init__.py6__all__ = ["make_test_case"]CODE
LOWbuildscripts/resmokelib/logging/__init__.py9__all__ = ["flush", "loggers"]CODE
LOWbuildscripts/resmokelib/setup_multiversion/__init__.py5__all__ = ["SetupMultiversionPlugin"]CODE
LOWbuildscripts/client/jiraclient.py13logger = logging.getLogger(__name__)CODE
LOWbuildscripts/quality_checks/__init__.py13__all__ = [CODE
LOWbuildscripts/quality_checks/telemetry.py127 def set_invocation_attributes(self, attributes: Mapping[str, object]) -> None:CODE
LOWbuildscripts/quality_checks/progress.py95 def set_total_checks(self, total_checks: int) -> None:CODE
LOWjstests/ocsp/lib/ocsp_mock.py18logger = logging.getLogger(__name__)CODE
LOWjstests/ocsp/lib/malformed_staple_server.py21logger = logging.getLogger(__name__)CODE
LOW…third_party/mock_ocsp_responder/mock_ocsp_responder.py63logger = logging.getLogger(__name__)CODE
LOWsrc/third_party/wiredtiger/tools/wt_binary_decode.py51logger = logging.getLogger(__name__)CODE
LOW…hird_party/wiredtiger/tools/py_common/sqlite_format.py42logger = logging.getLogger(__name__)CODE
LOWsrc/third_party/wiredtiger/tools/py_common/disagg.py40logger = logging.getLogger(__name__)CODE
LOW…/third_party/wiredtiger/tools/py_common/snappy_util.py34logger = logging.getLogger(__name__)CODE
LOW…third_party/wiredtiger/tools/py_common/page_service.py43logger = logging.getLogger(__name__)CODE
LOW…third_party/wiredtiger/tools/py_common/btree_format.py43logger = logging.getLogger(__name__)CODE
LOW…/third_party/wiredtiger/tools/py_common/file_format.py37logger = logging.getLogger(__name__)CODE
LOW…hird_party/wiredtiger/tools/py_common/mdb_log_parse.py41logger = logging.getLogger(__name__)CODE
LOWsrc/third_party/wiredtiger/tools/py_common/printer.py33logger = logging.getLogger(__name__)CODE
LOW…dtiger/test/3rdparty/iso8601-2.1.0/iso8601/__init__.py3__all__ = ["parse_date", "is_iso8601", "ParseError", "UTC", "FixedOffset"]CODE
LOW…edtiger/test/3rdparty/iso8601-2.1.0/iso8601/iso8601.py16__all__ = ["parse_date", "ParseError", "UTC", "FixedOffset"]CODE
LOW…t/3rdparty/discover-0.4.0-locally-modified/discover.py20__all__ = ['DiscoveringTestLoader', 'main', 'defaultTestLoader']CODE
LOW…redtiger/test/3rdparty/extras-0.0.3/extras/__init__.py7__all__ = [CODE
LOW…ger/test/3rdparty/testtools-2.7.1/testtools/runtest.py5__all__ = [CODE
LOW…iger/test/3rdparty/testtools-2.7.1/testtools/compat.py5__all__ = [CODE
LOW…er/test/3rdparty/testtools-2.7.1/testtools/testcase.py5__all__ = [CODE
LOW…er/test/3rdparty/testtools-2.7.1/testtools/__init__.py5__all__ = [CODE
LOW…ger/test/3rdparty/testtools-2.7.1/testtools/content.py5__all__ = [CODE
LOW…iger/test/3rdparty/testtools-2.7.1/testtools/monkey.py5__all__ = [CODE
LOW…r/test/3rdparty/testtools-2.7.1/testtools/testsuite.py5__all__ = [CODE
LOW…y/testtools-2.7.1/testtools/twistedsupport/_runtest.py22__all__ = [CODE
29 more matches not shown…
Modern AI Meta-Vocabulary21 hits · 61 pts
SeverityFileLineSnippetContext
MEDIUMbuildscripts/benchmark_profiler.py205# --- Evergreen task-level orchestration ---COMMENT
MEDIUM…esmokeconfig/suites/sharding_clustered_collections.yml12 # The default suite runs change streams as v2; v1-pinned tests use scaffolding (e.g.COMMENT
MEDIUM…ites/sharding_change_streams_ignore_removed_shards.yml25 # This suite runs change streams as v2; v1-pinned tests use scaffolding (e.g.COMMENT
MEDIUMbuildscripts/resmokeconfig/suites/sharding.yml11 # The default suite runs change streams as v2; v1-pinned tests use scaffolding (e.g.COMMENT
MEDIUM…scripts/resmokeconfig/suites/sharding_config_shard.yml10 # The default suite runs change streams as v2; v1-pinned tests use scaffolding (e.g.COMMENT
MEDIUMbuildscripts/resmokeconfig/suites/sharding_auth.yml45 # The default suite runs change streams as v2; v1-pinned tests use scaffolding (e.g.COMMENT
MEDIUMbuildscripts/quality_checks/engine.py264 except BaseException as exc: # An adapter exception is an orchestration failure.CODE
MEDIUM…tests/aggregation/sources/internal_search_id_lookup.js15 * # Wrapping the mock-mongot pipelines in $facet breaks the failpoint orchestration and theCOMMENT
MEDIUMjstests/ssl/x509_client.js90 // unless guardrails are explicitly overriddenCOMMENT
MEDIUMjstests/ssl/x509_client.js101 // unless guardrails are explicitly overriddenCOMMENT
MEDIUM…party/testscenarios-0.4/lib/testscenarios/scenarios.py2# dependency injection ('scenarios') by tests.COMMENT
MEDIUM…dparty/testscenarios-0.4/lib/testscenarios/testcase.py2# dependency injection ('scenarios') by tests.COMMENT
MEDIUM…dparty/testscenarios-0.4/lib/testscenarios/__init__.py2# dependency injection ('scenarios') by tests.COMMENT
MEDIUM…/testscenarios-0.4/lib/testscenarios/tests/__init__.py2# dependency injection ('scenarios') by tests.COMMENT
MEDIUM…scenarios-0.4/lib/testscenarios/tests/test_testcase.py2# dependency injection ('scenarios') by tests.COMMENT
MEDIUM…cenarios-0.4/lib/testscenarios/tests/test_scenarios.py2# dependency injection ('scenarios') by tests.COMMENT
MEDIUM…ger/test/3rdparty/testscenarios-0.4/doc/test_sample.py2# dependency injection ('scenarios') by tests.COMMENT
MEDIUM…dtiger/test/3rdparty/testscenarios-0.4/doc/__init__.py2# dependency injection ('scenarios') by tests.COMMENT
MEDIUM…edtiger/test/3rdparty/testscenarios-0.4/doc/example.py2# dependency injection ('scenarios') by tests.COMMENT
MEDIUM…lude/opentelemetry/semconv/incubating/aws_attributes.h24 href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html">guardrail</a> helpsCODE
MEDIUMsrc/mongo/db/pipeline/expression.h6576 // We'll use this for guardrails around code we know shouldn't ever be called.COMMENT
Example Usage Blocks37 hits · 56 pts
SeverityFileLineSnippetContext
LOWetc/backports_required_for_multiversion_tests.yml5# Usage:COMMENT
LOWetc/coverity_models/extract_pw_rw_findings.sh35# Usage:COMMENT
LOWevergreen/bazel_test.sh1# Usage:COMMENT
LOWevergreen/bazel_run.sh1# Usage:COMMENT
LOWevergreen/retry_git.sh7# Usage:COMMENT
LOWevergreen/resmoke_tests_execute_bazel.sh3# Usage:COMMENT
LOWevergreen/get_all_resmoke_suite_configs.sh4# Usage:COMMENT
LOWevergreen/fetch_remote_test_results.sh3# Usage:COMMENT
LOWevergreen/gather_local_test_results.sh4# Usage:COMMENT
LOWevergreen/restore_git_history_and_tags.sh3# Usage:COMMENT
LOWevergreen/get_resmoke_suite_config.sh3# Usage:COMMENT
LOWevergreen/bazel_coverage.sh3# Usage:COMMENT
LOWevergreen/bazel_compile.sh1# Usage:COMMENT
LOW…n/functions/security_reporting_scripts/augment_sbom.sh4# Usage:COMMENT
LOW…orting_scripts/write_aws_creds_to_silkbomb_env_file.sh6# Usage:COMMENT
LOW…unctions/security_reporting_scripts/select_licenses.sh7# Usage:COMMENT
LOWbazel/config/generate_config_header.py3# Example usage:COMMENT
LOWbazel/toolchains/cc/mongo_apple/package_llvm.sh9# Usage:COMMENT
LOW…ripts/bazel_testbuilds/verify_resmoke_coredump_test.sh10# Usage:COMMENT
LOW…ipts/bazel_testbuilds/verify_unittest_coredump_test.sh9# Usage:COMMENT
LOWjstests/ssl/x509/mkcrl.sh15# Usage:COMMENT
LOWsrc/third_party/json-c/scripts/build_json_c_headers.sh7# Usage:COMMENT
LOWsrc/third_party/mozjs/include/js/UbiNode.h980// Example usage:COMMENT
LOWsrc/third_party/mozjs/extract/js/public/UbiNode.h980// Example usage:COMMENT
LOW…hird_party/mozjs/extract/js/src/devtools/plot-octane.R3# Usage:COMMENT
LOW…party/mozjs/extract/js/src/irregexp/import-irregexp.py18# Usage:COMMENT
LOWsrc/third_party/icu4c-57.1/source/common/rbbicst.pl7# Usage:COMMENT
LOWsrc/third_party/icu4c-57.1/source/common/ucase.cpp1074# Usage:COMMENT
LOWsrc/third_party/icu4c-57.1/source/i18n/regexcst.pl10# Usage:COMMENT
LOW…eams/include/boost/iostreams/detail/select_by_size.hpp24// Example usage:COMMENT
LOW…/libs/math/tools/bessel_derivative_append_negative.cpp11// Usage example:COMMENT
LOW…_party/boost/libs/predef/tools/ci/linux-cxx-install.sh3# Usage:COMMENT
LOW…arty/boost/libs/predef/tools/ci/macos-xcode-install.sh3# Usage:COMMENT
LOWsrc/third_party/wiredtiger/wt_config_header.py3# Example usage:COMMENT
LOWsrc/third_party/wiredtiger/wt_version_header.py3# Example usage:COMMENT
LOW…/third_party/wiredtiger/test/suite/test_timestamp22.py58 # Usage:COMMENT
LOWsrc/third_party/rnp/scripts/build_rnp_headers.sh8# Usage:COMMENT
Slop Phrases27 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUMbazel/hermetic_container/setup.py63 # simple. Or you can use find_packages().COMMENT
LOWbuildscripts/packager.py150 # and want DEB packages to match, make sure to update pversion()COMMENT
LOWbuildscripts/packager.py186 # this format and want RPM packages to match make sure you changeCOMMENT
LOWsrc/third_party/mozjs/include/js/CompileOptions.h254 // WARNING: When adding new fields, don't forget to add them toCOMMENT
LOWsrc/third_party/mozjs/include/js/CompileOptions.h347 // WARNING: When adding new fields, don't forget to add them toCOMMENT
LOW…c/third_party/mozjs/extract/js/public/CompileOptions.h254 // WARNING: When adding new fields, don't forget to add them toCOMMENT
LOW…c/third_party/mozjs/extract/js/public/CompileOptions.h347 // WARNING: When adding new fields, don't forget to add them toCOMMENT
LOW…ird_party/mozjs/extract/js/src/wasm/WasmCodegenTypes.h1720// If you add fields, don't forget to update its `clear` and `empty` methods.COMMENT
LOW…tract/js/src/jit/riscv64/SharedICHelpers-riscv64-inl.h63 // Note: when making changes here, don't forget to updateCOMMENT
LOW…tract/js/src/jit/loong64/SharedICHelpers-loong64-inl.h65 // Note: when making changes here, don't forget to updateCOMMENT
LOW…/src/jit/mips-shared/SharedICHelpers-mips-shared-inl.h65 // Note: when making changes here, don't forget to updateCOMMENT
MEDIUM…ird_party/mozjs/extract/js/src/builtin/ShadowRealm.cpp112 // creation. It's worth noting that the newGlobal callbackCOMMENT
MEDIUM…/third_party/icu4c-57.1/source/i18n/unicode/dtfmtsym.h63 * DateFormatSymbols object, they can feel free to modify the date-timeCOMMENT
MEDIUM…/third_party/icu4c-57.1/source/i18n/unicode/dtitvinf.h142 * they can feel free to modify it as necessary.COMMENT
LOW…clude/boost/spirit/home/x3/nonterminal/detail/rule.hpp256 // X3 developer note: don't forget to sync this implementation with x3::guardCOMMENT
LOW…pirit/include/boost/spirit/home/x3/auxiliary/guard.hpp61 // X3 developer note: don't forget to sync this implementation with x3::detail::rule_parserCOMMENT
MEDIUM…s/detail/hypergeometric_1F1_addition_theorems_on_z.hpp250 // I'm unable to find any situation where this series isn't divergent and thereforeCOMMENT
MEDIUM…/odeint/include/boost/numeric/odeint/stepper/euler.hpp7 be used for demonstration purposes.CODE
MEDIUM…/odeint/include/boost/numeric/odeint/stepper/euler.hpp110 * for real applications. It is only useful for demonstration purposes. Step size control is not provided butCOMMENT
LOW…tiger/test/cppsuite/src/component/workload_manager.cpp115 * Don't forget to delete the config we created earlier. While we do pass the config intoCOMMENT
LOW…third_party/wiredtiger/test/cppsuite/src/main/test.cpp137 /* Don't forget to delete. */COMMENT
LOWsrc/third_party/wiredtiger/src/include/tsan_suppress.h20 * we don't forget to properly fix them later and to highlight that this is only a temporaryCOMMENT
LOWsrc/third_party/wiredtiger/src/btree/bt_handle.c1267 * have been set. Don't forget to update the API documentation if youCOMMENT
MEDIUM…y/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.c111** As mentioned earlier, the overall design of the the trig routines isCODE
MEDIUMsrc/mongo/util/executor_stats_test.cpp204 * follow the same semantics as mentioned earlier in `ExecutorStatsTest::WaitTime`.COMMENT
LOW…/mongo/db/repl/initial_sync/collection_cloner_test.cpp923// test is to make sure we don't forget to request the _next_ resume token when resuming a query.COMMENT
MEDIUMsrc/mongo/db/index_builds/index_build_interceptor.cpp244 // SERVER-39705: It's worth noting that a document may not generate any keys, but beCOMMENT
AI Response Leakage5 hits · 46 pts
SeverityFileLineSnippetContext
HIGH…y/mozjs/extract/js/src/builtin/intl/CommonFunctions.js440 // In this implementation, localeData is a function, not an object.COMMENT
HIGH⚡src/third_party/boost/boost/container/string.hpp544//! In this implementation, basic_string has performance characteristics very similar toCOMMENT
HIGH⚡src/third_party/boost/boost/container/string.hpp548//! In this implementation, begin(),COMMENT
HIGH⚡src/third_party/boost/boost/container/string.hpp550//! In this implementation, iterators are only invalidated by member functions thatCOMMENT
HIGHsrc/mongo/db/admission/README.md61of a [Token Bucket](https://en.wikipedia.org/wiki/Token_bucket). In this implementation, the tokenCODE
AI Structural Patterns33 hits · 32 pts
SeverityFileLineSnippetContext
LOWevergreen/functions/upload_sbom_via_silkbomb.py129CODE
LOW…s/security_reporting_scripts/upload_to_google_drive.py15CODE
LOWbazel/wrapper_hook/compiledb.py716CODE
LOWbuildscripts/mongosymb.py199CODE
LOWbuildscripts/cs_suggest_variants.py739CODE
LOWbuildscripts/debugsymb_mapper.py198CODE
LOWbuildscripts/utils.py63CODE
LOWbuildscripts/gdb/mongo_printers.py996CODE
LOW…/tests/resmoke_end2end/test_resmoke_external_module.py54CODE
LOWbuildscripts/resmokelib/selector.py479CODE
LOWbuildscripts/resmokelib/selector.py649CODE
LOWbuildscripts/resmokelib/testing/hooks/stepdown.py35CODE
LOW…dscripts/resmokelib/testing/hooks/add_remove_shards.py60CODE
LOW…esmokelib/generate_fuzz_config/mongo_fuzzer_configs.py422CODE
LOW…ts/resmokelib/setup_multiversion/setup_multiversion.py81CODE
LOW…third_party/mock_ocsp_responder/mock_ocsp_responder.py96CODE
LOWsrc/third_party/wiredtiger/tools/wt-mcp/server.py1418CODE
LOW…edtiger/test/3rdparty/testtools-2.7.1/testtools/run.py126CODE
LOW…y/testtools-2.7.1/testtools/twistedsupport/_runtest.py79CODE
LOW…dparty/testtools-2.7.1/testtools/testresult/doubles.py219CODE
LOW…/3rdparty/testtools-2.7.1/testtools/testresult/real.py365CODE
LOW…/3rdparty/testtools-2.7.1/testtools/testresult/real.py481CODE
LOW…/3rdparty/testtools-2.7.1/testtools/testresult/real.py821CODE
LOW…/3rdparty/testtools-2.7.1/testtools/testresult/real.py1840CODE
LOW…ty/python-subunit-1.4.4/python/subunit/test_results.py448CODE
LOW…ty/python-subunit-1.4.4/python/subunit/test_results.py592CODE
LOW…ty/python-subunit-1.4.4/python/subunit/test_results.py734CODE
LOW…est/3rdparty/python-subunit-1.4.4/python/subunit/v2.py113CODE
LOW…est/3rdparty/python-subunit-1.4.4/python/subunit/v2.py150CODE
LOW…unit-1.4.4/python/subunit/tests/test_test_protocol2.py320CODE
LOW…unit-1.4.4/python/subunit/tests/test_test_protocol2.py329CODE
LOWsrc/third_party/wiredtiger/test/suite/helpers/wttest.py173CODE
LOW…ery/query_tester/tests/selfTests/testlib/test_utils.py85CODE
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHbuildscripts/jepsen_report.py71Given a List of strings representing jepsen log file split by newlines, return the ParserOutput struct. Args: STRING
HIGH…ules_mongo/codeowners/check_github_codeowner_errors.py23 Execute a GraphQL query against GitHub's API with retry logic. Args: query: The GraphQL query string STRING
HIGHbuildscripts/resmokelib/suitesconfig.py590Get a dictionary of all overrides from multiple directories keyed by override name. Parses override files from STRING
HIGHbuildscripts/resmokelib/suitesconfig.py655Get a dictionary of all suite mapping configurations from multiple directories. Collects and validates all matrSTRING
HIGHbuildscripts/resmokelib/suitesconfig.py707Get the mapping file path and suite directory for a given suite name. Searches all configured suite directoriesSTRING
TODO Padding5 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/third_party/icu4c-57.1/source/i18n/rbnf.cpp1357 // TODO: implement UParseErrorCOMMENT
LOWsrc/third_party/icu4c-57.1/source/i18n/rematch.cpp3908 // TODO: implement transparent bounds. Ticket #6067COMMENT
LOWsrc/third_party/icu4c-57.1/source/i18n/rematch.cpp5416 // TODO: implement transparent bounds. Ticket #6067COMMENT
LOW…er/test/3rdparty/testtools-2.7.1/testtools/testcase.py558 # TODO: implement with matchers.COMMENT
LOW…uery/compiler/optimizer/cost_based_ranker/ce_utils.cpp48 // TODO: implement operator*=COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…test/evergreen/code_coverage/parallel_code_coverage.py39def run_task(index, task):CODE
LOW…/3rdparty/testtools-2.7.1/testtools/testresult/real.py474 def do_something():STRING