Skip to content

Add FastAPI and SQLModel to third-party tests #11044

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

Merged
merged 28 commits into from
Dec 20, 2024
Merged

Add FastAPI and SQLModel to third-party tests #11044

merged 28 commits into from
Dec 20, 2024

Conversation

sydney-runkle
Copy link
Contributor

@sydney-runkle sydney-runkle commented Dec 3, 2024

Part of #11160.

@sydney-runkle sydney-runkle added the third-party-tests Add this label on a PR to trigger 3rd party tests label Dec 3, 2024
@github-actions github-actions bot added the relnotes-fix Used for bugfixes. label Dec 3, 2024
Copy link

cloudflare-workers-and-pages bot commented Dec 3, 2024

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: ca343f7
Status: ✅  Deploy successful!
Preview URL: https://8f6ecfb5.pydantic-docs.pages.dev
Branch Preview URL: https://testing-expeirment.pydantic-docs.pages.dev

View logs

Copy link

codspeed-hq bot commented Dec 3, 2024

CodSpeed Performance Report

Merging #11044 will not alter performance

Comparing testing-expeirment (ca343f7) with main (7485725)

Summary

✅ 46 untouched benchmarks

Copy link
Contributor

github-actions bot commented Dec 3, 2024

Coverage report

This PR does not seem to contain any modification to coverable code.

@Viicos Viicos mentioned this pull request Dec 20, 2024
16 tasks
@Viicos Viicos changed the title WIP: test 3rd party packages Add FastAPI and SQLModel to third-party tests Dec 20, 2024
@Viicos Viicos force-pushed the testing-expeirment branch from 55d2cd9 to 914f05e Compare December 20, 2024 10:33
@Viicos Viicos added third-party-tests Add this label on a PR to trigger 3rd party tests and removed third-party-tests Add this label on a PR to trigger 3rd party tests labels Dec 20, 2024
@Viicos Viicos force-pushed the testing-expeirment branch 5 times, most recently from b7f1c40 to 63136c7 Compare December 20, 2024 11:29
@Viicos Viicos force-pushed the testing-expeirment branch from 63136c7 to 30c3aae Compare December 20, 2024 11:36
@Viicos Viicos force-pushed the testing-expeirment branch from 4dab230 to 47137b0 Compare December 20, 2024 14:13
Copy link
Contributor Author

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

Screenshot 2024-12-20 at 10 38 48 AM

Note, re screenshot above - not sure if we need the ticks as it doesn't display as code on the actions list or actions drilldown.

Also, before we merge this PR, could we add a section to contributing.md that explains our criteria / process for adding integration tests like this? Ex - # of starts, amount of usage, etc?

Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a comment

Choose a reason for hiding this comment

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

1 files reviewed, 1 total issue(s) found.

The style guide flagged several spelling errors that seemed like false positives. We skipped posting inline suggestions for the following words:

  • [Mm]etaclass

@Viicos Viicos force-pushed the testing-expeirment branch from f81116c to 7bd5036 Compare December 20, 2024 16:09
Copy link
Contributor Author

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

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

Looks good, just a bit of workshoping on wording.


- The project is actively maintained.
- Making use of Pydantic internals (e.g. relying on the [`BaseModel`][pydantic.BaseModel] metaclass, typing utilities).
- The project is popular enough (although small projects can still be included depending on how Pydantic is being used).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel like we should quantify this (some # of stars, downloads)

Copy link
Member

Choose a reason for hiding this comment

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

The thing is it really depends on how Pydantic is used. We can have project with 100k stars but if it is only defining simple models (e.g. models for an API client, and types are well contained) then there's no interest in testing it. On the other hand, a project with 200 stars defining complex custom types is more valuable. So it is hard to quantify :/

Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com>
@Viicos Viicos enabled auto-merge (squash) December 20, 2024 17:16
@Viicos Viicos disabled auto-merge December 20, 2024 17:18
@Viicos Viicos enabled auto-merge (squash) December 20, 2024 17:18
@Viicos Viicos merged commit debffa5 into main Dec 20, 2024
67 checks passed
@Viicos Viicos deleted the testing-expeirment branch December 20, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes-fix Used for bugfixes. third-party-tests Add this label on a PR to trigger 3rd party tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants