Clojure: Stuart Sierra Component system reset problem

circle.yml

#1

Hi,

I have an application in clojure using Stuart Sierra Component system reload.

My yml is configured to run tests and integrations tests with a memory db. In the end is executed the lib cloverage to generate coverage to codecov.

When the task to execute cloverage is running is report an error on namespace when I reset the system components in my test, but this error ocurred only on circle ci enviorment.

circle.yml:
> version: 2

    jobs:
      build:
        working_directory: ~/balances-api
        docker:
          - image: circleci/clojure:lein-2.7.1
        environment:
          LEIN_ROOT: true
          JVM_OPTS: -Xmx3200m
        steps:
          - checkout
          - restore_cache:
              keys: 
              - balances-api-{{ checksum "project.clj" }}
              # fallback to using the latest cache if no exact match is found
              - balances-api-
          - run: lein deps
          - save_cache:
              paths:
                - ~/.m2
              key: balances-api-{{ checksum "project.clj" }}
          - run: lein do clean, test, uberjar, cloverage --codecov
          - run: curl -s https://codecov.io/bash | bash -s - -t xxxxxxxxx -f target/coverage/codecov.json
          - store_artifacts:
              path: target/coverage

The error reported is:

> Testing integration.dev.user-test
> ;; Starting MemoryDb
> ;; Starting HttpServer
> ;; Stopping HttpServer
> ;; Stopping MemoryDb
> :reloading (balances-api.domain.services.balances balances-api.ports.db.mapgraph balances-api.adapters.db-adapter balances-api.domain.services.operation balances-api.domain.controller balances-api.ports.handler.middlewares.exception balances-api.ports.handler.components balances-api.ports.handler.routes.account-test balances-api.ports.handler.http-server balances-api.systems balances-api.component-fixture balances-api.ports.handler.http-server-test balances-api.domain.services.balances-test balances-api.domain.controller-test balances-api.ports.handler.middlewares.exception-test balances-api.ports.handler.routes.account balances-api.ports.handler.routes.app balances-api.adapters.db-adapter-test balances-api.domain.services.operation-test user integration.dev.user-test balances-api.core balances-api.ports.db.mapgraph-test balances-api.ports.handler.routes.app-test)
> :error-while-loading balances-api.ports.handler.routes.account-test

Someone know what is the problem?


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.