Skip to content

tests: Upgrade Travis OS to Xenial - #15022

Merged
maflcko merged 3 commits into
bitcoin:masterfrom
gkrizek:xenial
Dec 29, 2018
Merged

maflcko merged 3 commits into
bitcoin:masterfrom
gkrizek:xenial

Conversation

@gkrizek

@gkrizek gkrizek commented Dec 21, 2018 •

Copy link
Copy Markdown
Contributor

Update base Travis OS to xenial from trusty.

Link to Travis Docs for Xenial: https://docs.travis-ci.com/user/reference/xenial/

As noted in the documentation, Docker version is also updated from 17.06 to 18.06

Also includes:
- If running Bitcoin config with LSan sanitizer, Allow ptrace in Docker run command
- Increase timeout of feature_assumevalid test to fix flaky tests

@gkrizek gkrizek closed this Dec 21, 2018
@gkrizek gkrizek changed the title Test os update Build: Upgrade Travis OS to Xenail Dec 21, 2018
@gkrizek gkrizek reopened this Dec 21, 2018
@gkrizek gkrizek changed the title Build: Upgrade Travis OS to Xenail Build: Upgrade Travis OS to Xenial Dec 21, 2018
@gkrizek

gkrizek commented Dec 21, 2018

Copy link
Copy Markdown
Contributor Author

This also updates the compilers and build toolchain, but that shouldn't matter on the host because everything is ran inside of Docker, correct?

clang and llvm 7
cmake 3.12.4
gcc 5.4.0
ccache 3.2.4

https://docs.travis-ci.com/user/reference/xenial/#compilers-and-build-toolchain

@gkrizek
gkrizek force-pushed the xenial branch 2 times, most recently from 8298f5e to b279f23 Compare December 24, 2018 03:32
@gkrizek

gkrizek commented Dec 24, 2018 •

Copy link
Copy Markdown
Contributor Author

I can't find a legitimate reason by looking through the Docker changelogs or documentation, but when running tests with LSan sanitizer, Docker requires the --cap-add SYS_PTRACE flag set in v18.06. This didn't seem to be a problem with v17.06

See relevant issue here:
google/sanitizers#764

@gkrizek gkrizek closed this Dec 24, 2018
@gkrizek gkrizek reopened this Dec 24, 2018
@meshcollider

Copy link
Copy Markdown
Contributor

@gkrizek please stop opening and closing this :)

@gkrizek

gkrizek commented Dec 24, 2018

Copy link
Copy Markdown
Contributor Author

Sorry, @meshcollider. The first time was an accident then the second was to trigger a new CI run. One of the tests seems flaky, but I’ll test that in my fork. :)

@Empact

Empact commented Dec 25, 2018

Copy link
Copy Markdown
Contributor

@gkrizek

gkrizek commented Dec 26, 2018

Copy link
Copy Markdown
Contributor Author

Thanks @Empact. I was doing that earlier and it was passing in my fork. That's why I thought this was good to go, but now a test is failing so I need to investigate that more.

@gkrizek

gkrizek commented Dec 26, 2018

Copy link
Copy Markdown
Contributor Author

This is complete and ready for review. I've fixed some issues with tests and builds are passing consistently.

Comment thread .travis/test_04_install.sh Resolved
@fanquake

Copy link
Copy Markdown
Member

This should probably be broken into two or three commits. i.e the Travis change (with/without the sanitizer change) and then the test timeout change in a separate commit.

Updating the base OS used in Travis to Xenial from Trusty. This also updates Docker to 18.06 instead of 17.06 in CI.
@gkrizek

gkrizek commented Dec 28, 2018

Copy link
Copy Markdown
Contributor Author

@fanquake Updated. I split it into 3 commits. Thanks!

@fanquake
fanquake requested a review from maflcko December 29, 2018 06:55
@maflcko

maflcko commented Dec 29, 2018

Copy link
Copy Markdown
Member

