OCL API 2

Build: #2101 failed

Job: Run tests failed

Stages & jobs

  1. Build

  2. Test

  3. Deploy for testing

    Requires a user to start manually
  4. Release

    Requires a user to start manually

Job result summary

Completed
Duration
7 minutes
Agent
xindi.openmrs.org
Revision
c1ee7efb782ae63a4d4a9d5e5be4b5eccb7a598a c1ee7efb782ae63a4d4a9d5e5be4b5eccb7a598a
Fixed in
#2103 (Manual run from the stage: Release by Sunny Aggarwal.)
No failed test found. A possible compilation error occurred.

Error summary

The build generated some errors. See the full build log for more details.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/code/core/value_sets/tests.py", line 20, in setUp
    Source.persist_new_version(self.org_source_v1, self.org_source.created_by)
  File "/code/core/common/models.py", line 717, in persist_new_version
    seed_children_to_new_version(obj.resource_type.lower(), obj.id, not is_test_mode, sync)
  File "/usr/local/lib/python3.10/site-packages/celery/local.py", line 182, in __call__
    return self._get_current_object()(*a, **kw)
  File "/usr/local/lib/python3.10/site-packages/celery/app/task.py", line 411, in __call__
    return self.run(*args, **kwargs)
  File "/code/core/common/tasks.py", line 389, in seed_children_to_new_version
    instance.index_children(sync=False, user=instance.created_by)
  File "/code/core/sources/models.py", line 338, in index_children
    self.index_children_async(user)
  File "/code/core/sources/models.py", line 343, in index_children_async
    self.index_concepts_async(user)
  File "/code/core/sources/models.py", line 356, in index_concepts_async
    index_source_concepts.apply_async((self.id,), queue='indexing', persist_args=True, task_id=task.id)
  File "/code/core/tasks/models.py", line 327, in apply_async
    response = super().apply_async(args, kwargs, **options)
  File "/usr/local/lib/python3.10/site-packages/celery_once/tasks.py", line 103, in apply_async
    self.once_backend.raise_or_lock(key, timeout=once_timeout)
  File "/usr/local/lib/python3.10/site-packages/celery_once/backends/redis.py", line 108, in raise_or_lock
    ).acquire()
  File "/usr/local/lib/python3.10/site-packages/redis/lock.py", line 207, in acquire
    if self.do_acquire(token):
  File "/usr/local/lib/python3.10/site-packages/redis/lock.py", line 223, in do_acquire
    if self.redis.set(self.name, token, nx=True, px=timeout):
  File "/usr/local/lib/python3.10/site-packages/redis/commands/core.py", line 2328, in set
    return self.execute_command("SET", *pieces, **options)
  File "/usr/local/lib/python3.10/site-packages/redis/client.py", line 1266, in execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 1461, in get_connection
    connection.connect()
  File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 713, in connect
    raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error -2 connecting to redis:6379. Name does not resolve.

======================================================================
ERROR: test_validate_code_negative (core.value_sets.tests.ValueSetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 707, in connect
    sock = self.retry.call_with_retry(
  File "/usr/local/lib/python3.10/site-packages/redis/retry.py", line 46, in call_with_retry
    return do()
  File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 708, in <lambda>
    lambda: self._connect(), lambda error: self.disconnect(error)
  File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 974, in _connect
    for res in socket.getaddrinfo(
  File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name does not resolve

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/code/core/value_sets/tests.py", line 20, in setUp
    Source.persist_new_version(self.org_source_v1, self.org_source.created_by)
  File "/code/core/common/models.py", line 717, in persist_new_version
    seed_children_to_new_version(obj.resource_type.lower(), obj.id, not is_test_mode, sync)
  File "/usr/local/lib/python3.10/site-packages/celery/local.py", line 182, in __call__
    return self._get_current_object()(*a, **kw)
  File "/usr/local/lib/python3.10/site-packages/celery/app/task.py", line 411, in __call__
    return self.run(*args, **kwargs)
  File "/code/core/common/tasks.py", line 389, in seed_children_to_new_version
    instance.index_children(sync=False, user=instance.created_by)
  File "/code/core/sources/models.py", line 338, in index_children
    self.index_children_async(user)
  File "/code/core/sources/models.py", line 343, in index_children_async
    self.index_concepts_async(user)
  File "/code/core/sources/models.py", line 356, in index_concepts_async
    index_source_concepts.apply_async((self.id,), queue='indexing', persist_args=True, task_id=task.id)
  File "/code/core/tasks/models.py", line 327, in apply_async
    response = super().apply_async(args, kwargs, **options)
  File "/usr/local/lib/python3.10/site-packages/celery_once/tasks.py", line 103, in apply_async
    self.once_backend.raise_or_lock(key, timeout=once_timeout)
  File "/usr/local/lib/python3.10/site-packages/celery_once/backends/redis.py", line 108, in raise_or_lock
    ).acquire()
  File "/usr/local/lib/python3.10/site-packages/redis/lock.py", line 207, in acquire
    if self.do_acquire(token):
  File "/usr/local/lib/python3.10/site-packages/redis/lock.py", line 223, in do_acquire
    if self.redis.set(self.name, token, nx=True, px=timeout):
  File "/usr/local/lib/python3.10/site-packages/redis/commands/core.py", line 2328, in set
    return self.execute_command("SET", *pieces, **options)
  File "/usr/local/lib/python3.10/site-packages/redis/client.py", line 1266, in execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 1461, in get_connection
    connection.connect()
  File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 713, in connect
    raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error -2 connecting to redis:6379. Name does not resolve.

----------------------------------------------------------------------
Ran 881 tests in 370.215s

FAILED (errors=66)
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_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