From 103300dd6319683e041f39604f42a09ea902bfa3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 08:12:28 +0000 Subject: [PATCH 01/17] Bump pyright from 1.1.405 to 1.1.406 Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.405 to 1.1.406. - [Release notes](https://github.com/RobertCraigie/pyright-python/releases) - [Commits](https://github.com/RobertCraigie/pyright-python/compare/v1.1.405...v1.1.406) --- updated-dependencies: - dependency-name: pyright dependency-version: 1.1.406 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b06e6401a4..623eb6c164 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,7 @@ mockupdb = [ perf = ["simplejson>=3.17.0"] typing = [ "mypy==1.18.2", - "pyright==1.1.405", + "pyright==1.1.406", "typing_extensions", "pip" ] From 813aa21ddc5ebe02911a5e90e2908607e66f501f Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 06:21:07 -0500 Subject: [PATCH 02/17] try with python -m uv --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d2b9d9a17a..0d7496b2d2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -125,7 +125,7 @@ repos: - id: uv-lock name: uv-lock - entry: uv lock + entry: python -m uv lock language: python require_serial: true files: ^(uv\.lock|pyproject\.toml|requirements.txt|requirements/.*\.txt)$ From 5f1b13dde1b9aeb9512998656d823d8da4d8da37 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 06:43:17 -0500 Subject: [PATCH 03/17] Revert "try with python -m uv" This reverts commit 813aa21ddc5ebe02911a5e90e2908607e66f501f. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d7496b2d2..d2b9d9a17a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -125,7 +125,7 @@ repos: - id: uv-lock name: uv-lock - entry: python -m uv lock + entry: uv lock language: python require_serial: true files: ^(uv\.lock|pyproject\.toml|requirements.txt|requirements/.*\.txt)$ From 3163b590269282f2353ad767bf0d91825964aa3a Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 06:48:30 -0500 Subject: [PATCH 04/17] try with bash script --- .pre-commit-config.yaml | 2 +- tools/update-locks.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 tools/update-locks.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d2b9d9a17a..24d1eba069 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -125,7 +125,7 @@ repos: - id: uv-lock name: uv-lock - entry: uv lock + entry: bash ./tools/update-locks.sh language: python require_serial: true files: ^(uv\.lock|pyproject\.toml|requirements.txt|requirements/.*\.txt)$ diff --git a/tools/update-locks.sh b/tools/update-locks.sh new file mode 100755 index 0000000000..1428e0ccd2 --- /dev/null +++ b/tools/update-locks.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu + +uv lock From 0158cd8c8aafd825553cd1eb7d80d8767d46f6fc Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 06:55:56 -0500 Subject: [PATCH 05/17] try with uv lock directly --- .github/workflows/test-python.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 0ed23b9d83..0e416e22df 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -35,6 +35,9 @@ jobs: - name: Install Python dependencies run: | just install + + - name: Make sure the lock file is up to date + run: uv lock - name: Run linters run: | just lint-manual From 0608c0aa1cb1f50a0fd90c1d0175bde821f4c242 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 06:59:43 -0500 Subject: [PATCH 06/17] debug --- .github/workflows/test-python.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 0e416e22df..743cf759e0 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -37,7 +37,9 @@ jobs: just install - name: Make sure the lock file is up to date - run: uv lock + run: | + env + uv lock - name: Run linters run: | just lint-manual From 391bacbeb8cb4b2792f6d7fca74b55eca6b032b9 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 07:40:48 -0500 Subject: [PATCH 07/17] debug --- .github/workflows/test-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 743cf759e0..4313deca93 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -39,7 +39,7 @@ jobs: - name: Make sure the lock file is up to date run: | env - uv lock + uv lock --no-config - name: Run linters run: | just lint-manual From d27da8d4f115bfcaed07b0d34f31d0cd79e9e77c Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 07:45:19 -0500 Subject: [PATCH 08/17] debug --- .github/workflows/test-python.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 4313deca93..139d829f0d 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -38,8 +38,7 @@ jobs: - name: Make sure the lock file is up to date run: | - env - uv lock --no-config + uv lock -v - name: Run linters run: | just lint-manual From 6059b2a40eeab7e200da306967e43c46904ed18e Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 07:48:53 -0500 Subject: [PATCH 09/17] debug --- .github/workflows/test-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 139d829f0d..d37c845176 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -38,7 +38,7 @@ jobs: - name: Make sure the lock file is up to date run: | - uv lock -v + uv lock --no-cache - name: Run linters run: | just lint-manual From 009045228fc12ecec8c383c7714e9fc527132cf3 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 10:48:15 -0500 Subject: [PATCH 10/17] debug --- .github/workflows/test-python.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index d37c845176..75dbce8953 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -30,15 +30,16 @@ jobs: with: enable-cache: true python-version: "3.10" + + - name: Make sure the lock file is up to date + run: | + uv lock - name: Install just run: uv tool install rust-just - name: Install Python dependencies run: | just install - - name: Make sure the lock file is up to date - run: | - uv lock --no-cache - name: Run linters run: | just lint-manual From 73675d2dbcb8767c967690684932c1840336e545 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 10:53:25 -0500 Subject: [PATCH 11/17] try no uv_python --- .evergreen/scripts/setup-dev-env.sh | 4 ++-- .github/workflows/test-python.yml | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.evergreen/scripts/setup-dev-env.sh b/.evergreen/scripts/setup-dev-env.sh index 1204848e72..9616011c53 100755 --- a/.evergreen/scripts/setup-dev-env.sh +++ b/.evergreen/scripts/setup-dev-env.sh @@ -29,8 +29,8 @@ if [ -z "${PYTHON_BINARY:-}" ]; then PYTHON_BINARY=$(find_python3) fi fi -export UV_PYTHON=${PYTHON_BINARY} -echo "Using python $UV_PYTHON" +# export UV_PYTHON=${PYTHON_BINARY} +# echo "Using python $UV_PYTHON" # Add the default install path to the path if needed. if [ -z "${PYMONGO_BIN_DIR:-}" ]; then diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 75dbce8953..c3161c37cc 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -31,9 +31,6 @@ jobs: enable-cache: true python-version: "3.10" - - name: Make sure the lock file is up to date - run: | - uv lock - name: Install just run: uv tool install rust-just - name: Install Python dependencies From 3b570e5917f3a9f36e50e92286b8f9326836d4d3 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 10:56:04 -0500 Subject: [PATCH 12/17] try no install dependencies --- .evergreen/scripts/setup-dev-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.evergreen/scripts/setup-dev-env.sh b/.evergreen/scripts/setup-dev-env.sh index 9616011c53..d2ab3c5c18 100755 --- a/.evergreen/scripts/setup-dev-env.sh +++ b/.evergreen/scripts/setup-dev-env.sh @@ -17,7 +17,7 @@ if [ -f $HERE/test-env.sh ]; then fi # Ensure dependencies are installed. -bash $HERE/install-dependencies.sh +# bash $HERE/install-dependencies.sh # Get the appropriate UV_PYTHON. . $ROOT/.evergreen/utils.sh From b6044a61bc4e74dca1d7af971620a07bd7662550 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 10:59:19 -0500 Subject: [PATCH 13/17] try no install dev setup at all --- justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justfile b/justfile index f235346160..56588aaebe 100644 --- a/justfile +++ b/justfile @@ -17,7 +17,7 @@ resync: @uv sync --quiet install: - bash .evergreen/scripts/setup-dev-env.sh + # bash .evergreen/scripts/setup-dev-env.sh uvx pre-commit install [group('docs')] From 9723e5301dbcb3a3c0f4ff211a72fda270afe8aa Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 11:01:51 -0500 Subject: [PATCH 14/17] try bailing on dev setup --- .evergreen/scripts/setup-dev-env.sh | 8 +++++--- justfile | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.evergreen/scripts/setup-dev-env.sh b/.evergreen/scripts/setup-dev-env.sh index d2ab3c5c18..2a67c26a84 100755 --- a/.evergreen/scripts/setup-dev-env.sh +++ b/.evergreen/scripts/setup-dev-env.sh @@ -7,6 +7,8 @@ HERE="$( cd -- "$HERE" > /dev/null 2>&1 && pwd )" ROOT=$(dirname "$(dirname $HERE)") pushd $ROOT > /dev/null +exit 0 + # Source the env files to pick up common variables. if [ -f $HERE/env.sh ]; then . $HERE/env.sh @@ -17,7 +19,7 @@ if [ -f $HERE/test-env.sh ]; then fi # Ensure dependencies are installed. -# bash $HERE/install-dependencies.sh +bash $HERE/install-dependencies.sh # Get the appropriate UV_PYTHON. . $ROOT/.evergreen/utils.sh @@ -29,8 +31,8 @@ if [ -z "${PYTHON_BINARY:-}" ]; then PYTHON_BINARY=$(find_python3) fi fi -# export UV_PYTHON=${PYTHON_BINARY} -# echo "Using python $UV_PYTHON" +export UV_PYTHON=${PYTHON_BINARY} +echo "Using python $UV_PYTHON" # Add the default install path to the path if needed. if [ -z "${PYMONGO_BIN_DIR:-}" ]; then diff --git a/justfile b/justfile index 56588aaebe..f235346160 100644 --- a/justfile +++ b/justfile @@ -17,7 +17,7 @@ resync: @uv sync --quiet install: - # bash .evergreen/scripts/setup-dev-env.sh + bash .evergreen/scripts/setup-dev-env.sh uvx pre-commit install [group('docs')] From f4b70ce1298df0c52df5fe505cee68281494aa29 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 11:04:58 -0500 Subject: [PATCH 15/17] try bailing on dev setup --- .evergreen/scripts/setup-dev-env.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.evergreen/scripts/setup-dev-env.sh b/.evergreen/scripts/setup-dev-env.sh index 2a67c26a84..209857d542 100755 --- a/.evergreen/scripts/setup-dev-env.sh +++ b/.evergreen/scripts/setup-dev-env.sh @@ -7,7 +7,10 @@ HERE="$( cd -- "$HERE" > /dev/null 2>&1 && pwd )" ROOT=$(dirname "$(dirname $HERE)") pushd $ROOT > /dev/null -exit 0 +# Bail early if running on GitHub Actions. +if [ -n "${GITHUB_ACTION:-}" ]; then + exit 0 +fi # Source the env files to pick up common variables. if [ -f $HERE/env.sh ]; then From 98759f98c981521f57a1fa0af3e9bd1f2f92f86d Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 11:09:10 -0500 Subject: [PATCH 16/17] undo other changes --- .github/workflows/test-python.yml | 2 -- .pre-commit-config.yaml | 2 +- tools/update-locks.sh | 4 ---- 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100755 tools/update-locks.sh diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index c3161c37cc..0ed23b9d83 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -30,13 +30,11 @@ jobs: with: enable-cache: true python-version: "3.10" - - name: Install just run: uv tool install rust-just - name: Install Python dependencies run: | just install - - name: Run linters run: | just lint-manual diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24d1eba069..d2b9d9a17a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -125,7 +125,7 @@ repos: - id: uv-lock name: uv-lock - entry: bash ./tools/update-locks.sh + entry: uv lock language: python require_serial: true files: ^(uv\.lock|pyproject\.toml|requirements.txt|requirements/.*\.txt)$ diff --git a/tools/update-locks.sh b/tools/update-locks.sh deleted file mode 100755 index 1428e0ccd2..0000000000 --- a/tools/update-locks.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -eu - -uv lock From 4972f158c57f72ee06060b68ec78257f50c75ec0 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 6 Oct 2025 11:18:35 -0500 Subject: [PATCH 17/17] update lock file --- uv.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uv.lock b/uv.lock index 273a7b6adf..480f64c263 100644 --- a/uv.lock +++ b/uv.lock @@ -1199,7 +1199,7 @@ pip = [{ name = "pip" }] typing = [ { name = "mypy", specifier = "==1.18.2" }, { name = "pip" }, - { name = "pyright", specifier = "==1.1.405" }, + { name = "pyright", specifier = "==1.1.406" }, { name = "typing-extensions" }, ] @@ -1249,15 +1249,15 @@ wheels = [ [[package]] name = "pyright" -version = "1.1.405" +version = "1.1.406" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "nodeenv" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/fb/6c/ba4bbee22e76af700ea593a1d8701e3225080956753bee9750dcc25e2649/pyright-1.1.405.tar.gz", hash = "sha256:5c2a30e1037af27eb463a1cc0b9f6d65fec48478ccf092c1ac28385a15c55763", size = 4068319, upload-time = "2025-09-04T03:37:06.776Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f7/16/6b4fbdd1fef59a0292cbb99f790b44983e390321eccbc5921b4d161da5d1/pyright-1.1.406.tar.gz", hash = "sha256:c4872bc58c9643dac09e8a2e74d472c62036910b3bd37a32813989ef7576ea2c", size = 4113151, upload-time = "2025-10-02T01:04:45.488Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d5/1a/524f832e1ff1962a22a1accc775ca7b143ba2e9f5924bb6749dce566784a/pyright-1.1.405-py3-none-any.whl", hash = "sha256:a2cb13700b5508ce8e5d4546034cb7ea4aedb60215c6c33f56cec7f53996035a", size = 5905038, upload-time = "2025-09-04T03:37:04.913Z" }, + { url = "https://files.pythonhosted.org/packages/f6/a2/e309afbb459f50507103793aaef85ca4348b66814c86bc73908bdeb66d12/pyright-1.1.406-py3-none-any.whl", hash = "sha256:1d81fb43c2407bf566e97e57abb01c811973fdb21b2df8df59f870f688bdca71", size = 5980982, upload-time = "2025-10-02T01:04:43.137Z" }, ] [[package]]