[BF] auth-aws-ecs cannot resolve git dependency

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • None
    • Python Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      test-auth-aws-ecs (auth-aws-ecs-macos variant) fails: uv cannot resolve mockupdb git dependency because git is not installed on the ECS test container

      Link to task:

      https://spruce.corp.mongodb.com/task/mongo_python_driver_auth_aws_ecs_macos_test_auth_aws_ecs_eb0b92f75d5f7ab8367b4286258a350a4e54a0cd_26_07_09_17_54_41/logs?execution=0

      Context of when and why the failure occurred:

      The ECS Fargate container for this test installs only build-essential before running uv run --extra aws --extra test --no-group dev. uv is installed unpinned each run, and it decided the committed uv.lock was stale ("Resolving despite existing lockfile due to removal of global exclude newer"), forcing a full universal re-resolve. That touches every dependency source in pyproject.toml, including the mockupdb extra (git+https://github.com/mongodb-labs/mongo-mockup-db@master), even though mockupdb isn't selected for this test. Resolving it requires git, which isn't installed on the app-ubuntu-24 image. Root cause of the lock invalidation is PYTHON-5862.
      Fix: add git to the apt-get install in .evergreen/run-mongodb-aws-ecs-test.sh:

      apt-get -q install -y build-essential git
      

      Stack trace:

      [2026/07/09 13:14:14.704] Resolving despite existing lockfile due to removal of global exclude newer
      [2026/07/09 13:14:16.380]    Updating https://github.com/mongodb-labs/mongo-mockup-db (master)
      [2026/07/09 13:14:16.381]   × Failed to download and build `mockupdb @ git+https://github.com/mongodb-labs/mongo-mockup-db@master`
      [2026/07/09 13:14:16.381]   ├─▶ Git operation failed
      [2026/07/09 13:14:16.381]   ╰─▶ Git executable not found. Ensure that Git is installed and available.
      [2026/07/09 13:14:16.405] ERROR:__main__:FAILED: 1
      

            Assignee:
            Steve Silvester
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: