Devcontainer: Cannot build install-dist-test

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: devcontainer
    • None
    • DevProd Correctness
    • Fully Compatible
    • ALL
    • Correctness 2025-11-03
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      From kaloian.manassiev@mongodb.com 

      $ bazel build --mongo_toolchain_version=v5 --build_atlas=True --config=dbg install-dist-test INFO: Invocation ID: 94fc2a5a-356d-47d0-b0a7-fc3e2f52365d INFO: Streaming build results to: https://sodalite.cluster.engflow.com/invocation/94fc2a5a-356d-47d0-b0a7-fc3e2f52365d INFO: Analyzed target //:install-dist-test (0 packages loaded, 0 targets configured). ERROR: /workspaces/mongo/src/mongo/util/version/BUILD.bazel:6:16: TemplateRenderer src/mongo/util/version/releases.h failed: (Exit 1): python3 failed: error executing TemplateRenderer command (from target //src/mongo/util/version:releases_header) external/main~setup_mongo_python_toolchains~py_linux_arm64/dist/bin/python3 buildscripts/cheetah_source_generator.py -o bazel-out/aarch64-dbg/bin/src/mongo/util/version/releases.h ... (remaining 3 arguments skipped) Execution result: https://sodalite.cluster.engflow.com/actions/executions/ChCGmNov1ZtdMpsTjLu0IC3XEgdkZWZhdWx0GiUKIIAMY1si56_Um4eQgJ-0AzOVlrUOewz5Suqrv305zRycEM4C Traceback (most recent call last): File "/mnt/engflow/worker/work/30/exec/buildscripts/cheetah_source_generator.py", line 63, in <module> main() File "/mnt/engflow/worker/work/30/exec/buildscripts/cheetah_source_generator.py", line 59, in main opts.o.write(str(Template(file=opts.template_file, namespaces=[\{"args": opts.template_arg}]))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/engflow/worker/work/30/exec/bazel-out/aarch64-dbg/bin/external/poetry/cheetah3/Cheetah/Template.py", line 1053, in __unicode_ return getattr(self, mainMethName)() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "_mnt_engflow_worker_work_30_exec_src_mongo_util_version_releases_tpl_h.py", line 386, in respond AttributeError: 'NoneType' object has no attribute 'group' Target //:install-dist-test failed to build Use --verbose_failures to see the command lines of failed build steps. ERROR: /workspaces/mongo/BUILD.bazel:274:14 MongoInstallRule install-dist-test/bin/mongotrafficreader failed: (Exit 1): python3 failed: error executing TemplateRenderer command (from target //src/mongo/util/version:releases_header) external/_main~setup_mongo_python_toolchains~py_linux_arm64/dist/bin/python3 buildscripts/cheetah_source_generator.py -o bazel-out/aarch64-dbg/bin/src/mongo/util/version/releases.h ... (remaining 3 arguments skipped) INFO: Elapsed time: 12.681s, Critical Path: 11.65s INFO: 1919 processes: 1647 remote cache hit, 220 internal, 52 local. ERROR: Build did NOT complete successfully

      He also confirmed that this works fine on his virtual workstation, so it appears to be isolated to the devcontainer setup

            Assignee:
            Eric Lavigne
            Reporter:
            Eric Lavigne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: