From e32616e23d231c7bbd3d1b4cb839c1f7d552b92e Mon Sep 17 00:00:00 2001 From: armab Date: Fri, 21 Jul 2017 18:37:01 +0300 Subject: [PATCH 1/3] Share the st2/st2mistral package logs, even if test failed --- circle.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 7b314eab78..8621ac225d 100644 --- a/circle.yml +++ b/circle.yml @@ -184,12 +184,15 @@ jobs: - run: name: Test the Packages command: | - .circle/docker-compose2.sh test ${DISTRO} + set -x + set +e + .circle/docker-compose2.sh test ${DISTRO} || export TEST_FAILED=1 # Once test container finishes we can copy logs directly from it docker cp st2-packages-vol:/var/log/st2 ~/st2/packages/${DISTRO}/log/st2 docker cp st2-packages-vol:/var/log/mistral ~/st2/packages/${DISTRO}/log/mistral # Clean-up running containers .circle/docker-compose2.sh clean + test -z "$TEST_FAILED" working_directory: ~/st2-packages - store_artifacts: path: ~/st2/packages From 4e3793f7854c4be5830b15d2673974bafa828789 Mon Sep 17 00:00:00 2001 From: armab Date: Fri, 21 Jul 2017 18:48:57 +0300 Subject: [PATCH 2/3] We don't build mistral in `st2` repo --- circle.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index 8621ac225d..2564fa7016 100644 --- a/circle.yml +++ b/circle.yml @@ -152,7 +152,7 @@ jobs: # Remove st2-packages-vol container if exists in CircleCI cache docker rm -f st2-packages-vol || true # creating dummy container which will hold a volume with data files - docker create -v /root/st2-packages -v ${ST2_GITDIR} -v /root/build -v /var/log/st2 -v /var/log/mistral -v /root/.cache/pip -v /tmp/wheelhouse --name st2-packages-vol alpine:3.4 /bin/true + docker create -v /root/st2-packages -v ${ST2_GITDIR} -v /root/build -v /var/log/st2 -v /root/.cache/pip -v /tmp/wheelhouse --name st2-packages-vol alpine:3.4 /bin/true # copy st2-packages data files into this volume docker cp ~/st2-packages st2-packages-vol:/root # copy st2 source files into this volume @@ -189,7 +189,6 @@ jobs: .circle/docker-compose2.sh test ${DISTRO} || export TEST_FAILED=1 # Once test container finishes we can copy logs directly from it docker cp st2-packages-vol:/var/log/st2 ~/st2/packages/${DISTRO}/log/st2 - docker cp st2-packages-vol:/var/log/mistral ~/st2/packages/${DISTRO}/log/mistral # Clean-up running containers .circle/docker-compose2.sh clean test -z "$TEST_FAILED" From f7f7fc90889d00a3c0e48cffb58b8942a405557b Mon Sep 17 00:00:00 2001 From: armab Date: Fri, 21 Jul 2017 18:54:23 +0300 Subject: [PATCH 3/3] Remove '-x' because of too much information in logs --- circle.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/circle.yml b/circle.yml index 2564fa7016..449d22952b 100644 --- a/circle.yml +++ b/circle.yml @@ -184,7 +184,6 @@ jobs: - run: name: Test the Packages command: | - set -x set +e .circle/docker-compose2.sh test ${DISTRO} || export TEST_FAILED=1 # Once test container finishes we can copy logs directly from it