tests: Upgrade Travis OS to Xenial #15022

pull gkrizek wants to merge 3 commits into bitcoin:master from gkrizek:xenial changing 3 files +4 −2
  1. gkrizek commented at 9:16 PM on December 21, 2018: 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

  2. gkrizek closed this on Dec 21, 2018

  3. gkrizek renamed this:
    Test os update
    Build: Upgrade Travis OS to Xenail
    on Dec 21, 2018
  4. gkrizek reopened this on Dec 21, 2018

  5. meshcollider added the label Build system on Dec 21, 2018
  6. meshcollider added the label Tests on Dec 21, 2018
  7. gkrizek renamed this:
    Build: Upgrade Travis OS to Xenail
    Build: Upgrade Travis OS to Xenial
    on Dec 21, 2018
  8. gkrizek commented at 9:52 PM on December 21, 2018: contributor

    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

  9. gkrizek force-pushed on Dec 22, 2018
  10. gkrizek force-pushed on Dec 24, 2018
  11. gkrizek commented at 3:45 AM on December 24, 2018: contributor

    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: https://github.com/google/sanitizers/issues/764

  12. gkrizek closed this on Dec 24, 2018

  13. gkrizek reopened this on Dec 24, 2018

  14. meshcollider commented at 6:17 AM on December 24, 2018: contributor

    @gkrizek please stop opening and closing this :)

  15. gkrizek commented at 1:35 PM on December 24, 2018: contributor

    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. :)

  16. Empact commented at 3:00 AM on December 25, 2018: member

    @gkrizek To trigger a new build, you can set up an account at travis-ci.org and control the builds under: http://travis-ci.org/gkrizek/bitcoin

  17. gkrizek commented at 5:36 PM on December 26, 2018: contributor

    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.

  18. gkrizek force-pushed on Dec 26, 2018
  19. gkrizek commented at 10:05 PM on December 26, 2018: contributor

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

  20. in .travis/test_04_install.sh:18 in 2470ab867f outdated
      14 | @@ -15,6 +15,8 @@ export UBSAN_OPTIONS="suppressions=${TRAVIS_BUILD_DIR}/test/sanitizer_suppressio
      15 |  env | grep -E '^(BITCOIN_CONFIG|CCACHE_|WINEDEBUG|LC_ALL|BOOST_TEST_RANDOM|CONFIG_SHELL|(ASAN|LSAN|TSAN|UBSAN)_OPTIONS)' | tee /tmp/env
      16 |  if [[ $HOST = *-mingw32 ]]; then
      17 |    DOCKER_ADMIN="--cap-add SYS_ADMIN"
      18 | +elif [[ $BITCOIN_CONFIG = *--with-sanitizers=*address* ]]; then # If ran with (ASan + LSan), Docker needs access to ptrace
    


    Empact commented at 12:19 AM on December 27, 2018:

    gkrizek commented at 2:29 PM on December 28, 2018:

    Thanks for the suggestion. I added a link in the comment

  21. fanquake commented at 10:49 AM on December 28, 2018: 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.

  22. Update Travis base OS to Xenial
    Updating the base OS used in Travis to Xenial from Trusty. This also updates Docker to 18.06 instead of 17.06 in CI.
    a3b8b43663
  23. If tests are ran with (ASan + LSan), Docker needs access to ptrace
    See https://github.com/google/sanitizers/issues/764 for details
    aa9aca85f1
  24. Increase timeout of featuer_assumevalid test to fix flaky tests b6f0db69a9
  25. gkrizek force-pushed on Dec 28, 2018
  26. gkrizek commented at 2:29 PM on December 28, 2018: contributor

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

  27. fanquake requested review from MarcoFalke on Dec 29, 2018
  28. MarcoFalke commented at 8:51 AM on December 29, 2018: member

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

  29. fanquake commented at 9:07 AM on December 29, 2018: member

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

    utACK b6f0db6 - appveyor is the failure.

  30. fanquake renamed this:
    Build: Upgrade Travis OS to Xenial
    tests: Upgrade Travis OS to Xenial
    on Dec 29, 2018
  31. gkrizek commented at 1:38 PM on December 29, 2018: contributor

    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.

  32. MarcoFalke referenced this in commit a1fd876122 on Dec 29, 2018
  33. MarcoFalke commented at 1:39 PM on December 29, 2018: member

    Oh nice. Thanks for the speedup

  34. MarcoFalke merged this on Dec 29, 2018
  35. MarcoFalke closed this on Dec 29, 2018

  36. gkrizek deleted the branch on Dec 29, 2018
  37. Munkybooty referenced this in commit df41da9f9a on Aug 8, 2021
  38. Munkybooty referenced this in commit ae49890560 on Aug 11, 2021
  39. Munkybooty referenced this in commit aea4aa93cd on Aug 11, 2021
  40. Munkybooty referenced this in commit 22a15b1048 on Aug 13, 2021
  41. Munkybooty referenced this in commit 27c4b61a4a on Aug 15, 2021
  42. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-29 03:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me