OCL API 2

Build: #2117 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
23 minutes
Labels
None
Revisions
OCL API 2
745c818998e54a0492c1f17c2dbc8fdd43e3da99 745c818998e54a0492c1f17c2dbc8fdd43e3da99
OCL CI
6544e7ed40ead274ba8b0995efe09bb9edfd8319 6544e7ed40ead274ba8b0995efe09bb9edfd8319
Fixed in
#2118 (Manual run from the stage: Deploy for testing 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. 745c818998e54a0492c1f17c2dbc8fdd43e3da99 745c818998e54a0492c1f17c2dbc8fdd43e3da99 OpenConceptLab/ocl_issues#1776 | adding entity's description to events responses

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 "/code/core/collections/tests/tests.py", line 458, in test_referenced_sources_distribution
    self.assertCountEqual(
AssertionError: Element counts were not equal:
First has 1, Second has 0:  {'id': 'HEAD', 'version_url': '/orgs/org77/sources/source107/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'description': 'This is a test source', 'name': 'source107', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 1, 'references': 2}}
First has 1, Second has 0:  {'id': 'HEAD', 'version_url': '/orgs/org76/sources/source106/', 'type': 'Source Version', 'short_code': 'source106', 'released': False, 'description': 'This is a test source', 'name': 'source106', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 1, Second has 0:  {'id': 'v1', 'version_url': '/orgs/org77/sources/source107/v1/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'description': 'This is a test source', 'name': 'source108', 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1:  {'id': 'HEAD', 'version_url': '/orgs/org76/sources/source106/', 'type': 'Source Version', 'short_code': 'source106', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1:  {'id': 'v1', 'version_url': '/orgs/org77/sources/source107/v1/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 0, 'references': 1}}
First has 0, Second has 1:  {'id': 'HEAD', 'version_url': '/orgs/org77/sources/source107/', 'type': 'Source Version', 'short_code': 'source107', 'released': False, 'distribution': {'include_reference': True, 'concepts': 1, 'mappings': 1, 'references': 2}}

======================================================================
FAIL: test_get_200 (core.integration_tests.tests_sources.SourceListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_sources.py", line 93, in test_get_200
    self.assertEqual(response.data[0], {'id': source.mnemonic, 'url': source.uri, 'type': 'Source'})
AssertionError: OrderedDict([('id', 'source782'), ('url',[114 chars]e')]) != {'id': 'source782', 'url': '/orgs/OCL/sou[30 chars]rce'}

======================================================================
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 1492, in test_get_200_verbose
    self.assertEqual(
AssertionError: Lists differ: [{'distribution': {'active': 2, 'retired': 0[745 chars]01'}] != [{'id': 'HEAD', 'version_url': '/orgs/org652[623 chars]}]}}]

First differing element 0:
{'distribution': {'active': 2, 'retired': 0[392 chars]799'}
{'id': 'HEAD', 'version_url': '/orgs/org652[331 chars]1}]}}

- [{'description': 'This is a test source',
-   'distribution': {'active': 2,
? ^^

+ [{'distribution': {'active': 2,
? ^^

                     'map_types': [{'active': 1,
                                    'map_type': '1727866385.326073',
                                    'retired': 0,
                                    'total': 1},
                                   {'active': 1,
                                    'map_type': 'foobar-1727866385.326073',
                                    'retired': 0,
                                    'total': 1}],
                     'retired': 0,
                     'total': 2},
    'id': 'HEAD',
-   'name': 'source799',
    'released': False,
    'short_code': '1727866385.326073',
    'type': 'Source Version',
    'version_url': '/orgs/org652/sources/1727866385.326073/'},
-  {'description': 'This is a test source',
-   'distribution': {'active': 1,
?  ^

+  {'distribution': {'active': 1,
?  ^

                     'map_types': [{'active': 1,
                                    'map_type': 'foobar-1727866385.326073',
                                    'retired': 0,
                                    'total': 1}],
                     'retired': 0,
                     'total': 1},
    'id': 'HEAD',
-   'name': 'source801',
    'released': False,
    'short_code': 'source801',
    'type': 'Source Version',
    'version_url': '/orgs/org654/sources/source801/'}]

======================================================================
FAIL: test_get (core.integration_tests.tests_users.UserFollowingListViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/core/integration_tests/tests_users.py", line 1062, in test_get
    self.assertEqual(
AssertionError: {'id': 20, 'follow_date': '2024-10-02T10:53[212 chars]low'} != {'object': {'id': 'org-followed', 'name': '[167 chars]20/'}
- {'follow_date': '2024-10-02T10:53:37.784604Z',
+ {'follow_date': <ANY>,
   'id': 20,
-  'object': {'id': 'org-followed', 'name': 'Org-700', 'url': '/orgs/org-followed/', 'type': 'Organization', 'logo_url': None, 'description': None},
+  'object': {'id': 'org-followed',
+             'logo_url': None,
+             'name': 'Org-700',
+             'type': 'Organization',
+             'url': '/orgs/org-followed/'},
   'type': 'Follow',
   'url': '/users/follower/following/20/'}

----------------------------------------------------------------------
Ran 886 tests in 1125.880s

FAILED (failures=4)
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
Removing volume ocl-oclapi2-rt_upload-data