Skip to content

Conversation

@kevinAlbs
Copy link
Collaborator

@kevinAlbs kevinAlbs commented Oct 29, 2025

Summary

Switch testazurekms-task from debian11-latest-small to debian11-small to fix set-up failure.

Tested with this patch build: https://spruce.mongodb.com/version/690221a09c315e0007b2bcd1

Background & Motivation

#2127 switched the testazurekms-task from debian11-small to debian11-latest-small. The az tool is too old on the debian11-latest-small, triggering a failure (example):

Detected az version 2.18.0 but need version >= 2.25.0

Upgrading az is requested in DEVPROD-23011. This PR proposes reverting to debian11-small and restoring the UV install scripts removed in #2127 in the short term. A newer az is also needed for Azure testing for OIDC.

@kevinAlbs kevinAlbs requested a review from eramongodb October 29, 2025 15:21
@kevinAlbs kevinAlbs marked this pull request as ready for review October 29, 2025 15:21
@kevinAlbs kevinAlbs requested a review from a team as a code owner October 29, 2025 15:21
Copy link
Contributor

@eramongodb eramongodb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The debian11 distro provides a python3 system binary with virtualenv support.

Instead of restoring old install scripts, suggest implementing the following testazurekms-task-specific workaround prior to dependent scripts and commands:

# Temporary workaround for lack of uv on `debian11`.
uv_dir="$(mktemp -d)"
python3 -m virtualenv "${uv_dir:?}"
(. "${uv_dir:?}/bin/activate" && python -m pip install uv)
PATH="${uv_dir:?}/bin:${PATH:-}"

command -V uv # uv is hashed (/tmp/.../bin/uv)
uv --version  # 0.9.5

Copy link
Collaborator Author

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated (and thank you for the much simpler suggestion!).

@kevinAlbs kevinAlbs requested a review from eramongodb October 29, 2025 20:03
@kevinAlbs kevinAlbs requested a review from eramongodb October 29, 2025 20:13
Copy link
Contributor

@eramongodb eramongodb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion; otherwise, LGTM.

Co-authored-by: Ezra Chung <88335979+eramongodb@users.noreply.github.com>
@kevinAlbs kevinAlbs merged commit 20d648b into mongodb:master Oct 30, 2025
42 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants