Skip to content

[2.0] Drop Python 2.7, 3.5 from CI (1)#2640

Merged
sentrivana merged 4 commits into
sentry-sdk-2.0from
ivana/py2.7/drop-from-ci
Jan 16, 2024
Merged

[2.0] Drop Python 2.7, 3.5 from CI (1)#2640
sentrivana merged 4 commits into
sentry-sdk-2.0from
ivana/py2.7/drop-from-ci

Conversation

@sentrivana

Copy link
Copy Markdown
Contributor
  • remove special treatment for Python 2.7 from CI YAML generation
  • remove Python 2.7, 3.5 test environments from tox.ini
  • remove tests for framework versions that don't support at least Python 3.6

General Notes

Thank you for contributing to sentry-python!

Please add tests to validate your changes, and lint your code using tox -e linters.

Running the test suite on your PR might require maintainer approval. Some tests (AWS Lambda) additionally require a maintainer to add a special label to run and will fail if the label is not present.

For maintainers

Sensitive test suites require maintainer review to ensure that tests do not compromise our secrets. This review must be repeated after any code revisions.

Before running sensitive test suites, please carefully check the PR. Then, apply the Trigger: tests using secrets label. The label will be removed after any code changes to enforce our policy requiring maintainers to review all code revisions before running sensitive tests.

- remove special treatment for Python 2.7 from CI YAML generating
- remove Python 2.7, 3.5 test environments from tox.ini
@sentrivana sentrivana changed the title [2.0] Drop Python 2.7, 3.5 from CI [2.0] Drop Python 2.7, 3.5 from CI (1) Jan 15, 2024

@szokeasaurusrex szokeasaurusrex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a couple questions, please see inline comments

fail-fast: false
matrix:
python-version: ["3.5","3.8","3.11","3.12"]
python-version: ["3.8","3.11","3.12"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be testing 3.6 and/or 3.7 here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should -- the yaml files will be updated as soon as I add these to tox.ini

Comment thread tox.ini Outdated
# Bottle
{py2.7,py3.5,py3.9}-bottle-v{0.12}
{py3.5,py3.11,py3.12}-bottle-latest
{py3.9}-bottle-v{0.12}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need py 3.6 here (or in any of the other tests where py3.5 was removed)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very good point, adding this!

@sentrivana

Copy link
Copy Markdown
Contributor Author

Added 3.6 as the lowest supported version to test against in places where we're removing 3.5 -- please re-review @szokeasaurusrex 🙏🏻

@szokeasaurusrex szokeasaurusrex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added inline comments in a few spots where it is possible that we should be adding 3.6, but I am unsure. Please double check these locations, and fix them if necessary – then I think this is good to merge!

Comment thread tox.ini Outdated

# pure_eval
{py3.5,py3.11,py3.12}-pure_eval
{py3.11,py3.12}-pure_eval

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.6?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this one, will add

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to {py3.6,py3.11,py3.12}-pure_eval

Comment thread tox.ini Outdated

# Redis
{py2.7,py3.7,py3.8}-redis-v{3}
{py3.7,py3.8}-redis-v{3}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.6?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to {py3.6,py3.8}-redis-v{3} (dropped 3.7, no need to check against every single supported py version, going with lowest-highest supported)

Comment thread tox.ini Outdated

# Redis Cluster
{py2.7,py3.7,py3.8}-rediscluster-v{1,2}
{py3.7,py3.8}-rediscluster-v{1,2}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.6?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to {py3.6,py3.8}-rediscluster-v{1,2} (same reasoning as above)

Comment thread tox.ini Outdated

# Requests
{py2.7,py3.8,py3.11,py3.12}-requests
{py3.8,py3.11,py3.12}-requests

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.6?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻 {py3.6,py3.8,py3.11,py3.12}-requests

Comment thread tox.ini Outdated

# SQL Alchemy
{py2.7,py3.7,py3.9}-sqlalchemy-v{1.2,1.4}
{py3.7,py3.9}-sqlalchemy-v{1.2,1.4}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.6?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to {py3.6,py3.9}-sqlalchemy-v{1.2,1.4}

@sentrivana

Copy link
Copy Markdown
Contributor Author

Thanks for the thorough review @szokeasaurusrex! 👍🏻

@sentrivana
sentrivana merged commit 9703685 into sentry-sdk-2.0 Jan 16, 2024
@sentrivana
sentrivana deleted the ivana/py2.7/drop-from-ci branch January 16, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants