Build: #300 failed

Job: Run unit tests failed

Job result summary

Completed
Duration
1 minute
Revision
8ceeaaefa407a0d5f97f043021dfafc51d0c58cf 8ceeaaefa407a0d5f97f043021dfafc51d0c58cf
Fixed in
#301 (Code changes detected)
No failed test found. A possible compilation error occurred.

Error summary

The build generated some errors. See the full build log for more details.

Creating network "ocl-oa-rut_default" with the default driver
Creating volume "ocl-oa-rut_mongo_data" with default driver
Creating volume "ocl-oa-rut_solr_data" with default driver
Pulling mongo (mongo:3.2.11)...
Pulling solr (openconceptlab/oclsolr@sha256:3275bbf34607aaf4a1ba8417ad41cd1d5d6310dd3b1b3f4b14baae3bfac714d6)...
Pulling redis (redis:3.2.10)...
Creating ocl-oa-rut_mongo_1 ...
Creating ocl-oa-rut_redis_1 ...
Creating ocl-oa-rut_solr_1  ...

Creating ocl-oa-rut_solr_1  ... done

Creating ocl-oa-rut_mongo_1 ... done

Creating ocl-oa-rut_redis_1 ... done
Pulling api (openconceptlab/oclapi@sha256:0ac3ecaba60f889ef3baa9a4f0093746051a179ff6efcd807854d1ce3338f684)...
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 77, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/code/oclapi/management/commands/__init__.py", line 6, in <module>
    from oclapi.permissions import HasPrivateAccess
  File "/code/oclapi/permissions.py", line 3, in <module>
    from orgs.models import Organization
  File "/code/orgs/models.py", line 6, in <module>
    from collection.models import Collection
  File "/code/collection/models.py", line 15, in <module>
    from concepts.models import Concept, ConceptVersion
  File "/code/concepts/models.py", line 222, in <module>
    class ConceptVersion(ConceptValidationMixin, ResourceVersionModel):
  File "/code/concepts/models.py", line 235, in ConceptVersion
    class MongoMeta:
  File "/code/concepts/models.py", line 238, in MongoMeta
    [('source_version_ids', 1), ('updated_at', -1)],h
NameError: name 'h' is not defined
+ docker-compose down -v
Stopping ocl-oa-rut_solr_1  ...
Stopping ocl-oa-rut_mongo_1 ...
Stopping ocl-oa-rut_redis_1 ...

Stopping ocl-oa-rut_redis_1 ... done

Stopping ocl-oa-rut_mongo_1 ... done

Stopping ocl-oa-rut_solr_1  ... done
Removing ocl-oa-rut_solr_1  ...
Removing ocl-oa-rut_mongo_1 ...
Removing ocl-oa-rut_redis_1 ...

Removing ocl-oa-rut_solr_1  ... done

Removing ocl-oa-rut_mongo_1 ... done

Removing ocl-oa-rut_redis_1 ... done
Removing network ocl-oa-rut_default
Removing volume ocl-oa-rut_mongo_data
Removing volume ocl-oa-rut_solr_data