Add hermetic container support for Bazel builds

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Bazel
    • None
    • Build OnDeck
    • None
    • None
    • None
    • None
    • None
    • None
    • None

        1. Jira
          SERVER-132330(https://jira.mongodb.org/browse/SERVER-132330)
        1. Summary
      • Add hermetic-container integration to Bazel wrapper hooks and containerized toolchains.
      • Route Linux Evergreen Bazel tasks through container actions with an explicit opt-out.
      • Keep Bazel convenience links and generated container state under `.tmp`.
      • Add policy, validation, and unit-test coverage for containerized actions and cross-platform wrappers.
        1. Safety and compatibility
      • Container action selection is constrained by the repository policy and supported platform/configuration checks.
      • Native execution remains available through the explicit Evergreen opt-out and unsupported-platform fallbacks.
      • The Evergreen parameter uses the required lowercase naming while preserving the uppercase environment variable consumed by build scripts.
        1. Testing
      • `BUILD_WORKING_DIRECTORY=/data/OTHER_HOST/mongo bazel-bin/buildscripts/yamllinters` (passes both evaluated Evergreen YAML files and `etc/coverity.yml`).

            Assignee:
            Daniel Moody
            Reporter:
            Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: