test: check for invalid `-prune` parameters #22684

pull theStack wants to merge 1 commits into bitcoin:master from theStack:202108-test-check_invalid_prune_parameters changing 1 files +21 −0
  1. theStack commented at 6:37 PM on August 11, 2021: member

    This small PR adds missing test coverage for invalid -prune parameter values / combinations:

    https://github.com/bitcoin/bitcoin/blob/77e23ca945030d557559a7391cb8bd368693548c/src/init.cpp#L926-L928

    https://github.com/bitcoin/bitcoin/blob/77e23ca945030d557559a7391cb8bd368693548c/src/init.cpp#L935-L937

    https://github.com/bitcoin/bitcoin/blob/77e23ca945030d557559a7391cb8bd368693548c/src/init.cpp#L844-L849

    Not sure if the tests fit into feature_config_args.py or should rather be moved into feature_pruning.py; the latter though seems to be run less often due to being very memory-hungry.

  2. DrahtBot added the label Tests on Aug 11, 2021
  3. fanquake commented at 4:29 AM on August 15, 2021: member

    @ryanofsky any opinion on where these tests should go? I'm not sure feature_config_args.py is the right place.

  4. laanwj commented at 2:26 PM on August 16, 2021: member

    Concept ACK. Thanks for adding tests.

    As these are pruning-specific, I think it would be clearest to group them with the pruning tests, not the general argument/configuration tests.

  5. test: check for invalid `-prune` parameters e2ff385e13
  6. theStack force-pushed on Aug 16, 2021
  7. laanwj commented at 3:14 PM on August 16, 2021: member

    Code review ACK e2ff385e138562fb3e1cc63bdd58715a2d8bad98

  8. DrahtBot commented at 4:10 PM on August 16, 2021: member

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--2502f1a698b3751726fa55edcda76cd3-->

    Coverage

    Coverage Change (pull 22684, ffa8e6c828622c5011a2e43c028196bb57d2aadc) Reference (master, 42b00a37580a11fb)
    Lines -0.0113 % 83.9607 %
    Functions +0.0000 % 76.0762 %
    Branches +0.0015 % 52.5537 %

    <sup>Updated at: 2021-08-16T16:10:13.125878.</sup>

  9. MarcoFalke commented at 4:14 PM on August 16, 2021: member

    Looks like feature_pruning is excluded from the coverage reports as one of the extended tests.

  10. MarcoFalke referenced this in commit b935abb9eb on Aug 16, 2021
  11. MarcoFalke commented at 4:18 PM on August 16, 2021: member

    I merged this in commit b935abb9eb2eeaceb5621e110e1889c2ce1b7734, but GitHub didn't close this pull request

  12. MarcoFalke commented at 4:26 PM on August 16, 2021: member
  13. MarcoFalke closed this on Aug 16, 2021

  14. MarcoFalke commented at 1:18 PM on August 17, 2021: member

    Reply from staff:

    I went through our logs and was able to verify what you described here. Sometimes we have a slight database glitch that causes some pull requests to misbehave like this.

    There's a workaround that some of our users have come up with - if you add a label and then remove the label, it will often update the status to closed.

    In the meantime, I've reached out to our engineering team to help investigate further. While we don’t yet have a specific ETA, we’ll be sure to update you as soon as there’s any news to share.

  15. sidhujag referenced this in commit 974854ffdb on Aug 20, 2021
  16. DrahtBot locked this on Aug 18, 2022

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

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