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

Attempt to speed up integration tests using pre-built images #2478

Merged
merged 58 commits into from Aug 23, 2019
Merged
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
4bcebb1
Attempt to speed up integration tests using pre-built images
chrisgilmerproj Aug 1, 2019
5396b78
Fix docker login
chrisgilmerproj Aug 1, 2019
bd0151a
Fix vars in makefile
chrisgilmerproj Aug 1, 2019
a331b84
More makefile fixes
chrisgilmerproj Aug 1, 2019
db9aeee
Fix
chrisgilmerproj Aug 1, 2019
daeff69
Use docker-compose to bring up server for e2e tests
chrisgilmerproj Aug 1, 2019
8612a90
Remove extra down command
chrisgilmerproj Aug 1, 2019
8b853fe
Default to port 4000
chrisgilmerproj Aug 1, 2019
421ca51
Wait for migrations to complete and then load data
chrisgilmerproj Aug 1, 2019
a985ce0
Change db name and increase timeout for wait script.
chrisgilmerproj Aug 1, 2019
f275b1d
Run commands crom inside docker
chrisgilmerproj Aug 1, 2019
01e6254
Add a new dockerfile
chrisgilmerproj Aug 1, 2019
5e08706
Fix bad make target
chrisgilmerproj Aug 1, 2019
bc30b9e
Ensure swagger is built
chrisgilmerproj Aug 1, 2019
fa2ab49
Fix port
chrisgilmerproj Aug 1, 2019
cdec25e
Correct the db name
chrisgilmerproj Aug 1, 2019
a2f2e69
Properly use entrypoint
chrisgilmerproj Aug 19, 2019
dc17ed3
Use DOCKER_RUN variable
chrisgilmerproj Aug 19, 2019
dd4e0a9
Merge master
chrisgilmerproj Aug 19, 2019
f8d0be1
Fix problem with finding swagger files
chrisgilmerproj Aug 19, 2019
284c766
Ensure testdata fixture is available
chrisgilmerproj Aug 19, 2019
7f5ca1a
Add an extra sleep to try and catch a race condition
chrisgilmerproj Aug 19, 2019
ff149be
List docker processes
chrisgilmerproj Aug 19, 2019
e4086c0
Follow the migration logs and see if anything is broken
chrisgilmerproj Aug 19, 2019
4fcff8f
Attempt to copy in the local migrations
chrisgilmerproj Aug 19, 2019
9125960
Fix docker ps and add some echo statements
chrisgilmerproj Aug 19, 2019
561cc70
Try to only start the containers and then start after copying
chrisgilmerproj Aug 19, 2019
e7b7e5a
Copy to correct location
chrisgilmerproj Aug 19, 2019
68d9a6f
Use docker-compose for local e2e tests
chrisgilmerproj Aug 20, 2019
23e95f3
Merge master
chrisgilmerproj Aug 20, 2019
8052575
Update docker-compose file to match master
chrisgilmerproj Aug 20, 2019
f2000d4
Fix merge problem with docs
chrisgilmerproj Aug 20, 2019
c347e15
Minor fixes after merge from master
chrisgilmerproj Aug 21, 2019
04c9cbe
Output the spec for debugging purposes
chrisgilmerproj Aug 21, 2019
3193213
One line
chrisgilmerproj Aug 21, 2019
d23cdb2
Remove make targets for db test that use docker since e2e tests don't…
chrisgilmerproj Aug 21, 2019
c679bae
Exit script early if migration did not succeed
chrisgilmerproj Aug 21, 2019
9bcefa2
Remove docker layer caching from steps that don't use docker to speed…
chrisgilmerproj Aug 21, 2019
51aa922
Remove docker ps command
chrisgilmerproj Aug 21, 2019
9f86c1c
Move the migration paths to the same folder. Fix some of the error ch…
chrisgilmerproj Aug 21, 2019
ae2acb1
Capture problems with empty paths
chrisgilmerproj Aug 21, 2019
10f9004
Fix remote docker for server tests
chrisgilmerproj Aug 21, 2019
a078acc
Fix docker cp location
chrisgilmerproj Aug 21, 2019
cdd1e0c
Fix chamber path
chrisgilmerproj Aug 21, 2019
2e4de66
Fix some issues with circleci env vars
chrisgilmerproj Aug 21, 2019
0f3a6f2
Debug logging
chrisgilmerproj Aug 21, 2019
e65494b
Fix the defaults for the migration paths
chrisgilmerproj Aug 21, 2019
67ed563
Modify the message to make sure things are changing in the docker con…
chrisgilmerproj Aug 21, 2019
94599b0
Change wording
chrisgilmerproj Aug 21, 2019
15f4910
Remove any docker cache
chrisgilmerproj Aug 21, 2019
f67f38c
Always pull new image
chrisgilmerproj Aug 21, 2019
7b7fcd9
Fix placement of docker pull and also turn off layer caching
chrisgilmerproj Aug 21, 2019
7b64715
Re-install caching and remove pruning
chrisgilmerproj Aug 21, 2019
edb1829
Remove print debugging
chrisgilmerproj Aug 21, 2019
aa92050
Since we're using set +x no need to have so many echo statements
chrisgilmerproj Aug 21, 2019
434f11a
3 spaces is not a standard anywhere
chrisgilmerproj Aug 21, 2019
a789eb1
Update the dockerignore file
chrisgilmerproj Aug 21, 2019
9c406ab
Fix up local dockerfile for e2e testing
chrisgilmerproj Aug 23, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Fix vars in makefile

  • Loading branch information...
chrisgilmerproj committed Aug 1, 2019
commit bd0151ad98d20bcf1c5195c999c0f8c3925b46f8
@@ -640,10 +640,10 @@ ifndef CIRCLECI
else
@echo "Pulling the built docker migration container..."
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
IMAGE_NAME="923914045601.dkr.ecr.us-west-2.amazonaws.com/app-migrations:git-branch-${BRANCH_NAME}"
IMAGE_NAME="923914045601.dkr.ecr.us-west-2.amazonaws.com/app-migrations:git-branch-$(BRANCH_NAME)"
aws ecr get-login --no-include-email --region us-west-2 --no-include-email | sh
docker pull ${IMAGE_NAME}
docker tag ${IMAGE_NAME} e2e_migrations:latest
docker pull $(IMAGE_NAME)
docker tag $(IMAGE_NAME) e2e_migrations:latest
endif

.PHONY: db_test_migrate_docker
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.