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

Enable Pydantic v2 using v1 API #736

Closed
wants to merge 5 commits into from
Closed

Conversation

Lnaden
Copy link
Collaborator

@Lnaden Lnaden commented Jul 31, 2023

Description

As it says. This is a stopgap until we can properly implement Pydantic v2

Focuses mostly on QCPortal

Part of the larger QCA Upgrade to Pydantic v2

Changelog description

Status

  • Code base linted
  • Ready to go

As it says. This is a stopgap until we can properly implement Pydantic v2
@loriab
Copy link
Collaborator

loriab commented Aug 2, 2023

ok, qcng 0.27 is up, so I think you're good to iterate on this. note that I pinned black to 22 over at qcng, so possibly that and similar maintenance changes there could be useful here. qcel black is pinned at 22 but I'll backtrack that sometime for consistency.

@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Merging #736 (777d181) into next (d5aa7bb) will decrease coverage by 0.26%.
The diff coverage is 43.81%.

Additional details and impacted files

@loriab
Copy link
Collaborator

loriab commented Aug 4, 2023

I'm pretty confident that all the real tests will pass now here. Docs build after some env edits (conda is smart enough to use pydantic=1 if you constrain autodoc-pydantic=1, but pip is not, and it actually installs 1.0.0, hence the explicit pins) but they fail to deploy, hence the x. Possibly that's because it's a non-Ben PR.

@loriab
Copy link
Collaborator

loriab commented Aug 4, 2023

Ok, I fixed the docs trouble. But the old manager + parsl tests (3 pythons) are all still running (>1h) and I notice that they used to finish in ~20 minutes (the pool and dask ones still do), so there might be something wrong there still. No output as of yet from the tests step.

@loriab
Copy link
Collaborator

loriab commented Aug 6, 2023

The old manager + parsl are failing all pytests tests in 3h because psi4 is failing or the communication is failing to connect, so it retries over and over. I did go ahead and update the 1.8.1 psi4s off the psi4 channel to be pydantic v1/v2 compatible and copy over the v1/v2 qcel and qcng to the psi4 channel, but there's no change. the CI is pulling psi4 v1.7 anyways, and parsl is pulling the same psi4 as dask and pool, which are working just fine. So I don't know what else to do on this short of upgrading the whole env spec to v1.8.1 and c-f-based, and that seems too disruptive to do w/o consultation.

@mattwthompson
Copy link
Contributor

Are those failures related to the changes in this patch? They don't obviously seem so, but I could be missing something.

@loriab
Copy link
Collaborator

loriab commented Nov 7, 2023

Are those failures related to the changes in this patch? They don't obviously seem so, but I could be missing something.

If this was to me, no, I think this patch is perfectly harmless (and desirable). I think this needs a thorough rebase since the next->main transition. Or a cherry-pick or hand edit might be a better strategy.

@mattwthompson
Copy link
Contributor

I would like this patch so I'll see if I can finish it up

@bennybp bennybp closed this in #787 Nov 8, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants