Build: #300 failed

Job: Run unit tests failed

Job result summary

1 minute
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 "", line 11, in <module>
  File "/usr/local/lib/python2.7/site-packages/django/core/management/", line 453, in execute_from_command_line
  File "/usr/local/lib/python2.7/site-packages/django/core/management/", line 392, in execute
  File "/usr/local/lib/python2.7/site-packages/django/core/management/", line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/", line 77, in load_command_class
    module = import_module('' % (app_name, name))
  File "/usr/local/lib/python2.7/site-packages/django/utils/", line 35, in import_module
  File "/code/oclapi/management/commands/", line 6, in <module>
    from oclapi.permissions import HasPrivateAccess
  File "/code/oclapi/", line 3, in <module>
    from orgs.models import Organization
  File "/code/orgs/", line 6, in <module>
    from collection.models import Collection
  File "/code/collection/", line 15, in <module>
    from concepts.models import Concept, ConceptVersion
  File "/code/concepts/", line 222, in <module>
    class ConceptVersion(ConceptValidationMixin, ResourceVersionModel):
  File "/code/concepts/", line 235, in ConceptVersion
    class MongoMeta:
  File "/code/concepts/", 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