Allow simple identifiers in shared .bzl files for bazel-resmoke interop

XMLWordPrintableJSON

    • DevProd Correctness
    • Fully Compatible
    • Correctness 2026-02-23
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It is common for suites to re-use a list of tests, excludes, or tags. Being able to store them in common .bzl files will eliminate the duplication that would otherwise be required.

      This adds supports for the following syntax to the the subset that the resmoke interop mechanism can handle, originally introduced in https://github.com/10gen/mongo/commit/14728d565ec41b93dfb5adbab18228fd928c67cc.
      ```

      1. core.bzl
        CORE_SRCS = [
        "//jstests/core:all_subpackage_javascript_files",
        "//jstests/core_standalone:all_subpackage_javascript_files",
        ]
        ```
        ```
      2. BUILD.bazel
        load(":core.bzl", "CORE_SRCS")

      resmoke_suite_test(
      name = "core",
      srcs = CORE_SRCS,
      ...

      resmoke_suite_test(
      name = "jscore_passthrough",
      srcs = CORE_SRCS,
      ...
      ```

            Assignee:
            Sean Lyons
            Reporter:
            Sean Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: