test: `get_previous_releases.py` use `PREVIOUS_RELEASES_DIR` #36195

pull davidgumberg wants to merge 1 commits into bitcoin:master from davidgumberg:2026-09-08-prevdef changing 3 files +7 −5
  1. davidgumberg commented at 12:56 AM on September 9, 2026: contributor

    test_framework.py already uses PREVIOUS_RELEASES_DIR to set a default directory to find previous releases, so should get_previous_releases.py when fetching them.

    This is more convenient for local development when using multiple worktrees where having $PREVIOUS_RELEASES_DIR set is useful.

    Also allows some CI code to get deleted.

    LLM Usage Disclosure: Qwen3.8-0.5B generated the next 800,000 pages of my epistolary novel while I made this PR.

  2. DrahtBot added the label Tests on Sep 9, 2026
  3. DrahtBot commented at 12:56 AM on September 9, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36195.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process.

    Type Reviewers
    ACK hodlinator, willcl-ark

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. in test/get_previous_releases.py:271 in ab30c9f232
     267 |                          help='remove existing directory.')
     268 |      parser.add_argument('-t', '--target-dir', action='store',
     269 | -                        help='target directory.', default='releases')
     270 | +                        default=previous_releases_path,
     271 | +                        help='target directory, defaults to '
     272 | +                        'environment\'s PREVIOUS_RELEASE_DIR if set, '
    


    willcl-ark commented at 9:20 AM on September 9, 2026:

    In ab30c9f232f0b038b1edd012dcd3a4218e27a103

    tiny typo here in helptext only:

    PREVIOUS_RELEASE_DIR -> PREVIOUS_RELEASES_DIR


    davidgumberg commented at 5:16 PM on September 9, 2026:

    thanks, fixed.

  5. willcl-ark approved
  6. willcl-ark commented at 9:21 AM on September 9, 2026: member

    ACK ab30c9f232f0b038b1edd012dcd3a4218e27a103

    Looks good. I've bumped into this before myself but not bothered to fix, so thanks.

    Left a tiny doc nit.

  7. hodlinator commented at 11:54 AM on September 9, 2026: contributor

    Concept ACK ab30c9f232f0b038b1edd012dcd3a4218e27a103

    Seems quite useful in my workflow as well.

    Would be good to address #36195 (review)

  8. test: get_previous_releases.py use `PREVIOUS_RELEASES_DIR`
    `test_framework.py` already uses `PREVIOUS_RELEASES_DIR` to set a
    default directory to find previous releases, so should
    `get_previous_releases.py` when fetching them.
    
    This is more convenient for local development when using multiple
    worktrees where having `$PREVIOUS_RELEASES_DIR` set is useful.
    
    Also allows some CI code to get deleted.
    ecdf9db906
  9. davidgumberg force-pushed on Sep 9, 2026
  10. davidgumberg commented at 5:27 PM on September 9, 2026: contributor

    Pushed to fix the helptext typo.

  11. hodlinator approved
  12. hodlinator commented at 5:50 PM on September 9, 2026: contributor

    ACK ecdf9db906b4d09e780371fd6e7fe420ecdc87f9

    PREVIOUS_RELEASES_DIR is now in my nix dev env, so I can reset my worktrees without having to patch the ELF files of old releases with the correct ld-linux-x86-64.so.2 from my nix store as often.

    Tested through running a couple of functional tests requiring previous releases and verified that they were using the intended directory outside of the git tree and that the /releases directory inside of the git tree didn't get recreated.

  13. DrahtBot requested review from willcl-ark on Sep 9, 2026
  14. willcl-ark commented at 7:40 PM on September 9, 2026: member

    PREVIOUS_RELEASES_DIR is now in my nix dev env, so I can reset my worktrees without having to patch the ELF files of old releases with the correct ld-linux-x86-64.so.2 from my nix store as often.

    haha amen! I'll also be happy not to have to patch these so often too :D

  15. willcl-ark approved
  16. willcl-ark commented at 7:40 PM on September 9, 2026: member

    ACK ecdf9db906b4d09e780371fd6e7fe420ecdc87f9

  17. fanquake merged this on Sep 10, 2026
  18. fanquake closed this on Sep 10, 2026


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

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