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

Spurious failure when starting docker on Travis #39035

Closed
alexcrichton opened this issue Jan 13, 2017 · 6 comments
Closed

Spurious failure when starting docker on Travis #39035

alexcrichton opened this issue Jan 13, 2017 · 6 comments
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason)

Comments

@alexcrichton
Copy link
Member

alexcrichton commented Jan 13, 2017

I've seen this error a number of times when docker is starting on Travis:

The command "if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
    echo skipping, not a full build;
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
    travis_retry git submodule update --init &&
    src/ci/run.sh;
else
    travis_retry git submodule update --init &&
    src/ci/docker/run.sh $IMAGE;
fi
" exited with 129.

notably the "exited with 129"

This looks similar to moby/moby#18948, but I haven't been able to figure out a fix for this...

Example logs:

@alexcrichton alexcrichton added the A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) label Jan 13, 2017
@aidanhs
Copy link
Member

aidanhs commented Jan 13, 2017

docker/compose#3379 (comment)

Worth trying to remove --tty? Not sure what requires it in the rust build. It's a little odd because all these users are talking about docker exec, so might also be worth adding set -x.

@alexcrichton
Copy link
Member Author

Interesting! My guess (don't know for sure) is that this is what's failing --

exec docker \
run \
--volume "$root_dir:/checkout:ro" \
--volume "$root_dir/obj:/checkout/obj" \
--workdir /checkout/obj \
--env SRC=/checkout \
$args \
--env CARGO_HOME=/cargo \
--env LOCAL_USER_ID=`id -u` \
--volume "$HOME/.cargo:/cargo" \
--interactive \
--tty \
rust-ci \
/checkout/src/ci/run.sh

We could try removing --tty, yeah, as it's basically just there to give us pretty colors. It's not worth spurious failures though if that's the cause! @aidanhs want to send a PR removing that?

@alexcrichton
Copy link
Member Author

Attempted PR to fix this is at #39036, let's wait awhile and see if this error still pops up after that merges.

bors added a commit that referenced this issue Jan 13, 2017
Remove strictly-unnecessary flags for docker

cc #39035

In addition to `--tty` I've removed `--interactive` as I don't think there's any reason for it to be there (it only hooks up stdin, which shouldn't be used anyway).

If this looks like it's working over a few days then I'll also alter the libc scripts.

r? @alexcrichton
@aidanhs
Copy link
Member

aidanhs commented Feb 2, 2017

@alexcrichton seen it recently?

@alexcrichton
Copy link
Member Author

Nope!

@alexcrichton
Copy link
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason)
Projects
None yet
Development

No branches or pull requests

2 participants