OCL API 2
Build: #2333 failed
Job: Run tests failed
Job result summary
- Completed
- Duration
- 42 minutes
- Agent
- yu.openmrs.org (2)
- Revision
-
41a31ed283d698f8f455013df57fa9a7ccf243cd
- Fixed in
- #2334 (Rebuilt by Sunny Aggarwal.)
Error summary
The build generated some errors. See the full build log for more details.
test_public_collections ... ok
test_public_sources ... ok
test_reset_password_url ... ok
test_resource_type ... ok
test_send_reset_password_email ... ok
test_send_verification_email ... ok
test_set_token ... ok
test_status ... ok
test_update_password ... ok
test_user ... ok
test_user_active_inactive_should_affect_children ... ok
test_verify ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1595: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2025-09-24 05:10:43.104653) while time zone support is active.
warnings.warn(
ok
core.value_sets.tests.ValueSetTest
test_can_create_empty ... ok
test_can_create_with_compose ... ok
test_can_update_empty ... ok
test_create_with_filter_and_concept ... ok
test_create_with_filter_and_system ... ok
test_create_with_filter_and_system_and_no_filter ... ok
test_create_with_is_a_filter_and_system ... ok
test_expand ... ok
test_public_can_find_globally ... ok
test_public_can_find_globally_without_compose ... ok
test_public_can_view ... ok
test_unable_to_represent_as_fhir ... Failed to represent "/invalid/uri" as ValueSet
Traceback (most recent call last):
File "/code/core/value_sets/serializers.py", line 260, in to_representation
IdentifierSerializer.include_ocl_identifier(instance.uri, RESOURCE_TYPE, rep)
File "/code/core/common/serializers.py", line 141, in include_ocl_identifier
return IdentifierSerializer.parse_identifier(ident)
File "/code/core/common/serializers.py", line 88, in parse_identifier
raise ValidationError(
rest_framework.exceptions.ValidationError: [ErrorDetail(string='Identifier must be in a format: /{owner_type}/{owner_id}/{resourceType}/{resource_id}/, given: /invalid/uri', code='invalid')]
ok
test_update_with_compose ... ok
test_validate_code ... ok
test_validate_code_globally ... ok
test_validate_code_globally_negative ... ok
test_validate_code_globally_via_post ... ok
test_validate_code_negative ... ok
core.tasks.tests.UtilsTest
test_wait_until_task_complete_finished ... ok
test_wait_until_task_complete_pending ... ok
======================================================================
FAIL: test_post_202 (core.integration_tests.tests_sources.SourceConceptsIndexViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m1731[39m, in test_post_202
[38;5;250m [39mindex_source_concepts_task_mock[38;5;241m.[39mapply_async[38;5;241m.[39massert_called_once_with(([38;5;241m100[39m,), queue[38;5;241m=[39m[38;5;124m'[39m[38;5;124mindexing[39m[38;5;124m'[39m, task_id[38;5;241m=[39mANY)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m993[39m, in assert_called_once_with
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39massert_called_with([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m980[39m, in assert_called_with
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mAssertionError[39;00m(_error_message()) [38;5;28;01mfrom[39;00m[38;5;250m [39m[38;5;21;01mcause[39;00m
[38;5;160mAssertionError[39m: expected call not found.
Expected: apply_async((100,), queue='indexing', task_id=<ANY>)
Actual: apply_async((100, False), queue='indexing', task_id='ae9a2097-297f-4237-a07c-9dce273df02b-soop~indexing')
======================================================================
FAIL: test_get_204_head (core.integration_tests.tests_sources.SourceVersionExportViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m980[39m, in test_get_204_head
[38;5;250m [39ms3_exists_mock[38;5;241m.[39massert_called_once_with([38;5;124mf[39m[38;5;124m"[39m[38;5;124musers/username/username_source1_vHEAD.[39m[38;5;132;01m{[39;00m[38;5;28mself[39m[38;5;241m.[39mv1_updated_at[38;5;132;01m}[39;00m[38;5;124m.zip[39m[38;5;124m"[39m)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m993[39m, in assert_called_once_with
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39massert_called_with([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m980[39m, in assert_called_with
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mAssertionError[39;00m(_error_message()) [38;5;28;01mfrom[39;00m[38;5;250m [39m[38;5;21;01mcause[39;00m
[38;5;160mAssertionError[39m: expected call not found.
Expected: exists('users/username/username_source1_vHEAD.2025-09-24_050730.zip')
Actual: exists('users/username/username_source1_vHEAD.2025-09-24_050729.zip')
======================================================================
FAIL: test_index_source_concepts (core.sources.tests.tests.TasksTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/sources/tests/tests.py"[39m, line [38;5;241m1444[39m, in test_index_source_concepts
[38;5;250m [39mbatch_index_mock[38;5;241m.[39massert_called_once_with(source_concepts_mock, ConceptDocument)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m993[39m, in assert_called_once_with
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39massert_called_with([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m980[39m, in assert_called_with
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mAssertionError[39;00m(_error_message()) [38;5;28;01mfrom[39;00m[38;5;250m [39m[38;5;21;01mcause[39;00m
[38;5;160mAssertionError[39m: expected call not found.
Expected: batch_index(<MagicMock name='concepts' id='140175481340112'>, <class 'core.concepts.documents.ConceptDocument'>)
Actual: batch_index(<MagicMock name='concepts' id='140175481340112'>, <class 'core.concepts.documents.ConceptDocument'>, False)
----------------------------------------------------------------------
Ran 932 tests in 1867.404s
FAILED (failures=3, skipped=7)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_db_1 ...
Removing ocl-oclapi2-rt_es_1 ...
Removing ocl-oclapi2-rt_db_1 ... done
Removing ocl-oclapi2-rt_es_1 ... done
Removing network ocl-oclapi2-rt_default
Removing volume ocl-oclapi2-rt_postgres-data
Removing volume ocl-oclapi2-rt_es-data
Removing volume ocl-oclapi2-rt_redis-data
Removing volume ocl-oclapi2-rt_upload-data
test_public_sources ... ok
test_reset_password_url ... ok
test_resource_type ... ok
test_send_reset_password_email ... ok
test_send_verification_email ... ok
test_set_token ... ok
test_status ... ok
test_update_password ... ok
test_user ... ok
test_user_active_inactive_should_affect_children ... ok
test_verify ... /usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1595: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2025-09-24 05:10:43.104653) while time zone support is active.
warnings.warn(
ok
core.value_sets.tests.ValueSetTest
test_can_create_empty ... ok
test_can_create_with_compose ... ok
test_can_update_empty ... ok
test_create_with_filter_and_concept ... ok
test_create_with_filter_and_system ... ok
test_create_with_filter_and_system_and_no_filter ... ok
test_create_with_is_a_filter_and_system ... ok
test_expand ... ok
test_public_can_find_globally ... ok
test_public_can_find_globally_without_compose ... ok
test_public_can_view ... ok
test_unable_to_represent_as_fhir ... Failed to represent "/invalid/uri" as ValueSet
Traceback (most recent call last):
File "/code/core/value_sets/serializers.py", line 260, in to_representation
IdentifierSerializer.include_ocl_identifier(instance.uri, RESOURCE_TYPE, rep)
File "/code/core/common/serializers.py", line 141, in include_ocl_identifier
return IdentifierSerializer.parse_identifier(ident)
File "/code/core/common/serializers.py", line 88, in parse_identifier
raise ValidationError(
rest_framework.exceptions.ValidationError: [ErrorDetail(string='Identifier must be in a format: /{owner_type}/{owner_id}/{resourceType}/{resource_id}/, given: /invalid/uri', code='invalid')]
ok
test_update_with_compose ... ok
test_validate_code ... ok
test_validate_code_globally ... ok
test_validate_code_globally_negative ... ok
test_validate_code_globally_via_post ... ok
test_validate_code_negative ... ok
core.tasks.tests.UtilsTest
test_wait_until_task_complete_finished ... ok
test_wait_until_task_complete_pending ... ok
======================================================================
FAIL: test_post_202 (core.integration_tests.tests_sources.SourceConceptsIndexViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m1731[39m, in test_post_202
[38;5;250m [39mindex_source_concepts_task_mock[38;5;241m.[39mapply_async[38;5;241m.[39massert_called_once_with(([38;5;241m100[39m,), queue[38;5;241m=[39m[38;5;124m'[39m[38;5;124mindexing[39m[38;5;124m'[39m, task_id[38;5;241m=[39mANY)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m993[39m, in assert_called_once_with
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39massert_called_with([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m980[39m, in assert_called_with
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mAssertionError[39;00m(_error_message()) [38;5;28;01mfrom[39;00m[38;5;250m [39m[38;5;21;01mcause[39;00m
[38;5;160mAssertionError[39m: expected call not found.
Expected: apply_async((100,), queue='indexing', task_id=<ANY>)
Actual: apply_async((100, False), queue='indexing', task_id='ae9a2097-297f-4237-a07c-9dce273df02b-soop~indexing')
======================================================================
FAIL: test_get_204_head (core.integration_tests.tests_sources.SourceVersionExportViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m980[39m, in test_get_204_head
[38;5;250m [39ms3_exists_mock[38;5;241m.[39massert_called_once_with([38;5;124mf[39m[38;5;124m"[39m[38;5;124musers/username/username_source1_vHEAD.[39m[38;5;132;01m{[39;00m[38;5;28mself[39m[38;5;241m.[39mv1_updated_at[38;5;132;01m}[39;00m[38;5;124m.zip[39m[38;5;124m"[39m)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m993[39m, in assert_called_once_with
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39massert_called_with([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m980[39m, in assert_called_with
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mAssertionError[39;00m(_error_message()) [38;5;28;01mfrom[39;00m[38;5;250m [39m[38;5;21;01mcause[39;00m
[38;5;160mAssertionError[39m: expected call not found.
Expected: exists('users/username/username_source1_vHEAD.2025-09-24_050730.zip')
Actual: exists('users/username/username_source1_vHEAD.2025-09-24_050729.zip')
======================================================================
FAIL: test_index_source_concepts (core.sources.tests.tests.TasksTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m1452[39m, in patched
[38;5;250m [39m[38;5;28;01mreturn[39;00m func([38;5;241m*[39mnewargs, [38;5;241m*[39m[38;5;241m*[39mnewkeywargs)
File [38;5;28m"/code/core/sources/tests/tests.py"[39m, line [38;5;241m1444[39m, in test_index_source_concepts
[38;5;250m [39mbatch_index_mock[38;5;241m.[39massert_called_once_with(source_concepts_mock, ConceptDocument)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m993[39m, in assert_called_once_with
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39massert_called_with([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m980[39m, in assert_called_with
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mAssertionError[39;00m(_error_message()) [38;5;28;01mfrom[39;00m[38;5;250m [39m[38;5;21;01mcause[39;00m
[38;5;160mAssertionError[39m: expected call not found.
Expected: batch_index(<MagicMock name='concepts' id='140175481340112'>, <class 'core.concepts.documents.ConceptDocument'>)
Actual: batch_index(<MagicMock name='concepts' id='140175481340112'>, <class 'core.concepts.documents.ConceptDocument'>, False)
----------------------------------------------------------------------
Ran 932 tests in 1867.404s
FAILED (failures=3, skipped=7)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_db_1 ...
Removing ocl-oclapi2-rt_es_1 ...
Removing ocl-oclapi2-rt_db_1 ... done
Removing ocl-oclapi2-rt_es_1 ... done
Removing network ocl-oclapi2-rt_default
Removing volume ocl-oclapi2-rt_postgres-data
Removing volume ocl-oclapi2-rt_es-data
Removing volume ocl-oclapi2-rt_redis-data
Removing volume ocl-oclapi2-rt_upload-data