OCL API 2

Build: #1645 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
7 minutes
Labels
None
Revisions
OCL API 2
0dc1db0cbe4a4f22ac99de4a44534803f26211f1 0dc1db0cbe4a4f22ac99de4a44534803f26211f1
OCL CI
3a5aa873674ab3c0ed904029536d426abb31bdd0 3a5aa873674ab3c0ed904029536d426abb31bdd0
Fixed in
#1646 (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. 0dc1db0cbe4a4f22ac99de4a44534803f26211f1 0dc1db0cbe4a4f22ac99de4a44534803f26211f1 OpenConceptLab/ocl_issues#1579 | collection/source minimal versions serializers

Error summary for Run tests

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

    test_is_valid_auth_group ... ok
    test_mark_verified ... ok
    test_mnemonic ... ok
    test_name ... ok
    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:1564: RuntimeWarning: DateTimeField UserProfile.deactivated_at received a naive datetime (2023-05-17 06:59:09.250260) 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

======================================================================
FAIL: test_referenced_collections_distribution (core.collections.tests.tests.CollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/collections/tests/tests.py", line 477, in test_referenced_collections_distribution
    self.assertCountEqual(
AssertionError: Element counts were not equal:
First has 1, Second has 0:  {'id': 'HEAD', 'version_url': '/orgs/org64/collections/collection16/', 'type': 'Collection Version', 'short_code': 'collection16', 'released': False, 'autoexpand': True, 'distribution': {'include_reference': True, 'concepts': 0, 'mappings': 0, 'references': 2}}
First has 0, Second has 1:  {'id': 'HEAD', 'version_url': '/orgs/org64/collections/collection16/', 'type': 'Collection Version', 'short_code': 'collection16', 'distribution': {'include_reference': True, 'concepts': 0, 'mappings': 0, 'references': 2}}

======================================================================
FAIL: test_referenced_sources_distribution (core.collections.tests.tests.CollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/collections/tests/tests.py", line 390, in test_referenced_sources_distribution
    self.assertCountEqual(
AssertionError: Element counts were not equal:
First has 1, Second has 0:  {'id': 'HEAD', 'version_url': '/orgs/org72/sources/source94/', 'type': 'Source Version', 'short_code': 'source94', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 1, 'references': 2}}
First has 1, Second has 0:  {'id': 'HEAD', 'version_url': '/orgs/org71/sources/source93/', 'type': 'Source Version', 'short_code': 'source93', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 1, Second has 0:  {'id': 'v1', 'version_url': '/orgs/org72/sources/source94/v1/', 'type': 'Source Version', 'short_code': 'source94', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1:  {'id': 'HEAD', 'version_url': '/orgs/org71/sources/source93/', 'type': 'Source Version', 'short_code': 'source93', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1:  {'id': 'v1', 'version_url': '/orgs/org72/sources/source94/v1/', 'type': 'Source Version', 'short_code': 'source94', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1:  {'id': 'HEAD', 'version_url': '/orgs/org72/sources/source94/', 'type': 'Source Version', 'short_code': 'source94', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 1, 'references': 2}}

======================================================================
FAIL: test_get_200_verbose (core.integration_tests.tests_sources.SourceSummaryViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_sources.py", line 1284, in test_get_200_verbose
    self.assertEqual(
AssertionError: Lists differ: [{'distribution': {'active': 1, 'retired': 0[243 chars]lse}] != [{'id': 'HEAD', 'version_url': '/orgs/org616[224 chars]}]}}]

First differing element 0:
{'distribution': {'active': 1, 'retired': 0[242 chars]alse}
{'id': 'HEAD', 'version_url': '/orgs/org616[223 chars]1}]}}

  [{'distribution': {'active': 1,
                     'map_types': [{'active': 1,
                                    'map_type': 'foobar-1684306716.2845078',
                                    'retired': 0,
                                    'total': 1}],
                     'retired': 0,
                     'total': 1},
    'id': 'HEAD',
-   'released': False,
    'short_code': 'source761',
    'type': 'Source Version',
    'version_url': '/orgs/org616/sources/source761/'}]

----------------------------------------------------------------------
Ran 789 tests in 216.708s

FAILED (failures=3, skipped=2)
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