Skip to content

fix(tests): Fix old pytest-asyncio breaking CI#3030

Merged
sentrivana merged 7 commits intomasterfrom
ivana/fix-tests
Apr 30, 2024
Merged

fix(tests): Fix old pytest-asyncio breaking CI#3030
sentrivana merged 7 commits intomasterfrom
ivana/fix-tests

Conversation

@sentrivana
Copy link
Copy Markdown
Contributor

@sentrivana sentrivana commented Apr 29, 2024

Our test suite started failing, fixing that.

We install pytest-asyncio, which in turns installs pytest, often latest. pytest version 8.2 was released recently and made pytest-asyncio version <0.23.6 incompatible since the compatibility fix was added in pytest-asyncio==0.23.6.

We're explicitly using an older pytest-asyncio version in many test suites (see tox.ini). Let's see if we can just... not.

The Tornado test suite seems to be failing for another reason; pinning pytest for that one for now.


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.

@sentrivana sentrivana changed the title fix(tests): Make CI greeen fix(tests): Fix pytest-asyncio breaking CI Apr 29, 2024
@sentrivana sentrivana changed the title fix(tests): Fix pytest-asyncio breaking CI fix(tests): Fix old pytest-asyncio breaking CI Apr 29, 2024
@sentrivana sentrivana marked this pull request as ready for review April 29, 2024 15:04
Copy link
Copy Markdown
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

Nice!

@sentrivana sentrivana merged commit 099f6d7 into master Apr 30, 2024
@sentrivana sentrivana deleted the ivana/fix-tests branch April 30, 2024 07:56
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.

3 participants