uv install fails on gcpkms/azurekms remote test hosts due to missing pip

XMLWordPrintableJSON

    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      uv install fails during setup on gcpkms/azurekms remote test hosts due to missing pip

      Link to task:

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

      Context of when and why the failure occurred:

      The test-gcpkms task in the mongo-python-driver project failed during setup on 2026-08-03. The task provisions a fresh GCE instance, then clones drivers-evergreen-tools and runs its setup, which calls ensure_uv() to bootstrap the uv tool. On this host, the system Python has no pip module, and the ensurepip fallback did not recover it, so ensure_uv() could not install uv and setup.sh aborted before any tests ran. The same gap applies to the analogous azurekms remote host.

      This is a regression introduced by DRIVERS-3564, which replaced the prior filesystem scan for a usable Python interpreter with ensure_uv(). The new path requires pip (or an already-installed uv) to bootstrap uv, a dependency the old approach never needed, and the gcpkms/azurekms remote provisioning scripts were not updated to install it.

      Stack trace:

      uv not found on PATH; installing with 'python3 -m pip install --user uv'...
      /usr/bin/python3: No module named pip
      /usr/bin/python3: No module named pip
      ERROR: could not find or install uv.
      
      Install it manually, then re-run:
      https://docs.astral.sh/uv/getting-started/installation/
      
      If you believe uv/pip should already be available in this environment,
      please file a ticket in the DEVPROD Jira project:
      https://jira.mongodb.org/projects/DEVPROD
      ERROR Command '['./setup.sh']' returned non-zero exit status 1.
      error: recipe setup-tests failed on line 93 with exit code 1
      

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

              Created:
              Updated:
              Resolved: