OCL API 2

Build: #1694 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
12 minutes
Labels
None
Revisions
OCL API 2
a897d22d6d5504d060c48feff087f5f23bf9c3dc a897d22d6d5504d060c48feff087f5f23bf9c3dc
OCL CI
3a5aa873674ab3c0ed904029536d426abb31bdd0 3a5aa873674ab3c0ed904029536d426abb31bdd0
Failing since
#1689 (Changes by Sunny Aggarwal.)
Fixed in
#1698 (Changes 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. a897d22d6d5504d060c48feff087f5f23bf9c3dc a897d22d6d5504d060c48feff087f5f23bf9c3dc OpenConceptLab/ocl_issues#1583 | fixing tests

Error summary for Run tests

The job generated some errors, drill down into 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 (2023-07-08 11:14:03.055689) 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_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 ... Traceback (most recent call last):
  File "/code/core/value_sets/serializers.py", line 249, in to_representation
    IdentifierSerializer.include_ocl_identifier(instance.uri, RESOURCE_TYPE, rep)
  File "/code/core/common/serializers.py", line 138, in include_ocl_identifier
    return IdentifierSerializer.parse_identifier(ident)
  File "/code/core/common/serializers.py", line 85, 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')]
Failed to represent "/invalid/uri" as ValueSet
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_search (core.integration_tests.tests_concepts.ConceptListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_concepts.py", line 1648, in test_search
    response = self.client.get('/concepts/?conceptClass=classA')
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 289, in get
    response = super().get(path, data=data, **extra)
  File "/usr/local/lib/python3.10/site-packages/rest_framework/test.py", line 206, in get
    return self.generic('GET', path, **r)
  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/concepts/views.py", line 199, in get
    return self.list(request, *args, **kwargs)
  File "/code/core/common/mixins.py", line 151, in list
    self.object_list = self.filter_queryset()
  File "/code/core/common/views.py", line 156, in filter_queryset
    queryset, self._scores, self._max_score, self._highlights = self.get_search_results_qs()
  File "/code/core/common/views.py", line 747, in get_search_results_qs
    return self.__get_queryset_from_search_results(self.__search_results)
  File "/code/core/common/views.py", line 666, in __search_results
    wildcard_search_criterion, wildcard_search_fields = self.get_wildcard_search_criterion()
TypeError: cannot unpack non-iterable Bool object

----------------------------------------------------------------------
Ran 792 tests in 655.843s

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