From 56eede4aa9ec88e16637ef8ab51e026a633f69ca Mon Sep 17 00:00:00 2001 From: SergeyMenshykh Date: Wed, 30 Sep 2026 16:28:10 +0100 Subject: [PATCH 1/2] Python: Exclude incompatible cryptography release on Python 3.10 Exclude cryptography 50.0.2 only on Python versions below 3.11 because the release has no compatible wheel or source distribution. Keep the lockfile in sync without changing locked package versions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- python/pyproject.toml | 2 ++ python/uv.lock | 2 ++ 2 files changed, 4 insertions(+) diff --git a/python/pyproject.toml b/python/pyproject.toml index 6bc95f773a90..0b8734ef2024 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -33,6 +33,8 @@ dependencies = [ "defusedxml ~= 0.7", # azure identity "azure-identity >= 1.13", + # cryptography 50.0.2 has no Python 3.10-compatible distributions. + "cryptography!=50.0.2; python_version < '3.11'", # embeddings "numpy >= 1.25.0; python_version < '3.12'", "numpy >= 1.26.0; python_version >= '3.12'", diff --git a/python/uv.lock b/python/uv.lock index 5b93345b1480..bd0a696b4aca 100644 --- a/python/uv.lock +++ b/python/uv.lock @@ -6674,6 +6674,7 @@ dependencies = [ { name = "azure-ai-projects", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, { name = "azure-identity", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, { name = "cloudevents", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, + { name = "cryptography", marker = "(python_full_version < '3.11' and sys_platform == 'darwin') or (python_full_version < '3.11' and sys_platform == 'linux') or (python_full_version < '3.11' and sys_platform == 'win32')" }, { name = "defusedxml", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, { name = "jinja2", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, { name = "mcp", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, @@ -6823,6 +6824,7 @@ requires-dist = [ { name = "boto3", marker = "extra == 'aws'", specifier = ">=1.36.4,<1.43.0" }, { name = "chromadb", marker = "extra == 'chroma'", specifier = ">=0.5,<1.6" }, { name = "cloudevents", specifier = ">=1,<3" }, + { name = "cryptography", marker = "python_full_version < '3.11'", specifier = "!=50.0.2" }, { name = "defusedxml", specifier = "~=0.7" }, { name = "faiss-cpu", marker = "extra == 'faiss'", specifier = ">=1.10.0" }, { name = "google-cloud-aiplatform", marker = "extra == 'google'", specifier = ">=1.114,<1.134" }, From dc13354b589947efd5bdb5c3e11bbd95db52cc96 Mon Sep 17 00:00:00 2001 From: SergeyMenshykh Date: Wed, 30 Sep 2026 16:50:53 +0100 Subject: [PATCH 2/2] CI: Pin uv version to avoid GitHub release discovery failures Use uv 0.5.31 in all setup-uv steps instead of the 0.5.x range. Exact version selection bypasses the GitHub releases-list lookup that repeatedly fails with Server Error, while preserving the current uv series and existing action version. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/devflow-pr-review.yml | 2 +- .github/workflows/python-build.yml | 2 +- .github/workflows/python-integration-tests.yml | 12 ++++++------ .github/workflows/python-lint.yml | 2 +- .github/workflows/python-test-coverage.yml | 2 +- .github/workflows/python-unit-tests.yml | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/devflow-pr-review.yml b/.github/workflows/devflow-pr-review.yml index 8458cfb6a367..29b09145b5d8 100644 --- a/.github/workflows/devflow-pr-review.yml +++ b/.github/workflows/devflow-pr-review.yml @@ -186,7 +186,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true - name: Install DevFlow dependencies diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 25f709b1fda4..4fa4aa6140da 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -21,7 +21,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" diff --git a/.github/workflows/python-integration-tests.yml b/.github/workflows/python-integration-tests.yml index e29fe50b9a79..f0acc731d615 100644 --- a/.github/workflows/python-integration-tests.yml +++ b/.github/workflows/python-integration-tests.yml @@ -123,7 +123,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" @@ -180,7 +180,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} - name: Install dependencies @@ -221,7 +221,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} - name: Install dependencies @@ -272,7 +272,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" @@ -337,7 +337,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" @@ -395,7 +395,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml index f852d7e608f0..2640110b56ec 100644 --- a/.github/workflows/python-lint.yml +++ b/.github/workflows/python-lint.yml @@ -27,7 +27,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" diff --git a/.github/workflows/python-test-coverage.yml b/.github/workflows/python-test-coverage.yml index 78f53d8f0dff..d736f6e4d3fb 100644 --- a/.github/workflows/python-test-coverage.yml +++ b/.github/workflows/python-test-coverage.yml @@ -29,7 +29,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ env.UV_PYTHON }} cache-dependency-glob: "**/uv.lock" diff --git a/.github/workflows/python-unit-tests.yml b/.github/workflows/python-unit-tests.yml index e39b18e7ff16..bbb7ebaa2bdf 100644 --- a/.github/workflows/python-unit-tests.yml +++ b/.github/workflows/python-unit-tests.yml @@ -43,7 +43,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock"