Skip to content

fix(python): remove Pin dependencies from weblogs - #8654

Draft
mabdinur wants to merge 2 commits into
mainfrom
codex/remove-pin-system-tests
Draft

mabdinur wants to merge 2 commits into
mainfrom
codex/remove-pin-system-tests

Conversation

@mabdinur

@mabdinur mabdinur commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Python test apps fail to import after removal of ddtrace's internal Pin module. Their extra-service endpoint also uses Pin to register a service.

Changes

Remove Pin imports and import fallbacks from Django, Flask, FastAPI, aiohttp, and Tornado. Create a span with the requested service through the tracer API so the SDK reports that service. Keep endpoint parameters, responses, and the tracer import fallback unchanged; clarify the endpoint documentation.

Validation

  • Full ./format.sh passed, including typing, import policies, formatting, YAML/manifests, shell checks, and Node.js linting.
  • All seven affected images build against the Pin-free ddtrace development wheel: Django on Python 3.11/3.12/3.13, Flask, FastAPI, aiohttp, and Tornado.
  • Runtime smoke checks call the endpoint and verify an exported span with the requested service.
  • Companion to refactor(tracing): remove internal Pin implementation dd-trace-py#22051. Based on the system-tests revision currently pinned there to avoid unrelated dependency changes.

Workflow

Draft while cross-repository CI completes.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

docs/understand/weblogs/end-to-end_weblog.md                            @DataDog/system-tests-core
utils/build/docker/python/aiohttp/main.py                               @DataDog/system-tests-reviewers
utils/build/docker/python/django/app/urls.py                            @DataDog/system-tests-reviewers
utils/build/docker/python/fastapi/main.py                               @DataDog/system-tests-reviewers
utils/build/docker/python/flask/app.py                                  @DataDog/system-tests-reviewers
utils/build/docker/python/tornado/main.py                               @DataDog/system-tests-reviewers

@datadog-prod-us1-6

datadog-prod-us1-6 Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Pipelines  Tests

❌ Errors

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 2 Pipeline jobs failed

DataDog/system-tests | system_tests_build_python_flask-poc

View more details · View in GitLab

Testing the test | all-jobs-are-green

View more details · View in GitHub Actions

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 0cd23ee | Docs | View more details | Give us feedback!

This branch has not been deployed

No deployments
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.

1 participant