ci: Remove CI_EXEC bloat #27616

pull maflcko wants to merge 2 commits into bitcoin:master from maflcko:2305-ci-exec-bloat- changing 5 files +118 −135
  1. maflcko commented at 12:13 PM on May 10, 2023: member

    CI_EXEC has many issues:

    • It is roughly equivalent to bash -c "$*", meaning that the full command will be treated as a single string, ignoring tokens.
    • It must be put in front of (almost) every command, making it easy to forget, hard to debug the resulting failure, and the code verbose.

    Fix all issues by removing it almost completely.

  2. move-only: Move almost all CI_EXEC code to 06_script_b.sh
    [WARN] The commit is obviously broken and will not run the CI system. In
    the rare case this is hit in a git bisect, just skip the commit.
    
    The goal here was to make it trivial to review with the git option:
    --color-moved=dimmed-zebra
    
    It is required to move everything into one file because "exit 0" will
    otherwise stop working as intended when the containing bash script is no
    longer executed with "source ...".
    
    If there is desire to split up 06_script_b.sh into logical chunks in the
    future, it will also be easier after the following commit.
    fa8a428c92
  3. DrahtBot commented at 12:13 PM on May 10, 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 TheCharlatan
    Concept ACK RandyMcMillan, fanquake

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

  4. DrahtBot renamed this:
    ci: Remove CI_EXEC bloat
    ci: Remove CI_EXEC bloat
    on May 10, 2023
  5. DrahtBot added the label Tests on May 10, 2023
  6. maflcko force-pushed on May 10, 2023
  7. DrahtBot added the label CI failed on May 10, 2023
  8. RandyMcMillan commented at 12:25 PM on May 10, 2023: contributor

    concept ACK

  9. DrahtBot removed the label CI failed on May 10, 2023
  10. ci: Remove CI_EXEC bloat fa01c3c59c
  11. maflcko force-pushed on May 10, 2023
  12. fanquake commented at 5:17 PM on May 10, 2023: member

    Concept ACK

  13. in ci/test/06_script_b.sh:85 in fa01c3c59c
      80 | +  make distclean || true
      81 | +  ./autogen.sh
      82 | +  bash -c "./configure $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG" || ( (cat config.log) && false)
      83 | +  make "${MAKEJOBS}" && cd src/qt && ANDROID_HOME=${ANDROID_HOME} ANDROID_NDK_HOME=${ANDROID_NDK_HOME} make apk
      84 | +  bash -c "${PRINT_CCACHE_STATISTICS}"
      85 | +  exit 0
    


    maflcko commented at 8:12 AM on May 12, 2023:

    Moving the exit 0 may also fix a bug where the CI Pod for ARM64 Android APK [jammy] is left alive even if the test passed.

  14. fanquake requested review from TheCharlatan on May 12, 2023
  15. TheCharlatan approved
  16. TheCharlatan commented at 10:01 AM on May 15, 2023: contributor

    ACK fa01c3c59cbe28be0751c2956609907ecfbcbe49

  17. fanquake merged this on May 15, 2023
  18. fanquake closed this on May 15, 2023

  19. maflcko deleted the branch on May 15, 2023
  20. sidhujag referenced this in commit f777c04792 on May 15, 2023
  21. fanquake referenced this in commit 03a4e8dd4c on May 16, 2023
  22. sidhujag referenced this in commit c1954f199f on May 17, 2023
  23. bitcoin locked this on May 14, 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