utACK b6f0db6. We don't use any features from the travis image other than docker, so changing it shouldn't matter.

@fanquake

Copy link
Copy Markdown
Member

Thanks @MarcoFalke. If anything we might get slightly faster build times.

utACK b6f0db6 - appveyor is the failure.

@fanquake fanquake changed the title Build: Upgrade Travis OS to Xenial tests: Upgrade Travis OS to Xenial Dec 29, 2018
@gkrizek

gkrizek commented Dec 29, 2018

Copy link
Copy Markdown
Contributor Author

It looks like this ran about 5 minutes faster than another PR I have open. So I haven’t done testing to compare speeds, but it does seem faster.

maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Dec 29, 2018
b6f0db6 Increase timeout of featuer_assumevalid test to fix flaky tests (Graham Krizek)
aa9aca8 If tests are ran with (ASan + LSan), Docker needs access to ptrace (Graham Krizek)
a3b8b43 Update Travis base OS to Xenial (Graham Krizek)

Pull request description:

  Update base Travis OS to `xenial` from `trusty`.

  Link to Travis Docs for Xenial: https://docs.travis-ci.com/user/reference/xenial/

  As noted in the documentation, Docker version is also updated from `17.06` to `18.06`

  Also includes:
      - If running Bitcoin config with LSan sanitizer, Allow ptrace in Docker run command
      - Increase timeout of feature_assumevalid test to fix flaky tests

Tree-SHA512: baf2eda0cbb9990c43c76de1aebc8dd4a3f540323ac1fe2e164ac3bcf1fe3afa3e5b026bfeb5d650dae09a6854695d5744c1130c2fa82ece86c6835ba152f68d
@maflcko

maflcko commented Dec 29, 2018

Copy link
Copy Markdown
Member

Oh nice. Thanks for the speedup

@maflcko
maflcko merged commit b6f0db6 into bitcoin:master Dec 29, 2018
@gkrizek
gkrizek deleted the xenial branch December 29, 2018 13:57
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Aug 11, 2021
b6f0db6 Increase timeout of featuer_assumevalid test to fix flaky tests (Graham Krizek)
aa9aca8 If tests are ran with (ASan + LSan), Docker needs access to ptrace (Graham Krizek)
a3b8b43 Update Travis base OS to Xenial (Graham Krizek)

Pull request description:

  Update base Travis OS to `xenial` from `trusty`.

  Link to Travis Docs for Xenial: https://docs.travis-ci.com/user/reference/xenial/

  As noted in the documentation, Docker version is also updated from `17.06` to `18.06`

  Also includes:
      - If running Bitcoin config with LSan sanitizer, Allow ptrace in Docker run command
      - Increase timeout of feature_assumevalid test to fix flaky tests

Tree-SHA512: baf2eda0cbb9990c43c76de1aebc8dd4a3f540323ac1fe2e164ac3bcf1fe3afa3e5b026bfeb5d650dae09a6854695d5744c1130c2fa82ece86c6835ba152f68d
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Aug 15, 2021
b6f0db6 Increase timeout of featuer_assumevalid test to fix flaky tests (Graham Krizek)
aa9aca8 If tests are ran with (ASan + LSan), Docker needs access to ptrace (Graham Krizek)
a3b8b43 Update Travis base OS to Xenial (Graham Krizek)

Pull request description:

  Update base Travis OS to `xenial` from `trusty`.

  Link to Travis Docs for Xenial: https://docs.travis-ci.com/user/reference/xenial/

  As noted in the documentation, Docker version is also updated from `17.06` to `18.06`

  Also includes:
      - If running Bitcoin config with LSan sanitizer, Allow ptrace in Docker run command
      - Increase timeout of feature_assumevalid test to fix flaky tests

Tree-SHA512: baf2eda0cbb9990c43c76de1aebc8dd4a3f540323ac1fe2e164ac3bcf1fe3afa3e5b026bfeb5d650dae09a6854695d5744c1130c2fa82ece86c6835ba152f68d
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants