Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix uv switch #10815

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 10 commits into from
Nov 11, 2024
Merged

fix uv switch #10815

merged 10 commits into from
Nov 11, 2024

Conversation

samuelcolvin
Copy link
Member

correct use of uv.

@github-actions github-actions bot added the relnotes-fix Used for bugfixes. label Nov 11, 2024
Copy link

codspeed-hq bot commented Nov 11, 2024

CodSpeed Performance Report

Merging #10815 will improve performances by ×3.3

Comparing fix-uv (d6b33cd) with main (c7a3d5c)

Summary

⚡ 3 improvements
✅ 41 untouched benchmarks

Benchmarks breakdown

Benchmark main fix-uv Change
test_efficiency_with_highly_nested_examples 955.1 µs 904.1 µs +5.64%
test_import_basemodel 83.9 µs 26.2 µs ×3.2
test_import_field 83 µs 25.4 µs ×3.3

Copy link
Contributor

@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.

LGTM, thanks! Just one follow up question.

except ImportError:
cloudpickle = None

pytestmark = pytest.mark.skipif(cloudpickle is None, reason='cloudpickle is not installed')
Copy link
Contributor

Choose a reason for hiding this comment

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

Not every test here requires cloudpickle, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

I just assumed most do, I can go though one by one if it's necessary.

Copy link

cloudflare-workers-and-pages bot commented Nov 11, 2024

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: d6b33cd
Status: ✅  Deploy successful!
Preview URL: https://6bbf5967.pydantic-docs.pages.dev
Branch Preview URL: https://fix-uv.pydantic-docs.pages.dev

View logs

@sydney-runkle
Copy link
Contributor

sydney-runkle commented Nov 11, 2024

Re eedf556:

I don't think tzdata should be added to dev, as we don't have email-validator there. They're both extras...
So, we should probably add conditional skips to those tests accordingly, like you've done for the email validator ones.

@sydney-runkle
Copy link
Contributor

Also, we should investigate the perf bottlenecks here - very odd...

Copy link
Contributor

Coverage report

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

@davidhewitt
Copy link
Contributor

Perf regressions are because pytest-memray is now being installed; for whatever reason our benchmarks are measuring pytest hook execution time...

image

@davidhewitt
Copy link
Contributor

Looks like @pytest.mark.benchmark is the problematic pattern, measuring the wrong thing.

@samuelcolvin
Copy link
Member Author

@sydney-runkle I think this is ready.

@sydney-runkle
Copy link
Contributor

@samuelcolvin,

LGTM, though I don't think you addressed this one: #10815 (comment)

@samuelcolvin
Copy link
Member Author

Re eedf556:

I don't think tzdata should be added to dev, as we don't have email-validator there. They're both extras... So, we should probably add conditional skips to those tests accordingly, like you've done for the email validator ones.

It has to be included for windows tests, hence the hint.

@sydney-runkle
Copy link
Contributor

Alright! Let's merge then.

Thanks for the improvements here 👍, looking much cleaner.

@sydney-runkle sydney-runkle added relnotes-ignore Omit this PR from the release notes. and removed relnotes-fix Used for bugfixes. labels Nov 11, 2024
@sydney-runkle sydney-runkle merged commit e9cde45 into main Nov 11, 2024
54 checks passed
@sydney-runkle sydney-runkle deleted the fix-uv branch November 11, 2024 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes-ignore Omit this PR from the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants