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 unit tests #8553

Merged
merged 65 commits into from
Mar 13, 2024
Merged

Fix unit tests #8553

merged 65 commits into from
Mar 13, 2024

Conversation

yashgorana
Copy link
Contributor

@yashgorana yashgorana commented Mar 6, 2024

Description

Please include a summary of the change, the motivation, and any additional context that will help others understand your PR. If it closes one or more open issues, please tag them as described here.

Affected Dependencies

List any dependencies that are required for this change.

How has this been tested?

  • Describe the tests that you ran to verify your changes.
  • Provide instructions so we can reproduce.
  • List any relevant details for your test configuration.

Checklist

packages/syft/tests/utils/mongodb.py Dismissed Show dismissed Hide dismissed
@@ -177,7 +177,7 @@ def run_container_using_docker(
image=worker_image.image_identifier.full_name_with_tag,
name=f"{hostname}-{worker_name}",
detach=True,
auto_remove=True,
# auto_remove=True,
Copy link
Collaborator

Choose a reason for hiding this comment

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

How come we have commented this out?

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 this was to detect the errors in default worker pool, need to clean up this PR before we merge

@yashgorana
Copy link
Contributor Author

I'll be pushing some more fixes, please don't merge this PR at the moment

@@ -120,14 +120,14 @@ test_plugins =
pytest-asyncio
pytest-randomly
pytest-sugar
pytest_mock_resources
python_on_whales
Copy link
Collaborator

Choose a reason for hiding this comment

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

MAYBE: I think we could also remove unsed dependencies here like

  1. python_on_whales
  2. lxml
  3. joblib (not fully sure if joblib is being used?)

Copy link
Collaborator

Choose a reason for hiding this comment

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

and I think pytest-asyncio is also not used

Copy link
Collaborator

Choose a reason for hiding this comment

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

agree

Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets address in a smaller follow up PR.

bash -c "docker volume rm test-gateway-1_mongo-data --force || true"
bash -c "docker volume rm test-gateway-1_credentials-data --force || true"
bash -c "docker volume rm test-gateway-1_seaweedfs-data --force || true"
bash -c 'docker rm -f $(docker ps -a -q --filter "label=orgs.openmined.syft") || true'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice

@shubham3121
Copy link
Member

@yashgorana is this PR good to be merged ?

@madhavajay madhavajay merged commit 1a9da6a into dev Mar 13, 2024
35 checks passed
@madhavajay madhavajay deleted the yash/fix-tests branch March 13, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants