From bc3dd04bda523472743321f251bd7f583a388c9a Mon Sep 17 00:00:00 2001 From: Bill Hamilton Date: Fri, 25 Sep 2026 07:25:56 -0700 Subject: [PATCH 1/2] =?UTF-8?q?ci(test):=20=F0=9F=94=A7=20repair=20test=20?= =?UTF-8?q?workflow;=20drop=20py3.7=20from=20matrix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test.yml has failed on all 13 runs it has ever made. The cause is a 401 at /v1/token: the DSV_CLIENT_ID/SECRET repo secrets (2023) and DSV_BASE_URL (2022) point at a client that no longer exists. py3.11 failed; the other versions were only cancelled by fail-fast. - Credentials: new dedicated read-only CI client on the dev tenant (role github-python-dsv-sdk-tests, policy secrets:test:sdk read). Repo secrets updated separately; nothing secret is in this change. - Matrix: drop 3.7 (not available on ubuntu-24.04); fail-fast off so each version reports its own result. tox envlist matched. Verified locally with the new client: 5/5 on py3.8-3.13. Co-Authored-By: Claude Opus 5.5 --- .../\360\237\244\226 CI & Build-20260925-073000.yaml" | 3 +++ .github/workflows/test.yml | 3 ++- tox.ini | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 ".changes/unreleased/\360\237\244\226 CI & Build-20260925-073000.yaml" diff --git "a/.changes/unreleased/\360\237\244\226 CI & Build-20260925-073000.yaml" "b/.changes/unreleased/\360\237\244\226 CI & Build-20260925-073000.yaml" new file mode 100644 index 0000000..30463e7 --- /dev/null +++ "b/.changes/unreleased/\360\237\244\226 CI & Build-20260925-073000.yaml" @@ -0,0 +1,3 @@ +kind: 🤖 CI & Build +body: Repair the test workflow. It had failed on every run because its DSV credentials were dead; it now runs against a dev tenant with a dedicated read-only CI client. Dropped Python 3.7 from the CI matrix (not available on ubuntu-24.04) and disabled fail-fast so each version reports its own result. +time: 2026-09-25T07:30:00.000000-07:00 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7d953df..845d9d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,8 +10,9 @@ jobs: runs-on: ubuntu-latest environment: testing strategy: + fail-fast: false # one version failing must not hide the others' results matrix: - python: [3.7, 3.8, 3.9, "3.10", "3.11"] + python: [3.8, 3.9, "3.10", "3.11"] # 3.7 is not available on ubuntu-24.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 diff --git a/tox.ini b/tox.ini index 413e712..af4b05b 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ # Docs for tox config -> https://tox.readthedocs.io/en/latest/config.html [tox] -envlist = 3.7, 3.8, 3.9, 3.10, 3.11 +envlist = 3.8, 3.9, 3.10, 3.11 isolated_build = True skipsdist = True From adaf2b68bf8fcf1a10ad66cceb5438379f1ca467 Mon Sep 17 00:00:00 2001 From: Bill Hamilton Date: Fri, 25 Sep 2026 08:13:18 -0700 Subject: [PATCH 2/2] =?UTF-8?q?ci(test):=20=F0=9F=94=A7=20give=20tests=20t?= =?UTF-8?q?heir=20own=20DSV=5FTEST=5F*=20secrets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit release.yml uses DSV_SERVER + DSV_CLIENT_ID/SECRET to fetch the PyPI token (ci:publish:pypi); test.yml shared those two client names. The tests now read DSV_TEST_BASE_URL/CLIENT_ID/CLIENT_SECRET, a read-only test:sdk client on the dev tenant, so test and publishing credentials can no longer be confused or overwritten one for the other. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 845d9d4..777a383 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,10 +29,12 @@ jobs: - name: Run Tox # Run tox using the version of Python in `PATH` run: tox -e py + # Test-only credentials (read-only on test:sdk). DSV_CLIENT_ID/SECRET without the + # TEST_ prefix belong to release.yml, which uses them to fetch the PyPI token. env: - DSV_CLIENT_ID: ${{ secrets.DSV_CLIENT_ID }} - DSV_CLIENT_SECRET: ${{ secrets.DSV_CLIENT_SECRET }} - DSV_BASE_URL: ${{ secrets.DSV_BASE_URL }} + DSV_CLIENT_ID: ${{ secrets.DSV_TEST_CLIENT_ID }} + DSV_CLIENT_SECRET: ${{ secrets.DSV_TEST_CLIENT_SECRET }} + DSV_BASE_URL: ${{ secrets.DSV_TEST_BASE_URL }} - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3 with: fail_ci_if_error: false