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

Fixed UT run_pysdk_tests.sh #521

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

bhavya2109sharma
Copy link
Contributor

Issue #, if available: #316

Description of changes:
Skipped those test cases which needs credentials, or Docker daemon as it cannot be provided in SMD image as of now.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@TRNWWZ
Copy link
Contributor

TRNWWZ commented Nov 13, 2024

How many test cases are left after removing these? Do you know the percentage number?

@bhavya2109sharma
Copy link
Contributor Author

So 8028 passed, 3778 skipped and 27 deselected

@@ -8,13 +8,44 @@ git checkout tags/v$pysdk_version

# Install test dependencies of sagemaker-python-sdk
# Using pip as some of the packages are not available on conda-forge
pip install -r requirements/extras/test_requirements.txt
pip install --use-deprecated=legacy-resolver -r requirements/extras/test_requirements.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

What does --use-deprecated=legacy-resolver do?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah so without using it, getting the following error :

The conflict is caused by:
onnx 1.15.0 depends on protobuf>=3.20.2
tensorflow 2.12.0 depends on protobuf!=4.21.0, 1=4.21.1, 1=4.21.2, 1=4.21.3, 1=4.21.4, 1=4.21.5, <5.0.0dev and >=3.20.3
mlflow 2.12.2 depends on protobuf<5 and >=3.12.0
tensorboard 2.12.0 depends on protobuf>=3.19.6
opentelemetry-proto 1.28.0 depends on protobuf<6.0 and >=5.0

so for opentelemetry-proto 1.28.0, protobuf version should be >=5.0 and the current protobuf Version: 4.25.3

To resolve this, flag --use-deprecated=legacy-resolver is being added.

This was referenced Nov 16, 2024
@TRNWWZ TRNWWZ merged commit ba7834a into aws:main Nov 20, 2024
@bhavya2109sharma bhavya2109sharma deleted the bhavyssh/fix_SMD_python_SDK_test branch November 20, 2024 23:15
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.

4 participants