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

Fix pydantic incompatiblity causing test failures #982

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

jesszzzz
Copy link
Contributor

@jesszzzz jesszzzz commented Dec 3, 2024

Seeing a failure because of an incompatibility between pydantic and sagemaker causing the error ERROR torchx/schedulers/test/aws_sagemaker_scheduler_test.py - NameError: Field name "json" shadows a BaseModel attribute; use a different field name with "alias='json'". eg. https://github.com/pytorch/torchx/actions/runs/12147832511/job/33874943758

This diff pins the sagemaker version to avoid this

Test plan:

Ran pytest torchx/schedulers/test/aws_sagemaker_scheduler_test.py, also CI tests pass (docs and pyre errors are pre-existing)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 3, 2024
@jesszzzz jesszzzz force-pushed the fix_pydantic_incompatibility branch 2 times, most recently from 7704877 to 694cacd Compare December 6, 2024 19:23
@jesszzzz jesszzzz force-pushed the fix_pydantic_incompatibility branch from 694cacd to 94dfca0 Compare December 6, 2024 19:57
@jesszzzz jesszzzz assigned jesszzzz and unassigned jesszzzz Dec 9, 2024
Copy link
Contributor

@tonykao8080 tonykao8080 left a comment

Choose a reason for hiding this comment

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

thanks for the fix

@jesszzzz jesszzzz merged commit edc0531 into main Dec 11, 2024
20 of 22 checks passed
@jesszzzz jesszzzz deleted the fix_pydantic_incompatibility branch December 11, 2024 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants