Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding E2E Tests to CircleCI #253

Merged
merged 37 commits into from
Jun 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
5eeb7cb
Merge pull request #1 from ava-labs/master
galenmarchetti May 31, 2020
081ab11
defining basic e2e tests ci
galenmarchetti May 31, 2020
3eb9efd
modifying travisci yaml
galenmarchetti May 31, 2020
37b7440
pulling images
galenmarchetti May 31, 2020
d85a016
e2e tests must be runnable
galenmarchetti May 31, 2020
0165827
removing osx build to debug kurtosis runs;
galenmarchetti May 31, 2020
374062a
sleeping 90
galenmarchetti May 31, 2020
dea626a
putting in debugging statements
galenmarchetti May 31, 2020
2036c72
building with docker deploy in scripts
galenmarchetti May 31, 2020
c695422
build image script
galenmarchetti May 31, 2020
6fac7c2
fixing travis yml
galenmarchetti May 31, 2020
f8cea1d
travisyml now minimally modified to include kurtosis tests
galenmarchetti May 31, 2020
72330d4
removing debugging statements
galenmarchetti May 31, 2020
1ae9c76
isolating the kurtosis testing
galenmarchetti May 31, 2020
76e7122
Merge pull request #2 from kurtosis-tech/gmarchetti/kurtosis-e2e-ci-i…
galenmarchetti Jun 2, 2020
e771c2f
Merge remote-tracking branch 'upstream/master'
Jun 5, 2020
3de0209
Merge pull request #3 from ava-labs/master
galenmarchetti Jun 18, 2020
1be5daf
updating CI
galenmarchetti Jun 19, 2020
4b22442
changing path to access ava-e2e-tests
galenmarchetti Jun 19, 2020
5cc4aa4
adding debugging steps
galenmarchetti Jun 19, 2020
ea7b77c
adding correct cd
galenmarchetti Jun 19, 2020
9ac4472
removing -d
galenmarchetti Jun 19, 2020
878056d
pulling in gopath
galenmarchetti Jun 19, 2020
0627c7c
turning GO111MODULE off to pull
galenmarchetti Jun 19, 2020
2e16f20
cleaning up CI script
galenmarchetti Jun 20, 2020
a523fb1
cleaning CI run script
galenmarchetti Jun 20, 2020
4cacb56
commenting controller image label from script
galenmarchetti Jun 20, 2020
551e16f
checking build directory
galenmarchetti Jun 20, 2020
0f0439f
calling executable raw
galenmarchetti Jun 20, 2020
50fba75
defining just two tests
galenmarchetti Jun 20, 2020
f4a4283
corrected test-names arg
galenmarchetti Jun 20, 2020
4acaea9
Merge pull request #4 from kurtosis-tech/gmarchetti/integrate-kurtosi…
galenmarchetti Jun 20, 2020
6a37d26
replacing whitespace
galenmarchetti Jun 21, 2020
e2aea23
re-enabling osx
galenmarchetti Jun 21, 2020
fe8157f
Merge pull request #5 from kurtosis-tech/gmarchetti/reset-comments
galenmarchetti Jun 21, 2020
62340e4
removing set x
galenmarchetti Jun 21, 2020
81494fa
Merge pull request #6 from kurtosis-tech/gmarchetti/remove-set-x
galenmarchetti Jun 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .ci/run_e2e_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SCRIPTS_PATH=$(cd $(dirname "${BASH_SOURCE[0]}"); pwd)
SRC_PATH=$(dirname "${SCRIPTS_PATH}")
# Build the runnable Gecko docker image
bash "${SRC_PATH}"/scripts/build_image.sh
GECKO_IMAGE=$(docker image ls --format="{{.Repository}}" | head -n 1)

# Turn off GO111MODULE to pull e2e test source code in order to get run script.
GO111MODULE=off go get -t -v github.com/kurtosis-tech/ava-e2e-tests/...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure I understand why we need to switch off GO111MODULE here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@holisticode in go 1.13, with GO111MODULE=on, go get will not pull source code. ( golang/go#31529 ) We have scripts that build necessary docker images which interact with the network, so we want to pull the source from the test repo to build those images.

cd "${GOPATH}"/src/github.com/kurtosis-tech/ava-e2e-tests/ || exit

bash "./scripts/rebuild_initializer_binary.sh"
bash "./scripts/rebuild_controller_image.sh"
# TODO: Make the controller image label a parameter to rebuild_controller_image script
# Standard controller image label used by above scripts.
CONTROLLER_IMAGE="kurtosistech/ava-e2e-tests_controller:latest"
./build/ava-e2e-tests --gecko-image-name="${GECKO_IMAGE}" --test-controller-image-name="${CONTROLLER_IMAGE}" --test-names="fiveStakingNodeGetValidatorsTest,fiveStakingNodeFullyConnectedTest"
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
global:
- CODECOV_TOKEN="8c18c993-fc6e-4706-998b-01ddc7987804"
- GECKO_HOME=/go/src/github.com/ava-labs/gecko/
- E2E_TEST_HOME=/go/src/github.com/kurtosis-tech/ava-e2e-tests/
- COMMIT=${TRAVIS_COMMIT::8}
- DOCKERHUB_REPO=avaplatform/gecko
- secure: "L/A9+re0NEKP6EV6H9RcTGiDhX3WMvsiWrkRKDYKqnviqbjY30RK6EM4vvjrM4Lrw2QwsO3YKgnku3+zioE/TxEZFkpkbjNUXru0nYBrWAg1TKVsDXnYaIZkHUejfryST3E8N7F4Hx6zCtGEO0sEdUeKuT+MNUIuHezHooTgGzDjMogm70EWMFjQHc7VucTJu7dWU1RBPjovWQ0q9qflrtCpbrvXFIiihQQ1PQha1Q2C4wLakKuLbhhSafue90Mnyss0blaPHy/tyewcASJu4vsGTKRBn0DzttlkNTwuD6+nKrbmJY0ohunnkVFzYjrZAw1gyN+DCDb/lPbz4ZDItKPwrIUPEtL5xuUOrxUZPUh+0io3Q2d6rjaqkdGjd1KQXzbnW1mn0BxX3d3b2UpIqhBn9umYYjHBKnMuoRiTK33b7U9+LF3K84+tEvVDCPeHs/mw6Inp5jGRSravnM6yPQ6feGzogs4+3EMzZXxnkngKFKCsnd67Oe9xfV9amOU2aQAx4jaAwlPjEpBEkUa8YKx3lPznvmUk1QsNCUbLjdSl5JBaXojLJoiuPbj29hp4S5AXXgn+3Hvwk3ndcFCxi6/l1W9mjYSOtFqg3EAUdF4EgnA/ykQg9ZokkoKY0+qgOzG2bKOAYuCDWeGr7P1apToh00ccsQXL81nVPiq7uDw="
Expand All @@ -26,7 +27,7 @@ install:

script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then .ci/runscript_osx.sh; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then .ci/runscript_linux.sh; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then .ci/runscript_linux.sh; .ci/run_e2e_tests.sh; fi

#Need to push to docker hub only from one build
after_success:
Expand Down