ci: clang-17 for fuzz and tsan #28465

pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2309-ci-clang-17- changing 4 files +8 −8
  1. maflcko commented at 7:33 AM on September 13, 2023: member

    Bump clang in CI from 16 to 17, to:

    • Bump the CI "EOL" from Jan 2024 to July 2024, by bumping from Ubuntu lunar to mantic
    • Test, ensure compatibility, and make use of any new sanitizer features in clang-17
  2. DrahtBot commented at 7:33 AM on September 13, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK dergoegge
    Concept ACK fanquake, hebasto

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  3. DrahtBot added the label Tests on Sep 13, 2023
  4. maflcko added this to the milestone 26.0 on Sep 13, 2023
  5. maflcko force-pushed on Sep 13, 2023
  6. DrahtBot added the label CI failed on Sep 13, 2023
  7. maflcko commented at 8:11 AM on September 13, 2023: member

    Looks like tidy fails with an error:

    clang-tidy-17 -p=/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu -quiet -load=/tidy-build/libbitcoin-tidy.so /ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src/test/fuzz/fuzz.cpp
    test/fuzz/fuzz.cpp:94:34: error: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
       94 |             std::cout << name << std::endl;
          |                                  ^~~~~~~~~
          |                                  '\n'
    

    So I'll postpone that for now.

  8. maflcko force-pushed on Sep 13, 2023
  9. fanquake commented at 8:49 AM on September 13, 2023: member

    Concept ACK. Could probably just disable performance-avoid-endl.

  10. hebasto commented at 9:27 AM on September 13, 2023: member

    Concept ACK.

  11. maflcko commented at 9:58 AM on September 13, 2023: member

    Looks like USDT is broken as well on Mantic, regardless of the clang version: #28467 (comment)

    Going to drop that as well, for now.

  12. maflcko force-pushed on Sep 13, 2023
  13. dergoegge commented at 10:10 AM on September 13, 2023: member

    Concept ACK

  14. in ci/test/01_base_install.sh:48 in 6a7a0bfe33 outdated
      41 | @@ -42,7 +42,7 @@ if [ -n "$PIP_PACKAGES" ]; then
      42 |  fi
      43 |  
      44 |  if [[ ${USE_MEMORY_SANITIZER} == "true" ]]; then
      45 | -  git clone --depth=1 https://github.com/llvm/llvm-project -b llvmorg-16.0.6 /msan/llvm-project
      46 | +  git clone --depth=1 https://github.com/llvm/llvm-project -b "llvmorg-17.0.0-rc4" /msan/llvm-project
      47 |  
      48 |    cmake -G Ninja -B /msan/clang_build/ \
      49 |      -DLLVM_ENABLE_PROJECTS="clang" \
    


    maflcko commented at 11:31 AM on September 13, 2023:

    unrelated: MAKEJOBS does not work in this file, when building the docker image. Not sure what the best fix is for this.

  15. maflcko commented at 11:33 AM on September 13, 2023: member

    Looks like msan also fails:

    -- Performing Test CXX_SUPPORTS_GLINE_TABLES_ONLY_FLAG - Success
    CMake Error at /msan/llvm-project/libcxx/CMakeLists.txt:763 (message):
      LIBCXX_ENABLE_ASSERTIONS has been replaced by
      LIBCXX_HARDENING_MODE=hardened
    
    
    -- Configuring incomplete, errors occurred!
    

    So I'll drop that as well for now.

  16. ci: clang-17 for fuzz and tsan fa23c9aa7c
  17. maflcko renamed this:
    ci: clang-17
    ci: clang-17 for fuzz and tsan
    on Sep 13, 2023
  18. maflcko force-pushed on Sep 13, 2023
  19. DrahtBot removed the label CI failed on Sep 13, 2023
  20. maflcko commented at 1:46 PM on September 13, 2023: member

    This is ready for review. Follow-ups that need more work:

  21. fanquake approved
  22. fanquake commented at 2:52 PM on September 13, 2023: member

    lgtm fa23c9aa7c7d60ff4f914447e7d37dedca85e171 - I can followup with MSAN & tidy

  23. maflcko commented at 3:17 PM on September 13, 2023: member

    iwyu doesn't have a branch, so I think tidy will need to wait either way. Though, msan can be done, and shouldn't conflict with this pull in any way.

  24. dergoegge approved
  25. dergoegge commented at 10:04 AM on September 14, 2023: member

    utACK fa23c9aa7c7d60ff4f914447e7d37dedca85e171

  26. fanquake merged this on Sep 14, 2023
  27. fanquake closed this on Sep 14, 2023

  28. maflcko deleted the branch on Sep 14, 2023
  29. Frank-GER referenced this in commit 9a1fa9a906 on Sep 19, 2023
  30. fanquake referenced this in commit bf32ae3969 on Oct 11, 2023
  31. bitcoin locked this on Sep 13, 2024

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-24 09:14 UTC

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