Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update latest gevent tested [backport 2.19] #11920

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

erikayasuda
Copy link
Contributor

@erikayasuda erikayasuda commented Jan 13, 2025

Backport 2a6774e from #11862 to 2.19.

Older versions of gevent are not compatible with Python 3.13.

AttributeError: '_MainThread' object has no attribute '_tstate_lock'
gevent/gevent#2054

This PR just updates the locked requirements files for venvs that use gevent.

Checklist

  • PR author has checked that all the criteria below are met
  • The PR description includes an overview of the change
  • The PR description articulates the motivation for the change
  • The change includes tests OR the PR description describes a testing strategy
  • The PR description notes risks associated with the change, if any
  • Newly-added code is easy to change
  • The change follows the library release note guidelines
  • The change includes or references documentation updates if necessary
  • Backport labels are set (if applicable)

Reviewer Checklist

  • Reviewer has checked that all the criteria below are met
  • Title is accurate
  • All changes are related to the pull request's stated goal
  • Avoids breaking API changes
  • Testing strategy adequately addresses listed risks
  • Newly-added code is easy to change
  • Release note makes sense to a user of the library
  • If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
  • Backport labels are set in a manner that is consistent with the release branch maintenance policy

@erikayasuda erikayasuda requested a review from a team as a code owner January 13, 2025 20:35
@erikayasuda erikayasuda changed the title ci: update latest gevent tested ci: update latest gevent tested [backport 2.19] Jan 13, 2025
Copy link
Contributor

github-actions bot commented Jan 13, 2025

CODEOWNERS have been resolved as:

