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

etcd_docker 5: Incorporate docker based etcd approach into docker integration tests. #4149

Conversation

andrewmains12
Copy link
Contributor

@andrewmains12 andrewmains12 commented Aug 29, 2022

PR 5 for #4144

This PR makes the docker integration tests use containerized etcd.
Previously, these relied on M3DB running an embbeded etcd server.

There's no inherent need for this, and it opens us up to dependency issues as described
in the linked github issue.

Note: there are a handful that require multiple servers; these are currently "skipped" (commented). I intend to bring those
back at a later date..


Stack:

⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/e67a5172 branch from e0944c8 to 914ac93 Compare August 30, 2022 14:44
@andrewmains12 andrewmains12 changed the title Incorporate docker based etcd approach into docker integration tests. etcd_docker 5: Incorporate docker based etcd approach into docker integration tests. Aug 30, 2022
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/3ae12ffd branch from 8445afb to e639964 Compare August 30, 2022 15:16
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/e67a5172 branch 2 times, most recently from 78835f0 to cb8db85 Compare August 30, 2022 16:04
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/3ae12ffd branch from 50a14e2 to 77ca046 Compare August 30, 2022 16:52
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/e67a5172 branch from cb8db85 to 0ef0995 Compare August 30, 2022 16:52
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/e67a5172 branch from 0ef0995 to 73e9f32 Compare August 30, 2022 17:31
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/3ae12ffd branch from 77ca046 to d7b617c Compare August 30, 2022 17:47
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/e67a5172 branch 3 times, most recently from 87111b2 to 364111f Compare August 30, 2022 21:28
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/3ae12ffd branch from 16b5b60 to 6910f1e Compare August 30, 2022 21:47
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/e67a5172 branch from 364111f to 2b6636a Compare August 30, 2022 21:47
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/3ae12ffd branch from 6910f1e to c8b6a12 Compare August 30, 2022 22:01
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/e67a5172 branch 2 times, most recently from 6d9b5bd to c165783 Compare August 30, 2022 22:13
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/3ae12ffd branch from 0580883 to b47a381 Compare August 30, 2022 22:57
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/e67a5172 branch from c165783 to 18efb5b Compare August 30, 2022 22:57
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/3ae12ffd branch from b47a381 to 9398782 Compare August 31, 2022 14:38
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/e67a5172 branch 2 times, most recently from 12ed8fb to f41faba Compare August 31, 2022 15:18
scripts/docker-integration-tests/common.sh Outdated Show resolved Hide resolved

function defer {
docker-compose -f ${COMPOSE_FILE} down || echo "unable to shutdown containers" # CI fails to stop all containers sometimes
:
# docker-compose -f ${COMPOSE_FILE} down || echo "unable to shutdown containers" # CI fails to stop all containers sometimes
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we not need this anymore? If not, why not just remove the entire function the the trap defer EXIT below?

Base automatically changed from pr/andrewmains12/amains/grpc-update/etcd_tests.review/3ae12ffd to uber/20220830-grpc_update September 2, 2022 14:50
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/e67a5172 branch from f41faba to 8778662 Compare September 2, 2022 14:50
…egration tests.

PR 5 for #4144

This PR makes the docker integration tests use containerized etcd.
Previously, these relied on M3DB running an embbeded etcd server.

There's no inherent need for this, and it opens us up to dependency issues as described
in the linked github issue.

Note: there are a handful that require multiple servers; these are currently "skipped" (commented). I intend to bring those
back at a later date..

commit-id:e67a5172
@andrewmains12 andrewmains12 force-pushed the pr/andrewmains12/amains/grpc-update/etcd_tests.review/e67a5172 branch from 8778662 to 4b8bede Compare September 2, 2022 16:17
@andrewmains12
Copy link
Contributor Author

✓ Commit merged in pull request #4150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants