Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 2.14 KB

README.md

File metadata and controls

53 lines (42 loc) · 2.14 KB

platform-pipeline

CircleCI

SingularityNET Platform CI/CD Pipeline Repository

Troubleshooting troubleshoot failed platform-pipeline project

The following steps can help to reproduce and find root cause of the failed platform pipeline build.

Note: platform-pipeline always builds all singnet projects from master branch.

For example, the bash command was inserted before running GoDog integration tests.

    - checkout
    - run:
        name: Run integration tests
        command: |
          export PATH=$PATH:$GOPATH/bin
          mkdir $GOPATH/log
          go get github.com/DATA-DOG/godog/cmd/godog
          # Disable TensorFlow warnings wich pollute example-service log file
          export TF_CPP_MIN_LOG_LEVEL=2
          bash # <-- inserted command
          godog
  • Run CircleCI in the platform-pipeline project
    • cd platform-pipeline

    • circleci build

  • Wait until CircleCI build reaches the bash point
  • Copy the docker image
    • List docker running containers
      • docker ps

    • Select the container id for image "ubuntu:latest" from the output
    • Copy the docker image
      • docker commit container-id circleci-platform-pipeline

  • Run the copied CircleCI image by docker
    • docker run -it circleci-platform-pipeline bash

    • cd /root/singnet/src/github.com/singnet

  • Use instructions from the Wiki page to reproduce integration test

Note: necessary test environment variables are not set in this bash session and should be set manually.