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: updated test after updating to synapse python client 4.4.0 and updated test after test resources get updated on synapse #1471

Merged
merged 4 commits into from
Aug 26, 2024

Conversation

linglp
Copy link
Contributor

@linglp linglp commented Aug 26, 2024

Problem:

I noticed the following test failed in develop:

FAILED tests/test_store.py::TestSynapseStorage::test_store_async_annotation - AssertionError: expected call not found.

And also this test failed:

FAILED tests/test_manifest.py::TestManifestGenerator::test_get_manifest_with_files[File based] 

Related to: https://sagebionetworks.jira.com/browse/FDS-2304

Reason

left over from: #1468. After updating to synapse python client, this test needs to be updated

And also the following tests were skipped in github action run:

[gw0] [ 86%] SKIPPED tests/test_store.py::TestSynapseStorage::test_format_row_annotations_entity_id_trash_can[True-display_label] 
tests/test_store.py::TestSynapseStorage::test_format_row_annotations_entity_id_trash_can[False-display_label] 
[gw0] [ 86%] SKIPPED tests/test_store.py::TestSynapseStorage::test_format_row_annotations_entity_id_trash_can[False-display_label] 
tests/test_store.py::TestSynapseStorage::test_format_row_annotations_entity_id_trash_can[True-class_label] 
[gw0] [ 86%] SKIPPED tests/test_store.py::TestSynapseStorage::test_format_row_annotations_entity_id_trash_can[True-class_label] 
tests/test_store.py::TestSynapseStorage::test_format_row_annotations_entity_id_trash_can[False-class_label] 
[gw0] [ 86%] SKIPPED tests/test_store.py::TestSynapseStorage::test_format_row_annotations_entity_id_trash_can[False-class_label] 
tests/test_store.py::TestSynapseStorage::test_get_files_metadata_from_dataset 
[gw0] [ 86%] PASSED tests/test_store.py::TestSynapseStorage::test_get_files_metadata_from_dataset 
tests/test_store.py::TestSynapseStorage::test_get_async_annotation 
[gw0] [ 87%] SKIPPED tests/test_store.py::TestSynapseStorage::test_get_async_annotation 
tests/test_store.py::TestSynapseStorage::test_store_async_annotation 
[gw0] [ 87%] SKIPPED tests/test_store.py::TestSynapseStorage::test_store_async_annotation 
tests/test_store.py::TestSynapseStorage::test_process_store_annos_failure 
[gw0] [ 87%] SKIPPED tests/test_store.py::TestSynapseStorage::test_process_store_annos_failure 
tests/test_store.py::TestSynapseStorage::test_process_store_annos_success_store 
[gw0] [ 87%] SKIPPED tests/test_store.py::TestSynapseStorage::test_process_store_annos_success_store 
tests/test_store.py::TestSynapseStorage::test_process_store_annos_success_get 
[gw0] [ 87%] SKIPPED tests/test_store.py::TestSynapseStorage::test_process_store_annos_success_get 
tests/test_store.py::TestSynapseStorage::test_process_store_annos_success_get_entity_id_variants 
[gw0] [ 87%] SKIPPED tests/test_store.py::TestSynapseStorage::test_process_store_annos_success_get_entity_id_variants 
tests/test_store.py::TestSynapseStorage::test_process_store_annos_get_annos_empty 
[gw0] [ 87%] SKIPPED tests/test_store.py::TestSynapseStorage::test_process_store_annos_get_annos_empty 
tests/test_store.py::TestDatasetFileView::test_init 

Solution

  • update the test to use the new method from synapse python client
  • investigate why the tests were skipped will be in a separate ticket: FDS 2305

Copy link
Member

@thomasyu888 thomasyu888 left a comment

Choose a reason for hiding this comment

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

LGTM! Is this tied to the jira ticket?

@linglp
Copy link
Contributor Author

linglp commented Aug 26, 2024

LGTM! Is this tied to the jira ticket?

Thanks Tom. I also want to see why this test was skipped.

@linglp linglp changed the title fix: updated test after updating to synapse python client 4.4.0 fix: updated test after updating to synapse python client 4.4.0 and updated test after test resources get updated on synapse Aug 26, 2024
Copy link

@linglp linglp requested a review from GiaJordan August 26, 2024 17:06
@linglp linglp marked this pull request as ready for review August 26, 2024 17:30
@linglp
Copy link
Contributor Author

linglp commented Aug 26, 2024

LGTM! Is this tied to the jira ticket?

Yeah. I updated the PR description.

@linglp linglp merged commit 887a053 into develop Aug 26, 2024
6 checks passed
@linglp linglp deleted the develop-fix-async-synapse-store-test branch August 26, 2024 18:29
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