OCL API 2
Build: #1850 failed
Job: Run tests failed
Job result summary
- Completed
- Duration
- 13 minutes
- Agent
- xindi.openmrs.org
- Revision
-
16026d6115b8064d80d731b38525d91d6da637c4
16026d6115b8064d80d731b38525d91d6da637c4 - Fixed in
- #1852 (Manual run from the stage: Release by Sunny Aggarwal.)
Error summary
The build generated some errors. See the full build log for more details.
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py"[39m, line [38;5;241m218[39m, in __get__
[38;5;250m [39mrel_obj [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mfield[38;5;241m.[39mget_cached_value(instance)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/fields/mixins.py"[39m, line [38;5;241m15[39m, in get_cached_value
[38;5;250m [39m[38;5;28;01mreturn[39;00m instance[38;5;241m.[39m_state[38;5;241m.[39mfields_cache[cache_name]
[38;5;160mKeyError[39m: 'created_by'
[38;5;26mDuring handling of the above exception, another exception occurred:[39m
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/users/tests/tests.py"[39m, line [38;5;241m116[39m, in test_user_active_inactive_should_affect_children
[38;5;250m [39muser[38;5;241m.[39msave()
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/contrib/auth/base_user.py"[39m, line [38;5;241m76[39m, in save
[38;5;250m [39m[38;5;28msuper[39m()[38;5;241m.[39msave([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/base.py"[39m, line [38;5;241m814[39m, in save
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39msave_base(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/base.py"[39m, line [38;5;241m892[39m, in save_base
[38;5;250m [39mpost_save[38;5;241m.[39msend(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/dispatch/dispatcher.py"[39m, line [38;5;241m176[39m, in send
[38;5;250m [39m[38;5;28;01mreturn[39;00m [
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/dispatch/dispatcher.py"[39m, line [38;5;241m177[39m, in <listcomp>
[38;5;250m [39m(receiver, receiver(signal[38;5;241m=[39m[38;5;28mself[39m, sender[38;5;241m=[39msender, [38;5;241m*[39m[38;5;241m*[39mnamed))
File [38;5;28m"/code/core/common/signals.py"[39m, line [38;5;241m28[39m, in propagate_owner_status
[38;5;250m [39minstance[38;5;241m.[39mbatch_index(instance[38;5;241m.[39msource_set, SourceDocument)
File [38;5;28m"/code/core/common/models.py"[39m, line [38;5;241m182[39m, in batch_index
[38;5;250m [39mdocument()[38;5;241m.[39mupdate(batch, parallel[38;5;241m=[39m[38;5;28;01mTrue[39;00m)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m238[39m, in update
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39m_bulk(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m213[39m, in _bulk
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39mparallel_bulk([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m180[39m, in parallel_bulk
[38;5;250m [39mdeque(bulk_actions, maxlen[38;5;241m=[39m[38;5;241m0[39m)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/elasticsearch/helpers/actions.py"[39m, line [38;5;241m472[39m, in parallel_bulk
[38;5;250m [39m[38;5;28;01mfor[39;00m result [38;5;129;01min[39;00m pool[38;5;241m.[39mimap(
File [38;5;28m"/usr/local/lib/python3.10/multiprocessing/pool.py"[39m, line [38;5;241m870[39m, in next
[38;5;250m [39m[38;5;28;01mraise[39;00m value
File [38;5;28m"/usr/local/lib/python3.10/multiprocessing/pool.py"[39m, line [38;5;241m125[39m, in worker
[38;5;250m [39mresult [38;5;241m=[39m ([38;5;28;01mTrue[39;00m, func([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwds))
File [38;5;28m"/usr/local/lib/python3.10/multiprocessing/pool.py"[39m, line [38;5;241m144[39m, in _helper_reraises_exception
[38;5;250m [39m[38;5;28;01mraise[39;00m ex
File [38;5;28m"/usr/local/lib/python3.10/multiprocessing/pool.py"[39m, line [38;5;241m388[39m, in _guarded_task_generation
[38;5;250m [39m[38;5;28;01mfor[39;00m i, x [38;5;129;01min[39;00m [38;5;28menumerate[39m(iterable):
File [38;5;28m"/usr/local/lib/python3.10/site-packages/elasticsearch/helpers/actions.py"[39m, line [38;5;241m155[39m, in _chunk_actions
[38;5;250m [39m[38;5;28;01mfor[39;00m action, data [38;5;129;01min[39;00m actions:
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m207[39m, in _get_actions
[38;5;250m [39m[38;5;28;01myield[39;00m [38;5;28mself[39m[38;5;241m.[39m_prepare_action(object_instance, action)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m200[39m, in _prepare_action
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mprepare(object_instance) [38;5;28;01mif[39;00m action [38;5;241m!=[39m [38;5;124m'[39m[38;5;124mdelete[39m[38;5;124m'[39m [38;5;28;01melse[39;00m [38;5;28;01mNone[39;00m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m141[39m, in prepare
[38;5;250m [39mdata [38;5;241m=[39m {
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m142[39m, in <dictcomp>
[38;5;250m [39mname: prep_func(instance)
File [38;5;28m"/code/core/sources/documents.py"[39m, line [38;5;241m143[39m, in prepare_created_by
[38;5;250m [39m[38;5;28;01mreturn[39;00m instance[38;5;241m.[39mcreated_by[38;5;241m.[39musername
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py"[39m, line [38;5;241m236[39m, in __get__
[38;5;250m [39mrel_obj [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mget_object(instance)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py"[39m, line [38;5;241m199[39m, in get_object
[38;5;250m [39m[38;5;28;01mreturn[39;00m qs[38;5;241m.[39mget([38;5;28mself[39m[38;5;241m.[39mfield[38;5;241m.[39mget_reverse_related_filter(instance))
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/query.py"[39m, line [38;5;241m637[39m, in get
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;28mself[39m[38;5;241m.[39mmodel[38;5;241m.[39mDoesNotExist(
[38;5;160mcore.users.models.UserProfile.DoesNotExist[39m: UserProfile matching query does not exist.
======================================================================
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;241m1238[39m, in test_get_200_verbose
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'act[106 chars])], 'locale': [], 'name_type': [], 'contributors': []} != {'act[106 chars])], 'name_type': [], 'locale': [], 'contributo[18 chars] 2)]}
{'active': 2,
'concept_class': [('1700213508.4579756', 2)],
- 'contributors': [],
+ 'contributors': [('ocladmin', 2)],
'datatype': [('1700213508.4579756', 2)],
'locale': [],
'name_type': [],
'retired': 0}
======================================================================
FAIL: test_index_children (core.sources.tests.tests.SourceTest)
----------------------------------------------------------------------
[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;241m772[39m, in test_index_children
[38;5;250m [39mconcept_document_update[38;5;241m.[39massert_called_once_with(ANY, parallel[38;5;241m=[39m[38;5;28;01mTrue[39;00m)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m992[39m, in assert_called_once_with
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mAssertionError[39;00m(msg)
[38;5;160mAssertionError[39m: Expected 'update' to be called once. Called 4 times.
Calls: [call(<Concept: concept1324>, parallel=True),
call(<Concept: concept1324>, parallel=True),
call(<Concept: concept1323>, parallel=True),
call(<Concept: concept1323>, parallel=True)].
----------------------------------------------------------------------
Ran 800 tests in 736.735s
FAILED (failures=2, errors=3)
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_es_1 ... done
Removing ocl-oclapi2-rt_db_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
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py"[39m, line [38;5;241m218[39m, in __get__
[38;5;250m [39mrel_obj [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mfield[38;5;241m.[39mget_cached_value(instance)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/fields/mixins.py"[39m, line [38;5;241m15[39m, in get_cached_value
[38;5;250m [39m[38;5;28;01mreturn[39;00m instance[38;5;241m.[39m_state[38;5;241m.[39mfields_cache[cache_name]
[38;5;160mKeyError[39m: 'created_by'
[38;5;26mDuring handling of the above exception, another exception occurred:[39m
[38;5;26mTraceback (most recent call last):[39m
File [38;5;28m"/code/core/users/tests/tests.py"[39m, line [38;5;241m116[39m, in test_user_active_inactive_should_affect_children
[38;5;250m [39muser[38;5;241m.[39msave()
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/contrib/auth/base_user.py"[39m, line [38;5;241m76[39m, in save
[38;5;250m [39m[38;5;28msuper[39m()[38;5;241m.[39msave([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/base.py"[39m, line [38;5;241m814[39m, in save
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39msave_base(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/base.py"[39m, line [38;5;241m892[39m, in save_base
[38;5;250m [39mpost_save[38;5;241m.[39msend(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/dispatch/dispatcher.py"[39m, line [38;5;241m176[39m, in send
[38;5;250m [39m[38;5;28;01mreturn[39;00m [
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/dispatch/dispatcher.py"[39m, line [38;5;241m177[39m, in <listcomp>
[38;5;250m [39m(receiver, receiver(signal[38;5;241m=[39m[38;5;28mself[39m, sender[38;5;241m=[39msender, [38;5;241m*[39m[38;5;241m*[39mnamed))
File [38;5;28m"/code/core/common/signals.py"[39m, line [38;5;241m28[39m, in propagate_owner_status
[38;5;250m [39minstance[38;5;241m.[39mbatch_index(instance[38;5;241m.[39msource_set, SourceDocument)
File [38;5;28m"/code/core/common/models.py"[39m, line [38;5;241m182[39m, in batch_index
[38;5;250m [39mdocument()[38;5;241m.[39mupdate(batch, parallel[38;5;241m=[39m[38;5;28;01mTrue[39;00m)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m238[39m, in update
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39m_bulk(
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m213[39m, in _bulk
[38;5;250m [39m[38;5;28;01mreturn[39;00m [38;5;28mself[39m[38;5;241m.[39mparallel_bulk([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwargs)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m180[39m, in parallel_bulk
[38;5;250m [39mdeque(bulk_actions, maxlen[38;5;241m=[39m[38;5;241m0[39m)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/elasticsearch/helpers/actions.py"[39m, line [38;5;241m472[39m, in parallel_bulk
[38;5;250m [39m[38;5;28;01mfor[39;00m result [38;5;129;01min[39;00m pool[38;5;241m.[39mimap(
File [38;5;28m"/usr/local/lib/python3.10/multiprocessing/pool.py"[39m, line [38;5;241m870[39m, in next
[38;5;250m [39m[38;5;28;01mraise[39;00m value
File [38;5;28m"/usr/local/lib/python3.10/multiprocessing/pool.py"[39m, line [38;5;241m125[39m, in worker
[38;5;250m [39mresult [38;5;241m=[39m ([38;5;28;01mTrue[39;00m, func([38;5;241m*[39margs, [38;5;241m*[39m[38;5;241m*[39mkwds))
File [38;5;28m"/usr/local/lib/python3.10/multiprocessing/pool.py"[39m, line [38;5;241m144[39m, in _helper_reraises_exception
[38;5;250m [39m[38;5;28;01mraise[39;00m ex
File [38;5;28m"/usr/local/lib/python3.10/multiprocessing/pool.py"[39m, line [38;5;241m388[39m, in _guarded_task_generation
[38;5;250m [39m[38;5;28;01mfor[39;00m i, x [38;5;129;01min[39;00m [38;5;28menumerate[39m(iterable):
File [38;5;28m"/usr/local/lib/python3.10/site-packages/elasticsearch/helpers/actions.py"[39m, line [38;5;241m155[39m, in _chunk_actions
[38;5;250m [39m[38;5;28;01mfor[39;00m action, data [38;5;129;01min[39;00m actions:
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m207[39m, in _get_actions
[38;5;250m [39m[38;5;28;01myield[39;00m [38;5;28mself[39m[38;5;241m.[39m_prepare_action(object_instance, action)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m200[39m, in _prepare_action
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39mprepare(object_instance) [38;5;28;01mif[39;00m action [38;5;241m!=[39m [38;5;124m'[39m[38;5;124mdelete[39m[38;5;124m'[39m [38;5;28;01melse[39;00m [38;5;28;01mNone[39;00m
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m141[39m, in prepare
[38;5;250m [39mdata [38;5;241m=[39m {
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django_elasticsearch_dsl/documents.py"[39m, line [38;5;241m142[39m, in <dictcomp>
[38;5;250m [39mname: prep_func(instance)
File [38;5;28m"/code/core/sources/documents.py"[39m, line [38;5;241m143[39m, in prepare_created_by
[38;5;250m [39m[38;5;28;01mreturn[39;00m instance[38;5;241m.[39mcreated_by[38;5;241m.[39musername
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py"[39m, line [38;5;241m236[39m, in __get__
[38;5;250m [39mrel_obj [38;5;241m=[39m [38;5;28mself[39m[38;5;241m.[39mget_object(instance)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py"[39m, line [38;5;241m199[39m, in get_object
[38;5;250m [39m[38;5;28;01mreturn[39;00m qs[38;5;241m.[39mget([38;5;28mself[39m[38;5;241m.[39mfield[38;5;241m.[39mget_reverse_related_filter(instance))
File [38;5;28m"/usr/local/lib/python3.10/site-packages/django/db/models/query.py"[39m, line [38;5;241m637[39m, in get
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;28mself[39m[38;5;241m.[39mmodel[38;5;241m.[39mDoesNotExist(
[38;5;160mcore.users.models.UserProfile.DoesNotExist[39m: UserProfile matching query does not exist.
======================================================================
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;241m1238[39m, in test_get_200_verbose
[38;5;250m [39m[38;5;28mself[39m[38;5;241m.[39massertEqual(
[38;5;160mAssertionError[39m: {'act[106 chars])], 'locale': [], 'name_type': [], 'contributors': []} != {'act[106 chars])], 'name_type': [], 'locale': [], 'contributo[18 chars] 2)]}
{'active': 2,
'concept_class': [('1700213508.4579756', 2)],
- 'contributors': [],
+ 'contributors': [('ocladmin', 2)],
'datatype': [('1700213508.4579756', 2)],
'locale': [],
'name_type': [],
'retired': 0}
======================================================================
FAIL: test_index_children (core.sources.tests.tests.SourceTest)
----------------------------------------------------------------------
[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;241m772[39m, in test_index_children
[38;5;250m [39mconcept_document_update[38;5;241m.[39massert_called_once_with(ANY, parallel[38;5;241m=[39m[38;5;28;01mTrue[39;00m)
File [38;5;28m"/usr/local/lib/python3.10/site-packages/mock/mock.py"[39m, line [38;5;241m992[39m, in assert_called_once_with
[38;5;250m [39m[38;5;28;01mraise[39;00m [38;5;167;01mAssertionError[39;00m(msg)
[38;5;160mAssertionError[39m: Expected 'update' to be called once. Called 4 times.
Calls: [call(<Concept: concept1324>, parallel=True),
call(<Concept: concept1324>, parallel=True),
call(<Concept: concept1323>, parallel=True),
call(<Concept: concept1323>, parallel=True)].
----------------------------------------------------------------------
Ran 800 tests in 736.735s
FAILED (failures=2, errors=3)
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_es_1 ... done
Removing ocl-oclapi2-rt_db_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