Avoid "test_runner.py" script array #11964

issue jonasschnelli opened this issue on December 20, 2017
  1. jonasschnelli commented at 7:20 PM on December 20, 2017: contributor

    The current test runner script array tents to generate git conflicts. Ideally, test scripts would have some metadata while test runner will just read files from the (same?) directory.

    Discussion on IRC: https://botbot.me/freenode/bitcoin-core-dev/2017-12-20/?msg=94891704&page=6

  2. jonasschnelli added the label Tests on Dec 20, 2017
  3. thijstriemstra commented at 11:38 PM on December 20, 2017: none

    [I would love to help out with btc development and am just jumping in on issues related to python development]

    With that being said, adding a comment (#11965) to prevent git conflicts seems ineffective. I'd like to work on a more robust fix but some background info or pointers would be useful.

  4. MarcoFalke commented at 12:13 AM on December 21, 2017: member

    @thijstriemstra At least for me it is effective. I had zero merge conflicts up to now when adding new test scripts. See the related blog post [1] for another example where it worked.

    [1] https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/

  5. MarcoFalke commented at 4:04 PM on December 21, 2017: member

    If someone wants to put all metadata in the test scripts themself, they should include at least:

    • If they are a test script. (Maybe the presence of metadata is sufficient to determine this)
    • Their approximate run time (coarse)
    • Their test category: default (i.e. runs on pulls in travis), extended (i.e. runs on crons in travis)
    • What features they require (wallet, zmq, linux/windows, qt, ipv6, ... ?)
    • Something else ... ?
  6. thijstriemstra commented at 4:48 PM on December 21, 2017: none

    Ideally, test scripts would have some metadata

    What metadata exactly, can you give an example?

  7. jnewbery commented at 10:03 AM on January 3, 2018: member

    I agree with Marco that adding a comment is sufficient here.

  8. MarcoFalke referenced this in commit d38d1a3e75 on Jan 3, 2018
  9. jeffrade commented at 9:23 PM on February 12, 2018: contributor

    If someone wants to put all metadata in the test scripts themself, they should include at least:

    • If they are a test script. (Maybe the presence of metadata is sufficient to determine this)
    • Their approximate run time (coarse)
    • Their test category: default (i.e. runs on pulls in travis), extended (i.e. runs on crons in travis)
    • What features they require (wallet, zmq, linux/windows, qt, ipv6, ... ?)
    • Something else ... ? @MarcoFalke Reading comments and linked IRC discussion, I'd like to work on a PR that attempts to solve the problem(s) here. Is this something still worth working on even though PR 11965 is now merged?
  10. jeffrade commented at 7:34 PM on March 4, 2018: contributor

    Friendly post-0.16-release nudge. Is this still an issue that needs to be addressed? If so, will work on a PR based on Marco's comment above. Thanks!

  11. MarcoFalke referenced this in commit 585db41e9a on Mar 17, 2018
  12. MarcoFalke commented at 8:12 PM on April 11, 2018: member

    I'd say -0. You are more than welcome to work something out, but I can't guarantee that you will find more than one person to review it.

  13. ryanofsky commented at 8:19 PM on April 11, 2018: member

    I can't guarantee that you will find more than one person to review it.

    Seems interesting, I hereby pledge to be the one person to review it.

  14. domob1812 commented at 5:58 PM on May 22, 2018: contributor

    Interesting! How is working going on here? #13285 is my own proposal to simplify and clean up the test array, on a smaller scope. @jeffrade, do you think it would be worth working on the smaller proposal from my side in the mean time, or do you think you will put the metadata in scripts soon-ish?

  15. jeffrade commented at 6:08 PM on May 22, 2018: contributor

    @domob1812 I haven't put much time into this yet, so feel free to go ahead. I will add my ideas in #13285.

  16. jeffrade commented at 7:17 PM on June 15, 2018: contributor

    Since this issue is still open, wanted to show that the code comment in test_runner.py stating not to append new tests at the end of the list to avoid merge conflicts wasn't effective in this instance.

  17. PastaPastaPasta referenced this in commit 8c202017fa on Apr 3, 2020
  18. PastaPastaPasta referenced this in commit 0f937164eb on Apr 3, 2020
  19. MarcoFalke commented at 12:43 AM on April 27, 2020: member

    The feature request didn't seem to attract much attention in the past. Also, the issue seems not important enough right now to keep it sitting around idle in the list of open issues.

    Closing due to lack of interest. Pull requests with improvements are always welcome.

  20. MarcoFalke closed this on Apr 27, 2020

  21. PastaPastaPasta referenced this in commit bccff13841 on Jun 14, 2020
  22. PastaPastaPasta referenced this in commit ee27beff3f on Jun 17, 2020
  23. PastaPastaPasta referenced this in commit 20e64479d7 on Jun 17, 2020
  24. PastaPastaPasta referenced this in commit 605debf096 on Jun 17, 2020
  25. PastaPastaPasta referenced this in commit 19e2de1b22 on Jun 17, 2020
  26. jasonbcox referenced this in commit 334c2a6c1e on Nov 2, 2020
  27. ckti referenced this in commit cfac6ed677 on Mar 28, 2021
  28. MarcoFalke locked this on Feb 15, 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-17 09:15 UTC

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