OCL API 2

Build: #1730 failed Manual run by Rafal Korytkowski

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
2 seconds
Duration
11 minutes
Labels
None
Revisions
OCL API 2
a28986aae87ef39d4b6569b134e7d4ab45b8f57e a28986aae87ef39d4b6569b134e7d4ab45b8f57e
OCL CI
3a5aa873674ab3c0ed904029536d426abb31bdd0 3a5aa873674ab3c0ed904029536d426abb31bdd0
Failing since
#1727 (Changes by Rafal Korytkowski)
Fixed in
#1731 (Manual run from the stage: Deploy for testing by Rafal Korytkowski)
No failed test found. A possible compilation error occurred.

Responsible

Code commits

OCL API 2
Author Commit Message Commit date
Rafal Korytkowski Rafal Korytkowski a28986aae87ef39d4b6569b134e7d4ab45b8f57e a28986aae87ef39d4b6569b134e7d4ab45b8f57e OpenConceptLab/ocl_issues#927 Redis clustering, fixing build

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/unittest/mock.py", line 1370, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/common/tests.py", line 1008, in test_bulk_import_parallel_inline_invalid_json
    result = bulk_import_parallel_inline(to_import=content, username='ocladmin', update_if_exists=False)  # pylint: disable=no-value-for-parameter
  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_once/tasks.py", line 75, in __call__
    return super(QueueOnce, self).__call__(*args, **kwargs)
  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 243, in bulk_import_parallel_inline
    importer = BulkImportParallelRunner(
  File "/code/core/importers/models.py", line 844, in __init__
    self.redis_service = RedisService()
  File "/code/core/common/services.py", line 218, in __init__
    self.conn = get_redis_connection('default')
  File "/usr/local/lib/python3.10/site-packages/django_redis/__init__.py", line 15, in get_redis_connection
    raise NotImplementedError("This backend does not support this feature")
NotImplementedError: This backend does not support this feature

======================================================================
ERROR: test_bulk_import_parallel_inline_invalid_without_resource_type (core.common.tests.TaskTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/unittest/mock.py", line 1370, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/common/tests.py", line 1020, in test_bulk_import_parallel_inline_invalid_without_resource_type
    result = bulk_import_parallel_inline(to_import=content, username='ocladmin', update_if_exists=False)  # pylint: disable=no-value-for-parameter
  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_once/tasks.py", line 75, in __call__
    return super(QueueOnce, self).__call__(*args, **kwargs)
  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 243, in bulk_import_parallel_inline
    importer = BulkImportParallelRunner(
  File "/code/core/importers/models.py", line 844, in __init__
    self.redis_service = RedisService()
  File "/code/core/common/services.py", line 218, in __init__
    self.conn = get_redis_connection('default')
  File "/usr/local/lib/python3.10/site-packages/django_redis/__init__.py", line 15, in get_redis_connection
    raise NotImplementedError("This backend does not support this feature")
NotImplementedError: This backend does not support this feature

======================================================================
ERROR: test_bulk_import_parallel_inline_valid_json (core.common.tests.TaskTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/unittest/mock.py", line 1370, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/common/tests.py", line 1032, in test_bulk_import_parallel_inline_valid_json
    result = bulk_import_parallel_inline(to_import=content, username='ocladmin', update_if_exists=False)  # pylint: disable=no-value-for-parameter
  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_once/tasks.py", line 75, in __call__
    return super(QueueOnce, self).__call__(*args, **kwargs)
  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 243, in bulk_import_parallel_inline
    importer = BulkImportParallelRunner(
  File "/code/core/importers/models.py", line 844, in __init__
    self.redis_service = RedisService()
  File "/code/core/common/services.py", line 218, in __init__
    self.conn = get_redis_connection('default')
  File "/usr/local/lib/python3.10/site-packages/django_redis/__init__.py", line 15, in get_redis_connection
    raise NotImplementedError("This backend does not support this feature")
NotImplementedError: This backend does not support this feature

======================================================================
ERROR: test_invalid_json (core.importers.tests.BulkImportParallelRunnerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/importers/tests.py", line 760, in test_invalid_json
    BulkImportParallelRunner(
  File "/code/core/importers/models.py", line 844, in __init__
    self.redis_service = RedisService()
  File "/code/core/common/services.py", line 218, in __init__
    self.conn = get_redis_connection('default')
  File "/usr/local/lib/python3.10/site-packages/django_redis/__init__.py", line 15, in get_redis_connection
    raise NotImplementedError("This backend does not support this feature")
NotImplementedError: This backend does not support this feature

======================================================================
FAIL: test_get_without_task_id (core.importers.tests.BulkImportViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/mock/mock.py", line 1423, in patched
    return func(*newargs, **newkeywargs)
  File "/code/core/importers/tests.py", line 1017, in test_get_without_task_id
    self.assertEqual(response.status_code, 200)
AssertionError: 422 != 200

----------------------------------------------------------------------
Ran 798 tests in 640.983s

FAILED (failures=1, errors=4)
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_api_run_17f3836e4489 ...
Removing ocl-oclapi2-rt_es_1                 ...
Removing ocl-oclapi2-rt_db_1                 ...
Removing ocl-oclapi2-rt_api_run_17f3836e4489 ... done
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