ci: Better tidy errors #29094

pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2312-ci-tidy-nice- changing 1 files +5 −1
  1. maflcko commented at 3:52 PM on December 15, 2023: member

    Currently tidy errors are not nice, because the user may have to scroll up to see them in a large block of text. See for example (before) https://github.com/bitcoin/bitcoin/runs/19670551485

    Fix that by teeing the output to a file and summarizing the errors in the end again. See for example (after): https://github.com/bitcoin/bitcoin/runs/22647850662

  2. DrahtBot commented at 3:52 PM on December 15, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage

    For detailed information about the code coverage, see the test coverage report.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK hebasto, TheCharlatan

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

  3. DrahtBot renamed this:
    ci: Better tidy errors
    ci: Better tidy errors
    on Dec 15, 2023
  4. DrahtBot added the label Tests on Dec 15, 2023
  5. DrahtBot added the label CI failed on Dec 15, 2023
  6. maflcko force-pushed on Dec 15, 2023
  7. DrahtBot commented at 12:04 AM on March 14, 2024: contributor

    <!--2e250dc3d92b2c9115b66051148d6e47-->

    🤔 There hasn't been much activity lately and the CI seems to be failing.

    If no one reviewed the current pull request by commit hash, a rebase can be considered. While the CI failure may be a false positive, the CI hasn't been running for some time, so there may be a real issue hiding as well. A rebase triggers the latest CI and makes sure that no silent merge conflicts have snuck in.

  8. ci: Better tidy errors fae70ba00d
  9. maflcko force-pushed on Mar 14, 2024
  10. maflcko marked this as ready for review on Mar 14, 2024
  11. maflcko force-pushed on Mar 14, 2024
  12. maflcko commented at 8:40 AM on March 14, 2024: member

    Fixed the bash logic, rebased, and updated OP

  13. DrahtBot removed the label CI failed on Mar 14, 2024
  14. hebasto approved
  15. hebasto commented at 10:34 AM on March 15, 2024: member

    ACK fae70ba00da27ca5734c88e9964c872c7faa0f78, logs with errors look cleaner.

  16. in ci/test/03_test_script.sh:186 in fae70ba00d
     181 | @@ -182,7 +182,11 @@ if [ "${RUN_TIDY}" = "true" ]; then
     182 |  
     183 |    set -eo pipefail
     184 |    cd "${BASE_BUILD_DIR}/bitcoin-$HOST/src/"
     185 | -  ( run-clang-tidy-"${TIDY_LLVM_V}" -quiet -load="/tidy-build/libbitcoin-tidy.so" "${MAKEJOBS}" ) | grep -C5 "error"
     186 | +  if ! ( run-clang-tidy-"${TIDY_LLVM_V}" -quiet -load="/tidy-build/libbitcoin-tidy.so" "${MAKEJOBS}" | tee tmp.tidy-out.txt ); then
     187 | +    grep -C5 "error: " tmp.tidy-out.txt
    


    TheCharlatan commented at 10:46 AM on March 15, 2024:

    Could use grep -B 1 -A 5 instead?


    maflcko commented at 10:58 AM on March 15, 2024:

    I think it will always be a guess at the context. I think longer error messages than 5 lines are possible, so if someone needs the full context, they'll have to scroll up either way.

  17. maflcko commented at 10:05 AM on March 19, 2024: member

    rfm? Or does it need more ACKs, or does it need something else?

  18. TheCharlatan approved
  19. TheCharlatan commented at 2:40 PM on March 19, 2024: contributor

    ACK fae70ba00da27ca5734c88e9964c872c7faa0f78

  20. fanquake merged this on Mar 19, 2024
  21. fanquake closed this on Mar 19, 2024

  22. maflcko deleted the branch on Mar 19, 2024
  23. bitcoin locked this on Mar 19, 2025

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