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

Upgrade to pydantic v2 #286

Merged
merged 4 commits into from
Jun 11, 2024
Merged

Conversation

oscarbc96
Copy link
Contributor

@oscarbc96 oscarbc96 changed the title wip Upgrade to pydantic v2 May 11, 2024
resource_ids={"RolePolicy"},
resource_types={"AWS::IAM::Policy"},
),
Failure(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Two new failures are added. Review if they are correct

Copy link
Contributor

Choose a reason for hiding this comment

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

They are, they come from Skyscanner/pycfmodel#133 which is not included in the latest release yet

@@ -17,7 +17,6 @@ def bad_template_no_configuration():
"template_path",
[
"rules/S3LifecycleConfiguration/good_template.yaml",
"rules/S3LifecycleConfiguration/allowed_template_malformed_lifecycle_rules.yaml",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If it's a malmormed policy, pycfmodel must not parse it. This test is wrong.

ignaciobolonio
ignaciobolonio previously approved these changes May 11, 2024
Copy link
Contributor

@ignaciobolonio ignaciobolonio left a comment

Choose a reason for hiding this comment

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

Looking great 🚀

resource_ids={"RolePolicy"},
resource_types={"AWS::IAM::Policy"},
),
Failure(
Copy link
Contributor

Choose a reason for hiding this comment

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

They are, they come from Skyscanner/pycfmodel#133 which is not included in the latest release yet

@ignaciobolonio ignaciobolonio marked this pull request as ready for review June 11, 2024 14:23
ignaciobolonio pushed a commit that referenced this pull request Jun 11, 2024
@ignaciobolonio
Copy link
Contributor

will continue in #289 as for some reason tests are not being run as we expected

@ignaciobolonio ignaciobolonio marked this pull request as draft June 11, 2024 14:55
@jsoucheiron jsoucheiron reopened this Jun 11, 2024
@ignaciobolonio ignaciobolonio marked this pull request as ready for review June 11, 2024 15:31
@jsoucheiron jsoucheiron changed the base branch from master to pydantic2 June 11, 2024 15:32
@jsoucheiron jsoucheiron merged commit 0911af0 into Skyscanner:pydantic2 Jun 11, 2024
6 checks passed
ignaciobolonio added a commit that referenced this pull request Jun 11, 2024
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