OCL API 2
Build: #2301 failed
Job: Run tests failed
Job result summary
- Completed
- Duration
- 34 minutes
- Agent
- xiao.openmrs.org (2)
- Revision
-
a536e1c8f60b451b57ae1bd17b3c32438de87c0a
- Failing since
- #2300 (Changes by Sunny Aggarwal. – )
- Fixed in
- #2305 (Manual run from the stage: Release 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-06 02:44:09.496696) 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
======================================================================
ERROR: test_facets (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_concepts.py"[39m, line [38;5;241m1965[39m, in test_facets
[38;5;250m [39mclass_a_facet [38;5;241m=[39m [x [38;5;28;01mfor[39;00m x [38;5;129;01min[39;00m response[38;5;241m.[39mdata[[38;5;124m'[39m[38;5;124mfacets[39m[38;5;124m'[39m][[38;5;124m'[39m[38;5;124mfields[39m[38;5;124m'[39m][[38;5;124m'[39m[38;5;124mconceptClass[39m[38;5;124m'[39m] [38;5;28;01mif[39;00m x[[38;5;241m0[39m] [38;5;241m==[39m [38;5;124m'[39m[38;5;124mclassA[39m[38;5;124m'[39m][[38;5;241m0[39m]
[38;5;160mIndexError[39m: list index out of range
======================================================================
ERROR: test_facets_with_latest_released_repo_search (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_concepts.py"[39m, line [38;5;241m1987[39m, in test_facets_with_latest_released_repo_search
[38;5;250m [39mclass_b_facet [38;5;241m=[39m [x [38;5;28;01mfor[39;00m x [38;5;129;01min[39;00m response[38;5;241m.[39mdata[[38;5;124m'[39m[38;5;124mfacets[39m[38;5;124m'[39m][[38;5;124m'[39m[38;5;124mfields[39m[38;5;124m'[39m][[38;5;124m'[39m[38;5;124mconceptClass[39m[38;5;124m'[39m] [38;5;28;01mif[39;00m x[[38;5;241m0[39m] [38;5;241m==[39m [38;5;124m'[39m[38;5;124mclassB[39m[38;5;124m'[39m][[38;5;241m0[39m]
[38;5;160mIndexError[39m: list index out of range
======================================================================
FAIL: test_search (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_concepts.py"[39m, line [38;5;241m1751[39m, in test_search
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual([38;5;28mlen[39m(response[38;5;241m.[39mdata), [38;5;241m1[39m)
[38;5;160mAssertionError[39m: 0 != 1
======================================================================
FAIL: test_search_with_latest_released_repo_search (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_concepts.py"[39m, line [38;5;241m1861[39m, in test_search_with_latest_released_repo_search
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual([38;5;28mlen[39m(response[38;5;241m.[39mdata), [38;5;241m1[39m)
[38;5;160mAssertionError[39m: 0 != 1
======================================================================
FAIL: test_get_200_verbose (core.integration_tests.tests_sources.SourceSummaryViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m1394[39m, in test_get_200_verbose
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'act[36 chars]s': [], 'datatype': [], 'locale': [], 'name_type': []} != {'act[36 chars]s': [('1757126437.4719975', 2)], 'datatype': [[53 chars]: []}
{'active': 2,
- 'concept_class': [],
- 'datatype': [],
+ 'concept_class': [('1757126437.4719975', 2)],
+ 'datatype': [('1757126437.4719975', 2)],
'locale': [],
'name_type': [],
'retired': 0}
----------------------------------------------------------------------
Ran 931 tests in 1891.819s
FAILED (failures=3, errors=2)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_es_1 ...
Removing ocl-oclapi2-rt_db_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-06 02:44:09.496696) 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
======================================================================
ERROR: test_facets (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_concepts.py"[39m, line [38;5;241m1965[39m, in test_facets
[38;5;250m [39mclass_a_facet [38;5;241m=[39m [x [38;5;28;01mfor[39;00m x [38;5;129;01min[39;00m response[38;5;241m.[39mdata[[38;5;124m'[39m[38;5;124mfacets[39m[38;5;124m'[39m][[38;5;124m'[39m[38;5;124mfields[39m[38;5;124m'[39m][[38;5;124m'[39m[38;5;124mconceptClass[39m[38;5;124m'[39m] [38;5;28;01mif[39;00m x[[38;5;241m0[39m] [38;5;241m==[39m [38;5;124m'[39m[38;5;124mclassA[39m[38;5;124m'[39m][[38;5;241m0[39m]
[38;5;160mIndexError[39m: list index out of range
======================================================================
ERROR: test_facets_with_latest_released_repo_search (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_concepts.py"[39m, line [38;5;241m1987[39m, in test_facets_with_latest_released_repo_search
[38;5;250m [39mclass_b_facet [38;5;241m=[39m [x [38;5;28;01mfor[39;00m x [38;5;129;01min[39;00m response[38;5;241m.[39mdata[[38;5;124m'[39m[38;5;124mfacets[39m[38;5;124m'[39m][[38;5;124m'[39m[38;5;124mfields[39m[38;5;124m'[39m][[38;5;124m'[39m[38;5;124mconceptClass[39m[38;5;124m'[39m] [38;5;28;01mif[39;00m x[[38;5;241m0[39m] [38;5;241m==[39m [38;5;124m'[39m[38;5;124mclassB[39m[38;5;124m'[39m][[38;5;241m0[39m]
[38;5;160mIndexError[39m: list index out of range
======================================================================
FAIL: test_search (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_concepts.py"[39m, line [38;5;241m1751[39m, in test_search
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual([38;5;28mlen[39m(response[38;5;241m.[39mdata), [38;5;241m1[39m)
[38;5;160mAssertionError[39m: 0 != 1
======================================================================
FAIL: test_search_with_latest_released_repo_search (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_concepts.py"[39m, line [38;5;241m1861[39m, in test_search_with_latest_released_repo_search
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual([38;5;28mlen[39m(response[38;5;241m.[39mdata), [38;5;241m1[39m)
[38;5;160mAssertionError[39m: 0 != 1
======================================================================
FAIL: test_get_200_verbose (core.integration_tests.tests_sources.SourceSummaryViewTest)
----------------------------------------------------------------------
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/integration_tests/tests_sources.py"[39m, line [38;5;241m1394[39m, in test_get_200_verbose
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'act[36 chars]s': [], 'datatype': [], 'locale': [], 'name_type': []} != {'act[36 chars]s': [('1757126437.4719975', 2)], 'datatype': [[53 chars]: []}
{'active': 2,
- 'concept_class': [],
- 'datatype': [],
+ 'concept_class': [('1757126437.4719975', 2)],
+ 'datatype': [('1757126437.4719975', 2)],
'locale': [],
'name_type': [],
'retired': 0}
----------------------------------------------------------------------
Ran 931 tests in 1891.819s
FAILED (failures=3, errors=2)
Preserving test database for alias 'default' ('test_postgres')...
1
Stopping ocl-oclapi2-rt_es_1 ...
Stopping ocl-oclapi2-rt_db_1 ...
Stopping ocl-oclapi2-rt_db_1 ... done
Stopping ocl-oclapi2-rt_es_1 ... done
Removing ocl-oclapi2-rt_es_1 ...
Removing ocl-oclapi2-rt_db_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