test: Drop 22.x node from TxindexCompatibilityTest #28070

pull maflcko wants to merge 4 commits into bitcoin:master from maflcko:2307-test-blocks- changing 10 files +26 −37
  1. maflcko commented at 1:00 PM on July 12, 2023: member

    The node in this test was never really needed, because the compatibility tests shouldn't be used to test previous releases. (The test suite of the previous release itself should be used for that). So remove it.

    Also, other test changes. (See individual commits)

  2. DrahtBot commented at 1:00 PM on July 12, 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 theStack

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

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    No conflicts as of last run.

  3. DrahtBot added the label Tests on Jul 12, 2023
  4. fanquake requested review from theStack on Jul 20, 2023
  5. theStack commented at 9:48 AM on July 22, 2023: contributor

    Concept ACK

    Small note: regarding using clean chain in feature_txindex_compatibility.py, is there any obvious advantage of re-generating blocks on every test-run rather than simply using the pre-generated one that's shared between tests? Probably both approaches are fine, Just wondering what's our general strategy here.

  6. maflcko commented at 9:57 AM on July 22, 2023: member

    Good question. If the cached test blockdir is stored in XOR format (https://github.com/bitcoin/bitcoin/pull/28052), it obviously can't be read by previous tests. So I can just drop the change here, and instead defer it to the later pull. Also, it may be good to include a compat test in the later pull?

  7. test: Use clean chain in MempoolCompatibilityTest
    The test creates enough blocks itself, so there is no need to have more.
    
    Also, remove os import.
    fa7f65b0f8
  8. maflcko force-pushed on Jul 25, 2023
  9. test: Drop 22.x node from TxindexCompatibilityTest
    * The node was only used to migrate the legacy txindex. But now that it
      is known to be working and that 22.x is EOL, it can be dropped.
    * Also, fix a typo to properly check the txindex of node [1], not [2].
    faba4fc325
  10. test: Add blocks_path property to TestNode fa060c15fb
  11. scripted-diff: Use blocks_path where possible
    -BEGIN VERIFY SCRIPT-
      sed -i 's|].chain_path / "blocks"|].blocks_path|g' $(git grep -l chain_path)
    -END VERIFY SCRIPT-
    fafe43cb6c
  12. maflcko force-pushed on Jul 25, 2023
  13. maflcko commented at 4:09 PM on July 25, 2023: member

    Dropped that change for now, to save it for a later pull.

  14. theStack approved
  15. theStack commented at 10:27 PM on July 31, 2023: contributor

    Code-review ACK fafe43cb6c76a5f60194be128a40baf161d39920

    Additional replacement suggestion for the scripted-diff (last commit), to also tackle chain_path + "blocks" concatenations that are done via os.path.join: sed -i 's|].chain_path, "blocks"|].blocks_path|g' $(git grep -l chain_path)

  16. maflcko added the label UTXO Db and Indexes on Aug 1, 2023
  17. maflcko removed the label Tests on Aug 1, 2023
  18. maflcko removed the label UTXO Db and Indexes on Aug 1, 2023
  19. maflcko added the label Tests on Aug 1, 2023
  20. fanquake merged this on Aug 1, 2023
  21. fanquake closed this on Aug 1, 2023

  22. maflcko commented at 8:40 AM on August 1, 2023: member

    Looks like this was merged, so I'll submit the scripted diff in the follow-up

  23. maflcko deleted the branch on Aug 1, 2023
  24. maflcko commented at 10:30 AM on August 1, 2023: member
  25. sidhujag referenced this in commit 9baa01fc43 on Aug 9, 2023
  26. bitcoin locked this on Jul 31, 2024
Labels

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