Skip to content

Commit

Permalink
Update CI docker and circleci config
Browse files Browse the repository at this point in the history
- Replace python inotify with python watchdog in docker image
- Update to circleci config version 2.1
- Use reusable executor pattern in version 2.1 to reduce copy/paste
  for docker image config

closes #2893
  • Loading branch information
nisanharamati committed May 22, 2019
1 parent 3381e55 commit 6157a7c
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 99 deletions.
4 changes: 2 additions & 2 deletions .ci-dockerfiles/ci-standard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ ENV LANGUAGE en_US:en

# python2 testing dependencies
RUN python2 -m pip install --upgrade pip enum34 \
&& python2 -m pip install pytest==3.7.4 inotify==0.2.10
&& python2 -m pip install pytest==3.7.4 watchdog==0.9.0

# python3 testing dependencies
RUN python3 -m pip install --upgrade pip enum34 \
&& python3 -m pip install pytest==3.7.4 inotify==0.2.10
&& python3 -m pip install pytest==3.7.4 watchdog==0.9.0

# install go
RUN wget https://dl.google.com/go/go1.9.2.linux-amd64.tar.gz \
Expand Down
182 changes: 85 additions & 97 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
version: 2
jobs:
verify-changelog:
version: 2.1
executors:
wallaroo-ci:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.21.1
pony-changelog:
docker:
- image: ponylang/changelog-tool:release
jobs:
verify-changelog:
executor: pony-changelog
steps:
- checkout
- run: .circleci/clone_tracker.sh
- run: changelog-tool verify CHANGELOG.md

unit-tests:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
- run: make unit-tests debug=true

integration-tests:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -33,30 +37,27 @@ jobs:
- store_artifacts:
path: /tmp/wallaroo_test_errors

integration-tests-correctness:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
integration-tests-with-resilience:
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
- run: make integration-tests-testing-correctness-apps-all debug=true
- run: make integration-tests-demos-all debug=true resilience=on
- run: make integration-tests-examples-all debug=true resilience=on
- store_artifacts:
path: /tmp/wallaroo_test_errors

integration-tests-resilience:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
integration-tests-testing-correctness-apps:
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
- run: make integration-tests-demos-all debug=true resilience=on
- run: make integration-tests-examples-all debug=true resilience=on
- run: make integration-tests-testing-correctness-apps-all debug=true
- store_artifacts:
path: /tmp/wallaroo_test_errors

integration-tests-resilience-correctness:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
integration-tests-testing-correctness-apps-with-resilience:
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -65,8 +66,7 @@ jobs:
path: /tmp/wallaroo_test_errors

autoscale-tests-pony:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -77,9 +77,8 @@ jobs:
- store_artifacts:
path: /tmp/wallaroo_test_errors

autoscale-tests-pony-resilience:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
autoscale-tests-pony-with-resilience:
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -91,8 +90,7 @@ jobs:
path: /tmp/wallaroo_test_errors

autoscale-tests-python2:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -103,9 +101,8 @@ jobs:
- store_artifacts:
path: /tmp/wallaroo_test_errors

autoscale-tests-python2-resilience:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
autoscale-tests-python2-with-resilience:
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -117,8 +114,7 @@ jobs:
path: /tmp/wallaroo_test_errors

autoscale-tests-python3:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -129,9 +125,8 @@ jobs:
- store_artifacts:
path: /tmp/wallaroo_test_errors

autoscale-tests-python3-resilience:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
autoscale-tests-python3-with-resilience:
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -143,8 +138,7 @@ jobs:
path: /tmp/wallaroo_test_errors

resilience-tests-pony:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -156,8 +150,7 @@ jobs:
path: /tmp/wallaroo_test_errors

resilience-tests-python2:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -169,8 +162,7 @@ jobs:
path: /tmp/wallaroo_test_errors

resilience-tests-python3:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -182,8 +174,7 @@ jobs:
path: /tmp/wallaroo_test_errors

topology-tests-python2:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -194,9 +185,8 @@ jobs:
- store_artifacts:
path: /tmp/wallaroo_test_errors

topology-tests-python3-resilience:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
topology-tests-python2-with-resilience:
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -208,8 +198,7 @@ jobs:
path: /tmp/wallaroo_test_errors

topology-tests-python3:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -220,9 +209,8 @@ jobs:
- store_artifacts:
path: /tmp/wallaroo_test_errors

topology-tests-python3-resilience:
docker:
- image: wallaroolabs/wallaroo-ci:2019.05.08.1
topology-tests-python3-with-resilience:
executor: wallaroo-ci
steps:
- checkout
- run: .circleci/clone_tracker.sh
Expand All @@ -245,105 +233,105 @@ workflows:
requires:
- unit-tests

- integration-tests-correctness:
- integration-tests-with-resilience:
requires:
- unit-tests

- integration-tests-resilience:
- integration-tests-testing-correctness-apps:
requires:
- unit-tests

- integration-tests-resilience-correctness:
- integration-tests-testing-correctness-apps-with-resilience:
requires:
- unit-tests

- autoscale-tests-pony:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- autoscale-tests-pony-resilience:
- autoscale-tests-pony-with-resilience:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- autoscale-tests-python2:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- autoscale-tests-python2-resilience:
- autoscale-tests-python2-with-resilience:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- autoscale-tests-python3:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- autoscale-tests-python3-resilience:
- autoscale-tests-python3-with-resilience:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- resilience-tests-pony:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- resilience-tests-python2:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- resilience-tests-python3:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- topology-tests-python2:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- topology-tests-python3-resilience:
- topology-tests-python2-with-resilience:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- topology-tests-python3:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

- topology-tests-python3-resilience:
- topology-tests-python3-with-resilience:
requires:
- integration-tests
- integration-tests-correctness
- integration-tests-resilience
- integration-tests-resilience-correctness
- integration-tests-testing-correctness-apps
- integration-tests-with-resilience
- integration-tests-testing-correctness-apps-with-resilience

0 comments on commit 6157a7c

Please sign in to comment.