From 5d5e6c369da76852d07e72c60db0863f9d5629e4 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 22 Jul 2020 15:40:02 +0200 Subject: [PATCH 1/3] travis: add integration test on ARMv7 (32bit) --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0706e70a..9456d208 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,6 +42,12 @@ jobs: script: - make itest backend=neutrino + - name: Btcd Integration ARM + script: + - GOARM=7 GOARCH=arm GOOS=linux CGO_ENABLED=0 make btcd build-itest + - file lnd-itest + - GOARM=7 GOARCH=arm GOOS=linux CGO_ENABLED=0 make itest-only + arch: arm64 after_script: - LOG_FILES=./lntest/itest/*.log From ecca1f965342eda03e075acb0d2cdad7a1e15201 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 27 Jul 2020 14:15:36 +0200 Subject: [PATCH 2/3] itest: fix flakiness around/startup/reconnect --- lntest/harness.go | 4 +++- lntest/itest/log_error_whitelist.txt | 7 +++++++ lntest/itest/log_substitutions.txt | 3 ++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lntest/harness.go b/lntest/harness.go index 89a4141b..aa20c3b9 100644 --- a/lntest/harness.go +++ b/lntest/harness.go @@ -403,7 +403,9 @@ func (n *NetworkHarness) connect(ctx context.Context, tryconnect: if _, err := a.ConnectPeer(ctx, req); err != nil { // If the chain backend is still syncing, retry. - if err == lnd.ErrServerNotActive { + if strings.Contains(err.Error(), lnd.ErrServerNotActive.Error()) || + strings.Contains(err.Error(), "i/o timeout") { + select { case <-time.After(100 * time.Millisecond): goto tryconnect diff --git a/lntest/itest/log_error_whitelist.txt b/lntest/itest/log_error_whitelist.txt index 59f1bdc3..deb6abc9 100644 --- a/lntest/itest/log_error_whitelist.txt +++ b/lntest/itest/log_error_whitelist.txt @@ -2,6 +2,8 @@