Travis: disable the ARM64 job (too unreliable) (#1276)

Azure: the jsonTestsCache key needs updating
all: lighten the load a little, since only beacon_node is built with
     that flag in production
This commit is contained in:
Ștefan Talpalaru 2020-07-03 12:04:04 +02:00 committed by GitHub
parent c64737e7f2
commit f9e159be90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 21 deletions

View File

@ -34,7 +34,7 @@ build_script:
test_script: test_script:
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% LOG_LEVEL=TRACE - mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% LOG_LEVEL=TRACE
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% LOG_LEVEL=TRACE NIMFLAGS="-d:testnet_servers_image" - mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% LOG_LEVEL=TRACE NIMFLAGS="-d:testnet_servers_image" beacon_node
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_TEST_FIXTURES_SCRIPT=1 test - mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_TEST_FIXTURES_SCRIPT=1 test
deploy: off deploy: off

View File

@ -22,25 +22,24 @@ matrix:
- NPROC=2 - NPROC=2
before_install: before_install:
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
- sudo apt-get -q update #- os: linux
- os: linux #arch: arm64
arch: arm64 #sudo: required
sudo: required #env:
env: #- NPROC=6 # Worth trying more than 2 parallel jobs: https://travis-ci.community/t/no-cache-support-on-arm64/5416/8
- NPROC=6 # Worth trying more than 2 parallel jobs: https://travis-ci.community/t/no-cache-support-on-arm64/5416/8 ## (also used to get a different cache key than the amd64 one)
# (also used to get a different cache key than the amd64 one) #before_install:
before_install: #- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" #- sudo apt-get -q update
- sudo apt-get -q update #- sudo apt-get install -y libpcre3-dev
- sudo apt-get install -y libpcre3-dev
- os: osx - os: osx
before_install: before_install:
- HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 brew install ccache - HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 brew install ccache
env: env:
- NPROC=2 - NPROC=2
allow_failures: #allow_failures:
# ARM64 is a bit buggy: https://travis-ci.community/t/no-output-has-been-received-and-then-build-terminated-on-arm64/8834 ## ARM64 is a bit buggy: https://travis-ci.community/t/no-output-has-been-received-and-then-build-terminated-on-arm64/8834
- arch: arm64 #- arch: arm64
install: install:
@ -52,7 +51,6 @@ script:
# Building Nim-1.0.4 takes up to 10 minutes on Travis - the time limit after which jobs are cancelled for having no output # Building Nim-1.0.4 takes up to 10 minutes on Travis - the time limit after which jobs are cancelled for having no output
- make -j${NPROC} NIMFLAGS="--parallelBuild:2" V=1 update # to allow a newer Nim version to be detected - make -j${NPROC} NIMFLAGS="--parallelBuild:2" V=1 update # to allow a newer Nim version to be detected
- make -j${NPROC} NIMFLAGS="--parallelBuild:2" LOG_LEVEL=TRACE - make -j${NPROC} NIMFLAGS="--parallelBuild:2" LOG_LEVEL=TRACE
- make -j${NPROC} NIMFLAGS="--parallelBuild:2 -d:testnet_servers_image" LOG_LEVEL=TRACE - make -j${NPROC} NIMFLAGS="--parallelBuild:2 -d:testnet_servers_image" LOG_LEVEL=TRACE beacon_node
# Compiling "test_all" on ARM64 can take longer than 10 minutes, so make it verbose. - make -j${NPROC} NIMFLAGS="--parallelBuild:2" DISABLE_TEST_FIXTURES_SCRIPT=1 test
- make -j${NPROC} NIMFLAGS="--parallelBuild:2" DISABLE_TEST_FIXTURES_SCRIPT=1 V=1 test

2
Jenkinsfile vendored
View File

@ -27,7 +27,7 @@ def runStages() {
sh """#!/bin/bash sh """#!/bin/bash
set -e set -e
make -j${env.NPROC} make -j${env.NPROC}
make -j${env.NPROC} LOG_LEVEL=TRACE NIMFLAGS='-d:testnet_servers_image' make -j${env.NPROC} LOG_LEVEL=TRACE NIMFLAGS='-d:testnet_servers_image' beacon_node
""" """
} }
}, },

View File

@ -22,7 +22,7 @@ jobs:
- task: CacheBeta@1 - task: CacheBeta@1
displayName: 'cache official test fixtures' displayName: 'cache official test fixtures'
inputs: inputs:
key: jsonTestsCache key: jsonTestsCacheV1
path: jsonTestsCache path: jsonTestsCache
- task: CacheBeta@1 - task: CacheBeta@1
@ -67,7 +67,7 @@ jobs:
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} LOG_LEVEL=TRACE mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} LOG_LEVEL=TRACE
if [[ $PLATFORM == "x64" ]]; then if [[ $PLATFORM == "x64" ]]; then
# everything builds more slowly on 32-bit, since there's no libbacktrace support # everything builds more slowly on 32-bit, since there's no libbacktrace support
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} LOG_LEVEL=TRACE NIMFLAGS="-d:testnet_servers_image" mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} LOG_LEVEL=TRACE NIMFLAGS="-d:testnet_servers_image" beacon_node
fi fi
file build/beacon_node file build/beacon_node
# fail fast # fail fast