Build: #309 failed Changes by Rafal Korytkowski

Build result summary

Details

Completed
Duration
9 minutes
Labels
None
Revision
695811bfc7d3f42ed88e64ba664077e12e8ec980 695811bfc7d3f42ed88e64ba664077e12e8ec980
Fixed in
#310 (Rebuilt by Rafal Korytkowski)
No failed test found. A possible compilation error occurred.

Responsible

Code commits

Author Commit Message Commit date
Rafal Korytkowski Rafal Korytkowski 695811bfc7d3f42ed88e64ba664077e12e8ec980 695811bfc7d3f42ed88e64ba664077e12e8ec980 Merge pull request #572 from rkorytkowski/198
OpenConceptLab/ocl_issues#198 Improve speed of adding new references
Rafal Korytkowski Rafal Korytkowski 9adeb16de2dc365267f3f05a2a867363df7e68b0 9adeb16de2dc365267f3f05a2a867363df7e68b0 OpenConceptLab/ocl_issues#198 Improve speed of adding new references

Error summary for Run deprecated integration tests

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

  File "/usr/local/lib/python2.7/site-packages/celery/local.py", line 167, in <lambda>
    __call__ = lambda x, *a, **kw: x._get_current_object()(*a, **kw)
  File "/usr/local/lib/python2.7/site-packages/celery/app/task.py", line 420, in __call__
    return self.run(*args, **kwargs)
  File "/code/tasks.py", line 219, in add_references
    added_references, errors = collection.add_references_in_bulk(expressions)
  File "/code/collection/models.py", line 104, in add_references_in_bulk
    ref.clean()
  File "/code/collection/models.py", line 236, in clean
    self.create_entities_from_expressions(concept_klass, mapping_klass)
  File "/code/collection/models.py", line 249, in create_entities_from_expressions
    raise ValidationError({'detail': ['Expression specified is not valid.']})
ValidationError: {'detail': ['Expression specified is not valid.']}

======================================================================
FAIL: test_add_duplicate_concept_expressions_should_fail (integration_tests.tests.collection_reference_validation.AddCollectionReferenceAPITest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/integration_tests/tests/collection_reference_validation.py", line 185, in test_add_duplicate_concept_expressions_should_fail
    'message': [REFERENCE_ALREADY_EXISTS]},
AssertionError: Lists differ: [{'message': 'Concept or Mappi... != [{'message': ['Concept or Mapp...

First differing element 0:
{'message': 'Concept or Mapping reference name must be unique in a collection.', 'added': False, 'expression': u'/orgs/org1/sources/source2VVXC/concepts/conceptTwo/'}
{'message': ['Concept or Mapping reference name must be unique in a collection.'], 'added': False, 'expression': u'/orgs/org1/sources/source2VVXC/concepts/conceptTwo/'}

  [{'added': False,
    'expression': u'/orgs/org1/sources/source2VVXC/concepts/conceptTwo/',
-   'message': 'Concept or Mapping reference name must be unique in a collection.'}]
+   'message': ['Concept or Mapping reference name must be unique in a collection.']}]
?              +                                                                   +


======================================================================
FAIL: test_add_duplicate_concept_reference_different_version_number (integration_tests.tests.collection_reference_validation.AddCollectionReferenceAPITest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/integration_tests/tests/collection_reference_validation.py", line 260, in test_add_duplicate_concept_reference_different_version_number
    'message': [REFERENCE_ALREADY_EXISTS]}])
AssertionError: Lists differ: [{'message': 'Concept or Mappi... != [{'message': ['Concept or Mapp...

First differing element 0:
{'message': 'Concept or Mapping reference name must be unique in a collection.', 'added': False, 'expression': u'/orgs/org1/sources/sourceQJCZF/concepts/ConceptOne/version1/'}
{'message': ['Concept or Mapping reference name must be unique in a collection.'], 'added': False, 'expression': '/orgs/org1/sources/sourceQJCZF/concepts/ConceptOne/version1/'}

  [{'added': False,
-   'expression': u'/orgs/org1/sources/sourceQJCZF/concepts/ConceptOne/version1/',
?                 -

+   'expression': '/orgs/org1/sources/sourceQJCZF/concepts/ConceptOne/version1/',
-   'message': 'Concept or Mapping reference name must be unique in a collection.'}]
+   'message': ['Concept or Mapping reference name must be unique in a collection.']}]
?              +                                                                   +


