Repository navigation
ci(test): 🔧 repair test workflow (dead credentials); drop py3.7 from matrix - #44
Merged
Merged
Conversation
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 <noreply@anthropic.com>
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
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 <noreply@anthropic.com>
sheldonhull
approved these changes
Sep 25, 2026
typettitt
approved these changes
Sep 25, 2026
jonbos
approved these changes
Sep 25, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repairs the
testworkflow. All 13 runs it has ever made have failed, so the SDK's tests have never run successfully in CI.Root cause: dead credentials, not code
The token request got
401 Unauthorized, so 3 of 5 tests failed at authentication. Only py3.11 actually failed; the other matrix jobs were cancelled by fail-fast, which made it look like a py3.7 problem.DSV_CLIENT_ID/DSV_CLIENT_SECRETwere last set 2023-05-09, andDSV_BASE_URL2022-05-25. That client no longer exists.qa190.qabambe.com,acceptance.secretsvaultcloud.com, and every tenant reporting to the dev/QA Datadog org (no CI 401s on any run date). Most likely it was a prod-domain tenant that has since been deleted or reset.Fix
Credentials (already applied, no secret values in this PR): the tests now read their own secrets,
DSV_TEST_BASE_URL,DSV_TEST_CLIENT_IDandDSV_TEST_CLIENT_SECRET. They point at the dev tenantbill.devbambe.com, using a dedicated client with the minimum it needs:github-python-dsv-sdk-tests, matching thegithub-<repo>-testsconvention used bydsv-k8s-sidecaranddsv-github-actionsecrets:test:sdk:readonly onsecrets:test:sdk:<.*>test:sdk:simpleWhy separate names:
release.ymlusesDSV_SERVER+DSV_CLIENT_ID/DSV_CLIENT_SECRETto fetch the PyPI token fromci:publish:pypi. Those three were set together on 2023-05-09 for the 1.0.4 publish, while the tests'DSV_BASE_URL(2022) pointed at a different tenant. Sharing the client names is what left the tests broken.This also takes SDK test CI off the prod domain, if that's where it was.
Workflow (
.github/workflows/test.yml,tox.ini):ubuntu-24.04runners.fail-fast: false, so each version reports its own result and one failure can't hide another's cause again.tox.inienvlistmatched.Testing
Locally with the new CI client, via
tox -e pyagainst the dev tenant: 5/5 on Python 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13. This PR's owntestrun is the end-to-end check of the repo secrets.Notes
pyproject.tomlstill advertises Python ≥3.7. Dropping EOL versions from the package is a separate decision and is left untouched.lint / changie-validationfailure is pre-existing: the repo setting "Allow GitHub Actions to create and approve pull requests" is off. It isn't a required check..github/, so it needs a @DelineaXPM/dsv-admins review per CODEOWNERS.🤖 Generated with Claude Code