-
Notifications
You must be signed in to change notification settings - Fork 78
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
Test on variety of pydantic
versions 🩷
#503
Conversation
Deploying logfire-docs with Cloudflare Pages
|
pydantic
versions matrix to testspydantic
versions 🩷
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #503 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 132 132
Lines 9986 10004 +18
Branches 1343 1349 +6
=========================================
+ Hits 9986 10004 +18 ☔ View full report in Codecov by Sentry. |
Should we test OTel packages min/max as well? 🤔 This job needs to be added to the |
Good question. I'll defer to you and @alexmojaki re Otel. Will add to check when I'm back at my computer. I think just testing the plugin makes sense given that pydantic isn't a dependency. |
We have code like
We definitely should, in another PR
Everything, just to be safe. These are fast. It's not just the plugin anyway, it's also about encoding pydantic objects as JSON. Is there not a way to do this basically with just the GHA matrix, so we don't duplicate a bunch of stuff? |
Done
Done
Done
Sounds great, thanks for clarifying.
I've opened #507 to track this. |
Need to investigate failing coverage tomorrow. Not sure why that's the case now that we test on the variety of pydantic versions. |
Do we want to do the full cross product of python x pydantic versions here? |
No, I think the cross product is extreme. I think https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow#expanding-or-adding-matrix-configurations should allow testing many pydantic versions on just 3.12. Note that normally CI uses the latest git commit of pydantic, we still want to test that for all Python versions. |
Co-authored-by: Alex Hall <[email protected]>
Looks like the coverage still isn't working. Once that's fixed, please search the repo for |
It's not immediately evident to me why we're missing these lines on v1 testing. |
Thanks, sorry it was so painful! |
Add tests with a
pydantic
versions matrixNot sure if we need to deal with coverage here, happy to remove that part if we want.