From 6ba77cfccad171b367c0140a38a367e2e603f9e8 Mon Sep 17 00:00:00 2001 From: Yun Kim <35776586+Yun-Kim@users.noreply.github.com> Date: Mon, 19 Dec 2022 15:17:11 -0500 Subject: [PATCH] fix(starlette framework tests): unpin sqlalchemy (#4801) ## Description The starlette framework tests currently pin sqlalchemy to 1.4.41 due to an upstream issue which has now closed: https://github.com/encode/databases/issues/512. It looks like we can unpin this dependency. Note: this also indirectly fixes the failing starlette framework tests due to this now closed upstream issue: https://github.com/encode/databases/pull/513, where sqlalchemy==1.4.42 added a new private field in the SQLAlchemy cursor class. While this job uses the latest databases package that has accounted for this field, this was causing attribute errors since we were using a previous version of sqlalchemy that did not yet have that private field added. ## Checklist - [ ] Followed the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/contributing.html#Release-Note-Guidelines) when writing a release note. - [ ] Add additional sections for `feat` and `fix` pull requests. - [ ] [Library documentation](https://github.com/DataDog/dd-trace-py/tree/1.x/docs) and/or [Datadog's documentation site](https://github.com/DataDog/documentation/) is updated. Link to doc PR in description. ## Motivation ## Design ## Testing strategy ## Relevant issue(s) ## Testing strategy ## Reviewer Checklist - [x] Title is accurate. - [x] Description motivates each change. - [x] No unnecessary changes were introduced in this PR. - [x] Avoid breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes unless absolutely necessary. - [x] Tests provided or description of manual testing performed is included in the code or PR. - [x] Release note has been added and follows the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/contributing.html#Release-Note-Guidelines), or else `changelog/no-changelog` label added. - [x] All relevant GitHub issues are correctly linked. - [x] Backports are identified and tagged with Mergifyio. --- .github/workflows/test_frameworks.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/test_frameworks.yml b/.github/workflows/test_frameworks.yml index 7183d97c714..fafb23cded1 100644 --- a/.github/workflows/test_frameworks.yml +++ b/.github/workflows/test_frameworks.yml @@ -309,9 +309,6 @@ jobs: run: pip install ../ddtrace - name: Install dependencies run: scripts/install - - name: Pin SQLAlchemy - # https://github.com/encode/databases/issues/512 - run: pip install "SQLAlchemy==1.4.41" #Parameters for keyword expression skip 3 failing tests that are expected due to asserting on headers. The errors are because our context propagation headers are being added #test_staticfiles_with_invalid_dir_permissions_returns_401 fails with and without ddtrace enabled - name: Run tests