OCL API 2

Build: #2102 failed Changes by Sunny Aggarwal.

Stages & jobs

  1. Build

  2. Test

  3. Deploy for testing

    Requires a user to start manually
  4. Release

    Requires a user to start manually

Build result summary

Details

Completed
Queue duration
< 1 second
Duration
8 minutes
Labels
None
Revisions
OCL API 2
cf8f6b64e3dc5e303bf3f1cc385482816009873c cf8f6b64e3dc5e303bf3f1cc385482816009873c
OCL CI
6544e7ed40ead274ba8b0995efe09bb9edfd8319 6544e7ed40ead274ba8b0995efe09bb9edfd8319
Failing since
#2101 (Changes by Sunny Aggarwal.)
Fixed in
#2103 (Manual run from the stage: Release by Sunny Aggarwal.)
No failed test found. A possible compilation error occurred.

Responsible

Code commits

OCL API 2
Author Commit Message Commit date
Sunny Aggarwal. Sunny Aggarwal. cf8f6b64e3dc5e303bf3f1cc385482816009873c cf8f6b64e3dc5e303bf3f1cc385482816009873c OpenConceptLab/ocl_issues#1884 | fixing tests | mocking indexing job

Error summary for Run tests

The job generated some errors, drill down into the full build log for more details.

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/integration_tests/tests_value_sets.py", line 119, in test_posting_value_sets
    json_response = self.post(url, json_file)
  File "/code/core/integration_tests/tests_value_sets.py", line 30, in post
    return self.client.post(
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 296, in post
    response = super().post(
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 210, in post
    return self.generic('POST', path, data, content_type, **extra)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 234, in generic
    return super().generic(
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 609, in generic
    return self.request(**r)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 286, in request
    return super().request(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 238, in request
    request = super().request(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 891, in request
    self.check_exception(response)
  File "/usr/local/lib/python3.10/site-packages/django/test/client.py", line 738, in check_exception
    raise exc_value
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "/code/core/common/mixins.py", line 363, in post
    return self.create(request, **kwargs)
  File "/code/core/common/mixins.py", line 399, in create
    instance = serializer.save(force_insert=True)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/serializers.py", line 212, in save
    self.instance = self.create(validated_data)
  File "/code/core/code_systems/serializers.py", line 312, in create
    errors = Source.persist_new_version(source, user, sync=True)
  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 416.482s

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