.riot/requirements/1053dce.txt                                          @DataDog/apm-python
.riot/requirements/1092157.txt                                          @DataDog/apm-python
.riot/requirements/125c1e6.txt                                          @DataDog/apm-python
.riot/requirements/12a25de.txt                                          @DataDog/apm-python
.riot/requirements/12a4316.txt                                          @DataDog/apm-python
.riot/requirements/1359ebb.txt                                          @DataDog/apm-python
.riot/requirements/137098c.txt                                          @DataDog/apm-python
.riot/requirements/1413039.txt                                          @DataDog/apm-python
.riot/requirements/1438a95.txt                                          @DataDog/apm-python
.riot/requirements/148bd89.txt                                          @DataDog/apm-python
.riot/requirements/14f0b34.txt                                          @DataDog/apm-python
.riot/requirements/1560353.txt                                          @DataDog/apm-python
.riot/requirements/15e90ee.txt                                          @DataDog/apm-python
.riot/requirements/1600ae2.txt                                          @DataDog/apm-python
.riot/requirements/163a963.txt                                          @DataDog/apm-python
.riot/requirements/16c1c69.txt                                          @DataDog/apm-python
.riot/requirements/16d2d1f.txt                                          @DataDog/apm-python
.riot/requirements/17148ee.txt                                          @DataDog/apm-python
.riot/requirements/1800771.txt                                          @DataDog/apm-python
.riot/requirements/189a9da.txt                                          @DataDog/apm-python
.riot/requirements/196d465.txt                                          @DataDog/apm-python
.riot/requirements/19a43a5.txt                                          @DataDog/apm-python
.riot/requirements/1a1dfc3.txt                                          @DataDog/apm-python
.riot/requirements/1a736ea.txt                                          @DataDog/apm-python
.riot/requirements/1aa3044.txt                                          @DataDog/apm-python
.riot/requirements/1aa652f.txt                                          @DataDog/apm-python
.riot/requirements/1ace55b.txt                                          @DataDog/apm-python
.riot/requirements/1b284db.txt                                          @DataDog/apm-python
.riot/requirements/1b73c58.txt                                          @DataDog/apm-python
.riot/requirements/1b90fc9.txt                                          @DataDog/apm-python
.riot/requirements/1bceb88.txt                                          @DataDog/apm-python
.riot/requirements/1c47005.txt                                          @DataDog/apm-python
.riot/requirements/1d21682.txt                                          @DataDog/apm-python
.riot/requirements/1d6a1a5.txt                                          @DataDog/apm-python
.riot/requirements/1dcce79.txt                                          @DataDog/apm-python
.riot/requirements/1dd5678.txt                                          @DataDog/apm-python
.riot/requirements/1ddcf3c.txt                                          @DataDog/apm-python
.riot/requirements/1df3425.txt                                          @DataDog/apm-python
.riot/requirements/1df8347.txt                                          @DataDog/apm-python
.riot/requirements/1e1ea62.txt                                          @DataDog/apm-python
.riot/requirements/1ef2187.txt                                          @DataDog/apm-python
.riot/requirements/1f8ac1c.txt                                          @DataDog/apm-python
.riot/requirements/1fbf1f2.txt                                          @DataDog/apm-python
.riot/requirements/1fe881e.txt                                          @DataDog/apm-python
.riot/requirements/1fefc1d.txt                                          @DataDog/apm-python
.riot/requirements/26ee64c.txt                                          @DataDog/apm-python
.riot/requirements/27d0ff3.txt                                          @DataDog/apm-python
.riot/requirements/2d19e52.txt                                          @DataDog/apm-python
.riot/requirements/2e36381.txt                                          @DataDog/apm-python
.riot/requirements/401d7e2.txt                                          @DataDog/apm-python
.riot/requirements/4132bce.txt                                          @DataDog/apm-python
.riot/requirements/4211915.txt                                          @DataDog/apm-python
.riot/requirements/4e87dd9.txt                                          @DataDog/apm-python
.riot/requirements/512bff3.txt                                          @DataDog/apm-python
.riot/requirements/51f5382.txt                                          @DataDog/apm-python
.riot/requirements/5b922fc.txt                                          @DataDog/apm-python
.riot/requirements/5baaec1.txt                                          @DataDog/apm-python
.riot/requirements/5be696d.txt                                          @DataDog/apm-python
.riot/requirements/5ddbef6.txt                                          @DataDog/apm-python
.riot/requirements/5e63315.txt                                          @DataDog/apm-python
.riot/requirements/61891b4.txt                                          @DataDog/apm-python
.riot/requirements/620a309.txt                                          @DataDog/apm-python
.riot/requirements/69997b1.txt                                          @DataDog/apm-python
.riot/requirements/6e78b72.txt                                          @DataDog/apm-python
.riot/requirements/7c104f7.txt                                          @DataDog/apm-python
.riot/requirements/85c90b4.txt                                          @DataDog/apm-python
.riot/requirements/85e923f.txt                                          @DataDog/apm-python
.riot/requirements/89b8013.txt                                          @DataDog/apm-python
.riot/requirements/8dea090.txt                                          @DataDog/apm-python
.riot/requirements/9a5c0d9.txt                                          @DataDog/apm-python
.riot/requirements/9b3b6c2.txt                                          @DataDog/apm-python
.riot/requirements/a0f2001.txt                                          @DataDog/apm-python
.riot/requirements/a8351f1.txt                                          @DataDog/apm-python
.riot/requirements/adb0290.txt                                          @DataDog/apm-python
.riot/requirements/b1df5a4.txt                                          @DataDog/apm-python
.riot/requirements/b1eb794.txt                                          @DataDog/apm-python
.riot/requirements/b1fd8ec.txt                                          @DataDog/apm-python
.riot/requirements/b403d9d.txt                                          @DataDog/apm-python
.riot/requirements/b83f7ca.txt                                          @DataDog/apm-python
.riot/requirements/b92b3b0.txt                                          @DataDog/apm-python
.riot/requirements/bbb3af0.txt                                          @DataDog/apm-python
.riot/requirements/c3e8b1a.txt                                          @DataDog/apm-python
.riot/requirements/c74560f.txt                                          @DataDog/apm-python
.riot/requirements/c77bbb6.txt                                          @DataDog/apm-python
.riot/requirements/c8b476b.txt                                          @DataDog/apm-python
.riot/requirements/ce6cd33.txt                                          @DataDog/apm-python
.riot/requirements/d0355c2.txt                                          @DataDog/apm-python
.riot/requirements/d171c08.txt                                          @DataDog/apm-python
.riot/requirements/d44f455.txt                                          @DataDog/apm-python
.riot/requirements/ddba314.txt                                          @DataDog/apm-python
.riot/requirements/de578a7.txt                                          @DataDog/apm-python
.riot/requirements/e20bbeb.txt                                          @DataDog/apm-python
.riot/requirements/e68fea2.txt                                          @DataDog/apm-python
.riot/requirements/ee0b75a.txt                                          @DataDog/apm-python
.riot/requirements/f19daa4.txt                                          @DataDog/apm-python
.riot/requirements/f4fafb3.txt                                          @DataDog/apm-python
.riot/requirements/f65661f.txt                                          @DataDog/apm-python
riotfile.py                                                             @DataDog/apm-python
.riot/requirements/ba009af.txt                                          @DataDog/apm-python

@erikayasuda erikayasuda added the changelog/no-changelog A changelog entry is not required for this PR. label Jan 13, 2025
@pr-commenter
Copy link

pr-commenter bot commented Jan 13, 2025

Benchmarks

Benchmark execution time: 2025-01-14 14:56:22

Comparing candidate commit fe5c8d9 in PR branch backport-11862-to-2.19 with baseline commit 0860e73 in branch 2.19.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 394 metrics, 2 unstable metrics.

