Split wasm scope unit tests into per-category files

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc1
    • Affects Version/s: None
    • Component/s: Bazel
    • None
    • Query Integration
    • Major Change
    • QO 2025-02-17
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      scope_test.cpp (69 tests) and scope_test_security.cpp (26 tests) are each split into focused files to improve build parallelism and make it easier to locate tests by category:

      scope_test_invocation.cpp — $where/$function/$accumulator/mapReduce
      scope_test_date.cpp — Date.now() behaviour and millis round-trips
      scope_test_getters_setters.cpp — get/set for all BSON types
      scope_test_lifecycle.cpp — reset, kill, init, createFunction, bridge
      scope_test_helpers.cpp — isolation, array helpers, type(), setElement, getRegEx
      scope_test_memory_limits.cpp — store/heap constraints and emit-buffer limits
      scope_test_oom_timeout_exec.cpp — OOM detection, timeouts, exec()
      scope_test_concurrency.cpp — concurrent scope/pool/kill tests
      scope_test_security.cpp — frozen constructors, cross-request isolation, idle bridge

      BUILD.bazel gains one mongo_cc_unit_test target per file; scope_test.cpp is emptied (kept to avoid breaking any external references to the file). Total test count unchanged: 95.

      Anything in this description will be included in the commit message. Replace or delete this text
      before merging. Add links to testing in the comments of the PR.

            Assignee:
            Lee Maguire
            Reporter:
            Lee Maguire
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: