-
Notifications
You must be signed in to change notification settings - Fork 556
toxgen: Add variants & move OpenAI under toxgen #4730
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4730 +/- ##
=======================================
Coverage 84.91% 84.91%
=======================================
Files 156 156
Lines 16115 16115
Branches 2741 2741
=======================================
Hits 13684 13684
Misses 1644 1644
Partials 787 787 |
I was looking through the checks in this PR and noticed that some did not find any targets, e.g., the 3.10 notiktoken variant found here: https://github.com/getsentry/sentry-python/actions/runs/17380359730/job/49336205814?pr=4730#logs. |
This is expected, see Lines 146 to 149 in 7192946
It's this way since it was the easiest to manage/most convenient way to manage all the different test suites across all py versions. The GH actions don't have any way of knowing which Python versions they should run which test suites on, so they just run everything and we manage it on a lower level. |
Adds supports for variants, i.e., the same test suite running with a slightly different setup (for instance, a different set of dependencies, like
openai
andopenai_notiktoken
).To add a variant, simply add a new test suite to the config.
The tricky part is naming. I had to rename
openai
toopenai_base
since otherwise theopenai_notiktoken
andopenai_agents
test suite would be run withtox -e py<version>-openai
/./scripts/runtox.sh py<version>-openai
due to how tox works. They should be treated as three different suites.Closes #4507