@erikayasuda erikayasuda merged commit 5824827 into 2.19 Jan 14, 2025
578 of 582 checks passed
@erikayasuda erikayasuda deleted the backport-11862-to-2.19 branch January 14, 2025 15:17
erikayasuda added a commit that referenced this pull request Jan 14, 2025
erikayasuda added a commit that referenced this pull request Jan 15, 2025
## Context
Failing tests slipped into the 2.19 branch, one of them being [this
gevent test
failure](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/jobs/765798135).
This was addressed in a fix PR to the main branch, and was [backported
to 2.19](#11920). However,
once backporting this fix, [ci_visibility tests on python 3.8 started to
fail
consistently](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/jobs/765777070).

After some digging, it turns out that in the backported fix for gevent,
the [greenlet dependency was bumped from 3.0.3 to
3.1.1](https://github.com/DataDog/dd-trace-py/pull/11920/files#diff-939f705fbaed2d1386345b41d7c68406808ecbc5609022a59505453df9ba4b63),
which according to greenlet documentation, [3.1.0 was the last release
to support 3.7 and
3.8](https://greenlet.readthedocs.io/en/latest/changes.html#id2). Looks
like pip didn't catch this during the upgrade because the [minimum
runtime version is still pinned to 3.7 in
greenlet](https://github.com/python-greenlet/greenlet/blob/3.1.1/setup.py#L263).

## Description
This PR pins greenlet to 3.1.0 for python<=3.8, and will use latest for
3.9+. The failing ci_visibility tests will pass on 3.8 now.

## Checklist
- [x] PR author has checked that all the criteria below are met
- The PR description includes an overview of the change
- The PR description articulates the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist
- [ ] Reviewer has checked that all the criteria below are met 
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
github-actions bot pushed a commit that referenced this pull request Jan 15, 2025
## Context
Failing tests slipped into the 2.19 branch, one of them being [this
gevent test
failure](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/jobs/765798135).
This was addressed in a fix PR to the main branch, and was [backported
to 2.19](#11920). However,
once backporting this fix, [ci_visibility tests on python 3.8 started to
fail
consistently](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/jobs/765777070).

After some digging, it turns out that in the backported fix for gevent,
the [greenlet dependency was bumped from 3.0.3 to
3.1.1](https://github.com/DataDog/dd-trace-py/pull/11920/files#diff-939f705fbaed2d1386345b41d7c68406808ecbc5609022a59505453df9ba4b63),
which according to greenlet documentation, [3.1.0 was the last release
to support 3.7 and
3.8](https://greenlet.readthedocs.io/en/latest/changes.html#id2). Looks
like pip didn't catch this during the upgrade because the [minimum
runtime version is still pinned to 3.7 in
greenlet](https://github.com/python-greenlet/greenlet/blob/3.1.1/setup.py#L263).

## Description
This PR pins greenlet to 3.1.0 for python<=3.8, and will use latest for
3.9+. The failing ci_visibility tests will pass on 3.8 now.

## Checklist
- [x] PR author has checked that all the criteria below are met
- The PR description includes an overview of the change
- The PR description articulates the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist
- [ ] Reviewer has checked that all the criteria below are met
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)

(cherry picked from commit 560aa89)
taegyunkim pushed a commit that referenced this pull request Jan 15, 2025
…11956)

Backport 560aa89 from #11953 to 2.19.

## Context
Failing tests slipped into the 2.19 branch, one of them being [this
gevent test
failure](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/jobs/765798135).
This was addressed in a fix PR to the main branch, and was [backported
to 2.19](#11920). However,
once backporting this fix, [ci_visibility tests on python 3.8 started to
fail
consistently](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/jobs/765777070).

After some digging, it turns out that in the backported fix for gevent,
the [greenlet dependency was bumped from 3.0.3 to
3.1.1](https://github.com/DataDog/dd-trace-py/pull/11920/files#diff-939f705fbaed2d1386345b41d7c68406808ecbc5609022a59505453df9ba4b63),
which according to greenlet documentation, [3.1.0 was the last release
to support 3.7 and
3.8](https://greenlet.readthedocs.io/en/latest/changes.html#id2). Looks
like pip didn't catch this during the upgrade because the [minimum
runtime version is still pinned to 3.7 in
greenlet](https://github.com/python-greenlet/greenlet/blob/3.1.1/setup.py#L263).

## Description
This PR pins greenlet to 3.1.0 for python<=3.8, and will use latest for
3.9+. The failing ci_visibility tests will pass on 3.8 now.

## Checklist
- [x] PR author has checked that all the criteria below are met
- The PR description includes an overview of the change
- The PR description articulates the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist
- [x] Reviewer has checked that all the criteria below are met 
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)

Co-authored-by: erikayasuda <153395705+erikayasuda@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog A changelog entry is not required for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants