-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Add healthcheck for shibboleth-idp in idp-fixture #100369
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brianseeders
added
>non-issue
:Delivery/Tooling
Developer tooliing and automation
buildkite-opt-in
Opts your PR into Buildkite instead of Jenkins
v8.12.0
labels
Oct 5, 2023
brianseeders
force-pushed
the
fix-idp-fixture-issue
branch
from
October 5, 2023 20:38
c298cf4
to
f5dd550
Compare
brianseeders
force-pushed
the
fix-idp-fixture-issue
branch
from
October 5, 2023 20:49
f5dd550
to
9c9b102
Compare
Pinging @elastic/es-delivery (Team:Delivery) |
brianseeders
added
v8.11.1
v7.17.15
v8.10.4
and removed
Team:Delivery
Meta label for Delivery team
labels
Oct 5, 2023
mark-vieira
approved these changes
Oct 5, 2023
This was referenced Oct 6, 2023
brianseeders
added a commit
to brianseeders/elasticsearch
that referenced
this pull request
Oct 6, 2023
(cherry picked from commit 003912b)
brianseeders
added a commit
to brianseeders/elasticsearch
that referenced
this pull request
Oct 6, 2023
(cherry picked from commit 003912b)
brianseeders
added a commit
to brianseeders/elasticsearch
that referenced
this pull request
Oct 6, 2023
(cherry picked from commit 003912b) # Conflicts: # x-pack/test/idp-fixture/build.gradle
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
brianseeders
added a commit
that referenced
this pull request
Oct 6, 2023
This reverts commit 003912b.
brianseeders
added a commit
that referenced
this pull request
Oct 6, 2023
This reverts commit 003912b.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
buildkite-opt-in
Opts your PR into Buildkite instead of Jenkins
:Delivery/Tooling
Developer tooliing and automation
>non-issue
Team:Delivery
Meta label for Delivery team
v7.17.15
v8.10.4
v8.11.1
v8.12.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With newer versions of
docker-compose
, like the version we currently have on Buildkite agents, this fixture fails a significant percentage of the time. It's the same failure described here.I did a lot of debugging, and here's what I found:
docker inspect
s the container, it receives incomplete networking informationdocker-compose up
finishes, the plugin doesn't capture appropriate networking information about the service, nor does it probe it's ports to ensure it started successfully, because of the incomplete informationAnd, importantly: for some reason, the jetty server exits with exit code 0 immediately upon starting for the first time. So, when
docker-compose up
is called, the container starts once and exits immediately, and then starts back up again.I'm guessing that newer versions of docker-compose are just a little faster, and are able to sometimes catch the container in it's restarting state more often. The restart window is pretty small.
So, here's what I've done here:
--wait
todocker-compose up
, so that it will wait until all of the services are healthy before moving on (it was already essentially doing this with the port probing, this just moves it to docker-compose)Here's what the Jetty logs look like without any changes:
The server exits with code 0 right after
Base directory was modified
. The final line is after the container restarts, and then Jetty continues normally.