ci: avoid running git diff after patching #29461

pull ryanofsky wants to merge 1 commits into bitcoin:master from ryanofsky:pr/nodiff changing 1 files +4 −4
  1. ryanofsky commented at 3:14 PM on February 21, 2024: contributor

    Drop git diff command so it is easier to run CI locally if git checkout is a worktree. Currently it fails because the directory is not recognized as a git repository.

    The git diff command was added recently in #28359 commit fa07ac48d804beac38a98d23be2167f78cadefae and can be avoided just by teeing the patch to stdout

  2. DrahtBot commented at 3:14 PM on February 21, 2024: 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 maflcko, 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 added the label Tests on Feb 21, 2024
  4. maflcko commented at 3:30 PM on February 21, 2024: member

    It is there to clarify the CI is using different code than the one in the source dir.

    lgtm ACK c835176774a4803132343d5e096cdc7fe902e8eb

  5. ryanofsky commented at 3:59 PM on February 21, 2024: contributor

    It is there to clarify the CI is using different code than the one in the source dir.

    Oh that makes sense. If you think it would be an improvement, I could change the patch command to echo '...' | tee >(patch -p1) so the patch is copied to stdout

  6. maflcko commented at 4:03 PM on February 21, 2024: member

    Sure, anything is fine here.

  7. ci: avoid running git diff after patching
    Drop `git diff` command so it is easier to run CI locally if git checkout is a
    worktree. Currently it fails because the directory is not recognized as a git
    repository.
    
    The `git diff` command was added recently in #28359 commit
    fa07ac48d804beac38a98d23be2167f78cadefae and can be avoided just by teeing the
    patch to stdout
    84388c942c
  8. ryanofsky force-pushed on Feb 21, 2024
  9. ryanofsky renamed this:
    ci: remove unnecessary git diff after applying patch
    ci: avoid running git diff after patching
    on Feb 21, 2024
  10. ryanofsky commented at 4:20 PM on February 21, 2024: contributor

    Updated c835176774a4803132343d5e096cdc7fe902e8eb -> 84388c942cb035fed546eda360ae6b40c6cfac09 (pr/nodiff.1 -> pr/nodiff.2, compare) restoring diff output with tee

  11. maflcko added this to the milestone 27.0 on Feb 22, 2024
  12. maflcko commented at 11:30 AM on February 22, 2024: member

    lgtm ACK 84388c942cb035fed546eda360ae6b40c6cfac09

    I can't review this, since it is written in bash, but given that CI passed and something is printed in the log, I guess this is fine :man_shrugging:

    + export HOST=i686-pc-linux-gnu
    + HOST=i686-pc-linux-gnu
    + tee /dev/fd/63
    ++ patch -p1
    --- a/src/leveldb/db/db_impl.cc
    +++ b/src/leveldb/db/db_impl.cc
    @@ -1028,9 +1028,6 @@ Status DBImpl::DoCompactionWork(CompactionState* compact) {
           stats.bytes_read += compact->compaction->input(which, i)->file_size;
         }
       }
    -  for (size_t i = 0; i < compact->outputs.size(); i++) {
    -    stats.bytes_written += compact->outputs[i].file_size;
    -  }
       mutex_.Lock();
       stats_[compact->compaction->level() + 1].Add(stats);
    + '[' false = true ']'
    + '[' true = true ']'
    

    https://cirrus-ci.com/task/4707541565833216?logs=ci#L326

  13. maflcko commented at 11:30 AM on February 22, 2024: member

    Added milestone, since this is a bugfix

  14. TheCharlatan approved
  15. TheCharlatan commented at 9:24 AM on February 26, 2024: contributor

    ACK 84388c942cb035fed546eda360ae6b40c6cfac09

  16. fanquake merged this on Feb 26, 2024
  17. fanquake closed this on Feb 26, 2024

  18. bitcoin locked this on Feb 25, 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