Skip to content

test: tweak pause test to try and prevent failures in Windows CI#10320

Merged
glours merged 1 commit intodocker:v2from
milas:e2e-win-pause
Mar 1, 2023
Merged

test: tweak pause test to try and prevent failures in Windows CI#10320
glours merged 1 commit intodocker:v2from
milas:e2e-win-pause

Conversation

@milas
Copy link
Contributor

@milas milas commented Feb 27, 2023

This test keeps failing with a timeout in Windows. I don't actually think it should take that long to bring up an nginx container, so I'm guessing that there's something else going on that's causing trouble.

Increase the verbosity when running Compose commands: I think this will generally make E2E test failures easier to diagnose by always logging the full command that's going to be run and also capturing stdout.

Add a health check and use --wait when launching the fixture for the pause test. Combined with the verbosity increase, this should make it easier to understand what's going on here.

This test keeps failing with a timeout in Windows. I don't actually
think it should take that long to bring up an nginx container, so
I'm guessing that there's something else going on that's causing
trouble.

Increase the verbosity when running Compose commands: I think this
will generally make E2E test failures easier to diagnose by always
logging the full command that's going to be run and also capturing
stdout.

Add a health check and use `--wait` when launching the fixture for
the pause test. Combined with the verbosity increase, this should
make it easier to understand what's going on here.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
@milas milas requested a review from a team February 27, 2023 19:29
@milas milas self-assigned this Feb 27, 2023
@milas milas requested review from StefanScherer, glours, laurazard, ndeloof, nicksieger and ulyssessouza and removed request for a team February 27, 2023 19:29
Copy link
Member

@StefanScherer StefanScherer left a comment

Choose a reason for hiding this comment

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

Looks good. Let's see if it fixes Windows or what we find out with it.

image: nginx:alpine
ports: [80]
healthcheck:
test: wget --spider -S -T1 http://localhost:80
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't know about this --spider flag :)

@glours glours merged commit a99a0b5 into docker:v2 Mar 1, 2023
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.

4 participants