Skip to content

Ensure fixture runtime dependencies are built before starting containers#59474

Merged
mark-vieira merged 1 commit intoelastic:masterfrom
mark-vieira:docker-test-fixture-fix
Jul 13, 2020
Merged

Ensure fixture runtime dependencies are built before starting containers#59474
mark-vieira merged 1 commit intoelastic:masterfrom
mark-vieira:docker-test-fixture-fix

Conversation

@mark-vieira
Copy link
Copy Markdown
Contributor

This pull request fixes a race condition in the build where runtime dependencies needed to start certain test fixtures may not exist before attempting to start the fixture Docker containers. This manifests as an odd error regarding missing service port information but the root cause is the containers actually failing to start from a ClassNotFoundException. The issue is that an explicit dependency on the runtime classpath was missing, so there was no guarantee that the upstream Jars actually were built before attempting to start the fixture. We fix this by adding the runtime classpath configuration as an explicit task dependency.

Closes #58795

@mark-vieira mark-vieira added the :Delivery/Build Build or test infrastructure label Jul 13, 2020
@mark-vieira mark-vieira requested a review from rjernst July 13, 2020 21:34
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Jul 13, 2020
Copy link
Copy Markdown
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@mark-vieira mark-vieira merged commit 1d7085d into elastic:master Jul 13, 2020
@mark-vieira mark-vieira deleted the docker-test-fixture-fix branch July 13, 2020 22:57
@mark-vieira mark-vieira added Team:Delivery Meta label for Delivery team and removed Team:Core/Infra Meta label for core/infra team labels Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v7.8.2 v7.9.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GCS integration tests failing due to missing test fixture properties

4 participants