Skip to content
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

run pydantic tests as an allowed-to-fail job #767

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

davidhewitt
Copy link
Contributor

@davidhewitt davidhewitt commented Jul 13, 2023

Change Summary

Runs pydantic tests in this CI, which help should catch incompatibilities and breaking changes before they make it downstream.

Related issue number

N/A

Checklist

  • Unit tests for the changes exist
  • Documentation reflects the changes where applicable
  • Pydantic tests pass with this pydantic-core (except for expected changes)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @dmontagu

@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Merging #767 (71bf4a8) into main (e3ceb4b) will not change coverage.
The diff coverage is n/a.

❗ Current head 71bf4a8 differs from pull request most recent head 38887b4. Consider uploading reports for the commit 38887b4 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #767   +/-   ##
=======================================
  Coverage   93.67%   93.67%           
=======================================
  Files          99       99           
  Lines       14290    14290           
  Branches       25       25           
=======================================
  Hits        13386    13386           
  Misses        898      898           
  Partials        6        6           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e3ceb4b...38887b4. Read the comment docs.

@codspeed-hq
Copy link

codspeed-hq bot commented Jul 13, 2023

CodSpeed Performance Report

Merging #767 will improve performances by 10.98%

Comparing dh/pydantic-integration (38887b4) with main (1382deb)

Summary

🔥 1 improvements
✅ 125 untouched benchmarks

Benchmarks breakdown

Benchmark main dh/pydantic-integration Change
🔥 test_tagged_union_int_keys_json 48.2 µs 43.5 µs +10.98%

@davidhewitt davidhewitt force-pushed the dh/pydantic-integration branch 6 times, most recently from bcf723f to 27fc28b Compare July 13, 2023 11:34
@davidhewitt
Copy link
Contributor Author

please review

@dmontagu
Copy link
Collaborator

Will this cause CI to fail if there are breaking changes? I think we frequently do have breaking changes in pydantic-core in things that "aren't public", just trying to understand if this is just meant to tell us if there is a problem or if it is meant to prevent merging the changes. In the second case, I think it will add some unnecessary hassle

@davidhewitt
Copy link
Contributor Author

I've pushed a commit which deliberately fails the integration tests in order to show that CI should still overall be green (i.e. this will be a canary rather than a blocker).

@davidhewitt
Copy link
Contributor Author

When I have approval, I will drop the second commit before merge.

Copy link
Member

@samuelcolvin samuelcolvin 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, I think you might also need to add allowed-failures to alls-green check.

@davidhewitt davidhewitt force-pushed the dh/pydantic-integration branch 3 times, most recently from d5dd4f3 to 71bf4a8 Compare July 17, 2023 11:14
@davidhewitt
Copy link
Contributor Author

Copy link
Collaborator

@dmontagu dmontagu left a comment

Choose a reason for hiding this comment

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

lgtm

@davidhewitt davidhewitt merged commit 6aab4db into main Jul 17, 2023
29 checks passed
@davidhewitt davidhewitt deleted the dh/pydantic-integration branch July 17, 2023 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants