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

[dtests] Docker tests integration with docker-compose #3031

Merged
merged 10 commits into from
Jan 27, 2021

Conversation

gediminasgu
Copy link
Collaborator

What this PR does / why we need it:
From the beginning integration tests with docker containers, we run only from bash. But tests on bash were quite complicated to write/debug. Later dockertest library was introduced and docker containers were setup using go. The whole setup of docker containers from go looks very complicated comparing to the pure docker-compose.yml

That PR is a small experiment to use both and bash and go. We call bash/docker-compose from go test to setup/start containers and later attach them to go dockertest API to keep testing them from go.
That simplifies docker configuration and allows to write tests with go.

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:

NONE

Does this PR require updating code package or user-facing documentation?:

NONE

@gediminasgu gediminasgu marked this pull request as draft December 18, 2020 14:27
# Conflicts:
#	go.mod
#	go.sum
#	src/cmd/tools/dtest/docker/harness/resources/common.go
#	src/cmd/tools/dtest/docker/harness/resources/coordinator.go
#	src/cmd/tools/dtest/docker/harness/resources/dbnode.go
#	src/cmd/tools/dtest/docker/harness/resources/docker_resource.go
@gediminasgu gediminasgu marked this pull request as ready for review January 26, 2021 11:11
Copy link
Collaborator

@vpranckaitis vpranckaitis left a comment

Choose a reason for hiding this comment

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

LGTM

@gediminasgu gediminasgu merged commit 4abe51e into master Jan 27, 2021
@gediminasgu gediminasgu deleted the gg/dtest-improvements branch January 27, 2021 08:16
@vpranckaitis vpranckaitis removed their assignment Jan 27, 2021
soundvibe added a commit that referenced this pull request Jan 27, 2021
* master:
  [dtests] Docker tests integration with docker-compose (#3031)
  [dbnode] Comments / remove unused var (#3124)
  [query] Handle context.Canceled and map to 499 http status (#3069)
soundvibe added a commit that referenced this pull request Jan 29, 2021
* master:
  [dbnode] Add aggregate term limit regression test (#3135)
  [DOCS] Adding Prometheus steps to quickstart (#3043)
  [dbnode] Revert AggregateQuery changes (#3133)
  Fix TestSessionFetchIDs flaky test (#3132)
  [dbnode] Alter multi-segments builder to order by size before processing (#3128)
  [dbnode] Emit aggregate usage metrics (#3123)
  [dbnode] Add Shard.OpenStreamingReader method (#3119)
  [dtests] Docker tests integration with docker-compose (#3031)
  [dbnode] Comments / remove unused var (#3124)
  [query] Handle context.Canceled and map to 499 http status (#3069)
  [dbnode] Use StreamingReadMetadata for bootstrapping (#2938)
  [dbnode] Use DefaultTestOptions in test code (#3113)

# Conflicts:
#	src/dbnode/storage/bootstrap/bootstrapper/fs/source.go
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