======================================================================
FAIL: test_add_duplicate_mapping_expressions_should_fail (integration_tests.tests.collection_reference_validation.AddCollectionReferenceAPITest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/integration_tests/tests/collection_reference_validation.py", line 215, in test_add_duplicate_mapping_expressions_should_fail
    'message': [REFERENCE_ALREADY_EXISTS]}])
AssertionError: Lists differ: [{'message': 'Concept or Mappi... != [{'message': ['Concept or Mapp...

First differing element 0:
{'message': 'Concept or Mapping reference name must be unique in a collection.', 'added': False, 'expression': u'/orgs/org1/sources/sourceCAWF5/mappings/5e612ef6c130f70001b577cf/'}
{'message': ['Concept or Mapping reference name must be unique in a collection.'], 'added': False, 'expression': u'/orgs/org1/sources/sourceCAWF5/mappings/5e612ef6c130f70001b577cf/'}

  [{'added': False,
    'expression': u'/orgs/org1/sources/sourceCAWF5/mappings/5e612ef6c130f70001b577cf/',
-   'message': 'Concept or Mapping reference name must be unique in a collection.'}]
+   'message': ['Concept or Mapping reference name must be unique in a collection.']}]
?              +                                                                   +


======================================================================
FAIL: test_add_duplicate_mapping_reference_different_version_number (integration_tests.tests.collection_reference_validation.AddCollectionReferenceAPITest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/integration_tests/tests/collection_reference_validation.py", line 312, in test_add_duplicate_mapping_reference_different_version_number
    'message': [REFERENCE_ALREADY_EXISTS]}])
AssertionError: Lists differ: [{'message': 'Concept or Mappi... != [{'message': ['Concept or Mapp...

First differing element 0:
{'message': 'Concept or Mapping reference name must be unique in a collection.', 'added': False, 'expression': u'/orgs/org1/sources/sourceKNPYV/mappings/5e612ef7c130f70001b57838/1/'}
{'message': ['Concept or Mapping reference name must be unique in a collection.'], 'added': False, 'expression': '/orgs/org1/sources/sourceKNPYV/mappings/5e612ef7c130f70001b57838/1/'}

  [{'added': False,
-   'expression': u'/orgs/org1/sources/sourceKNPYV/mappings/5e612ef7c130f70001b57838/1/',
?                 -

+   'expression': '/orgs/org1/sources/sourceKNPYV/mappings/5e612ef7c130f70001b57838/1/',
-   'message': 'Concept or Mapping reference name must be unique in a collection.'}]
+   'message': ['Concept or Mapping reference name must be unique in a collection.']}]
?              +                                                                   +


----------------------------------------------------------------------
Ran 154 tests in 255.849s

FAILED (failures=4, errors=1, skipped=7)
+ docker-compose down -v
Stopping ocl-oa-rit_mongo_1 ...
Stopping ocl-oa-rit_solr_1  ...
Stopping ocl-oa-rit_redis_1 ...

Stopping ocl-oa-rit_redis_1 ... done

Stopping ocl-oa-rit_solr_1  ... done

Stopping ocl-oa-rit_mongo_1 ... done
Removing ocl-oa-rit_mongo_1 ...
Removing ocl-oa-rit_solr_1  ...
Removing ocl-oa-rit_redis_1 ...

Removing ocl-oa-rit_redis_1 ... done

Removing ocl-oa-rit_mongo_1 ... done

Removing ocl-oa-rit_solr_1  ... done
Removing network ocl-oa-rit_default
Removing volume ocl-oa-rit_mongo_data
Removing volume ocl-oa-rit_solr_data