SingularityNET Platform CI/CD Pipeline Repository
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.
- Install Docker
- Install CircleCI command-line tool
- checkout platform-pipeline build
-
git checkout https://github.com/singnet/platform-pipeline.git
-
- Find the step where platform-pipeline failed in CircleCI Web UI
- Open the .circleci/config.yaml file in the platform-pipeline project
- Insert bash command before the failed step.
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
-
- List docker running containers
- 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.