Travis CI is not detecting the termination of shell script when arch is ppc64le

In the stage jobs, we added a shell script in the before_install to skip the CI’s execution when just docs were changed. This work perfect all in all scenarios unless 1 one case where the arch: amd64

See the exact same job executed.

    # Build and deploy amd64 helm-operator docker image
    - <<: *deploy
      name: Docker image for helm-operator (amd64)
      arch: amd64
      script:
        - make image-build-helm
        - make image-push-helm

    # Build and deploy ppc64le helm-operator docker image
    - <<: *deploy
      name: Docker image for helm-operator (ppc64le)
      arch: ppc64le
      script:
        - make image-build-helm
        - make image-push-helm

Then :

Also, note that the ppc64le arch executed the same script and finishes with 0 as well. But the Travis did not finish and face a timeout.

7.32s$ travis_setup_go
go version go1.13.7 linux/ppc64le
$ export GOPATH="/home/travis/gopath"
$ export PATH="/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.13.7.linux.ppc64le/bin:/opt/python/3.6.7/bin:/home/travis/bin:/home/travis/bin:/home/travis/.local/bin:/home/travis/.rvm/gems/ruby-2.7.0/bin:/home/travis/.rvm/gems/ruby-2.7.0@global/bin:/home/travis/.rvm/rubies/ruby-2.7.0/bin:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/.kiex/elixirs/elixir-1.9.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/travis/.phpenv/bin:/home/travis/.rvm/bin"
$ export GO111MODULE="auto"
cache.1
Setting up build cache
$ gimme version
v1.5.3
$ go version
go version go1.13.7 linux/ppc64le
go.env
$ go env
$ source hack/ci/check-doc-only-update.sh
Only doc files were updated, not running the CI.
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
The build has been terminated

When the exacly the same execution works for AMD.

Worker information
0.13s0.00s0.01s0.00s0.00s
system_info
Build system information
0.01s0.01s0.38s0.20s0.05s0.00s0.04s0.00s0.01s0.01s0.01s0.01s0.01s0.00s0.00s0.02s0.00s0.01s0.25s0.00s0.00s0.00s0.01s0.00s0.09s0.01s0.79s0.00s0.09s6.03s0.00s2.35s0.00s2.16s
docker_mtu
resolvconf
apt
12.71s$ travis_apt_get_update
services
3.01s$ sudo systemctl start docker
git.checkout
1.21s$ git clone --depth=50 --branch=master https://github.com/operator-framework/operator-sdk.git operator-framework/operator-sdk
$ travis_export_go 1.13.x github.com/operator-framework/operator-sdk
0.01s
Setting environment variables from repository settings
$ export DOCKER_USERNAME=[secure]
$ export DOCKER_PASSWORD=[secure]
$ export COVERALLS_TOKEN=[secure]
Setting environment variables from .travis.yml
$ export PATH=/opt/python/3.6.7/bin:$PATH
5.75s$ travis_setup_go
go version go1.13.7 linux/amd64
$ export GOPATH="/home/travis/gopath"
$ export PATH="/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.13.7.linux.amd64/bin:/opt/python/3.6.7/bin:/home/travis/bin:/home/travis/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/.rvm/gems/ruby-2.5.3/bin:/home/travis/.rvm/gems/ruby-2.5.3@global/bin:/home/travis/.rvm/rubies/ruby-2.5.3/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.11.1.linux.amd64/bin:/usr/local/maven-3.6.0/bin:/usr/local/cmake-3.12.4/bin:/usr/local/clang-7.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/travis/.rvm/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin:/home/travis/.yarn/bin"
$ export GO111MODULE="auto"
cache.1
Setting up build cache
$ gimme version
v1.5.3
$ go version
go version go1.13.7 linux/amd64
go.env
$ go env
$ source hack/ci/check-doc-only-update.sh
Only doc files were updat

In the stage jobs, we added a shell script in the before_install to skip the CI’s execution when just docs were changed. This work perfect all in all scenarios unless 1 one case where the arch: amd64

See the exact same job executed.

    # Build and deploy amd64 helm-operator docker image
    - <<: *deploy
      name: Docker image for helm-operator (amd64)
      arch: amd64
      script:
        - make image-build-helm
        - make image-push-helm

    # Build and deploy ppc64le helm-operator docker image
    - <<: *deploy
      name: Docker image for helm-operator (ppc64le)
      arch: ppc64le
      script:
        - make image-build-helm
        - make image-push-helm

Then :

Also, note that the ppc64le arch executed the same script and finishes with 0 as well. But the Travis did not finish and face a timeout.

7.32s$ travis_setup_go
go version go1.13.7 linux/ppc64le
$ export GOPATH="/home/travis/gopath"
$ export PATH="/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.13.7.linux.ppc64le/bin:/opt/python/3.6.7/bin:/home/travis/bin:/home/travis/bin:/home/travis/.local/bin:/home/travis/.rvm/gems/ruby-2.7.0/bin:/home/travis/.rvm/gems/ruby-2.7.0@global/bin:/home/travis/.rvm/rubies/ruby-2.7.0/bin:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/.kiex/elixirs/elixir-1.9.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/travis/.phpenv/bin:/home/travis/.rvm/bin"
$ export GO111MODULE="auto"
cache.1
Setting up build cache
$ gimme version
v1.5.3
$ go version
go version go1.13.7 linux/ppc64le
go.env
$ go env
$ source hack/ci/check-doc-only-update.sh
Only doc files were updated, not running the CI.
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
The build has been terminated

When the exacly the same execution works for AMD.

Worker information
0.13s0.00s0.01s0.00s0.00s
system_info
Build system information
0.01s0.01s0.38s0.20s0.05s0.00s0.04s0.00s0.01s0.01s0.01s0.01s0.01s0.00s0.00s0.02s0.00s0.01s0.25s0.00s0.00s0.00s0.01s0.00s0.09s0.01s0.79s0.00s0.09s6.03s0.00s2.35s0.00s2.16s
docker_mtu
resolvconf
apt
12.71s$ travis_apt_get_update
services
3.01s$ sudo systemctl start docker
git.checkout
1.21s$ git clone --depth=50 --branch=master https://github.com/operator-framework/operator-sdk.git operator-framework/operator-sdk
$ travis_export_go 1.13.x github.com/operator-framework/operator-sdk
0.01s
Setting environment variables from repository settings
$ export DOCKER_USERNAME=[secure]
$ export DOCKER_PASSWORD=[secure]
$ export COVERALLS_TOKEN=[secure]
Setting environment variables from .travis.yml
$ export PATH=/opt/python/3.6.7/bin:$PATH
5.75s$ travis_setup_go
go version go1.13.7 linux/amd64
$ export GOPATH="/home/travis/gopath"
$ export PATH="/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.13.7.linux.amd64/bin:/opt/python/3.6.7/bin:/home/travis/bin:/home/travis/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/.rvm/gems/ruby-2.5.3/bin:/home/travis/.rvm/gems/ruby-2.5.3@global/bin:/home/travis/.rvm/rubies/ruby-2.5.3/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.11.1.linux.amd64/bin:/usr/local/maven-3.6.0/bin:/usr/local/cmake-3.12.4/bin:/usr/local/clang-7.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/travis/.rvm/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin:/home/travis/.yarn/bin"
$ export GO111MODULE="auto"
cache.1
Setting up build cache
$ gimme version
v1.5.3
$ go version
go version go1.13.7 linux/amd64
go.env
$ go env
$ source hack/ci/check-doc-only-update.sh
Only doc files were updat

When reporting problems, please include relevant build URLs. Thanks.