Skip to content

test: Drop 22.x node from TxindexCompatibilityTest - #28070

Merged
fanquake merged 4 commits into
bitcoin:masterfrom
maflcko:2307-test-blocks-
Aug 1, 2023
Merged

fanquake merged 4 commits into
bitcoin:masterfrom
maflcko:2307-test-blocks-

Conversation

@maflcko

@maflcko maflcko commented Jul 12, 2023 •

Copy link
Copy Markdown
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)

@DrahtBot

DrahtBot commented Jul 12, 2023 •

Copy link
Copy Markdown
Contributor

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

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.

Conflicts

No conflicts as of last run.

@theStack theStack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@maflcko

maflcko commented Jul 22, 2023 •

Copy link
Copy Markdown
Member Author

Good question. If the cached test blockdir is stored in XOR format (#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?

The test creates enough blocks itself, so there is no need to have more.

Also, remove os import.
@maflcko
maflcko force-pushed the 2307-test-blocks- branch from fa8a7cf to fad2c24 Compare July 25, 2023 13:25
MarcoFalke added 3 commits July 25, 2023 15:51
* 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].
-BEGIN VERIFY SCRIPT-
  sed -i 's|].chain_path / "blocks"|].blocks_path|g' $(git grep -l chain_path)
-END VERIFY SCRIPT-
@maflcko
maflcko force-pushed the 2307-test-blocks- branch from fad2c24 to fafe43c Compare July 25, 2023 13:56
@maflcko

maflcko commented Jul 25, 2023

Copy link
Copy Markdown
Member Author

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

@theStack theStack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-review ACK fafe43c

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)

@maflcko

maflcko commented Aug 1, 2023

Copy link
Copy Markdown
Member Author

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

@maflcko
maflcko deleted the 2307-test-blocks- branch August 1, 2023 08:40
@maflcko

maflcko commented Aug 1, 2023

Copy link
Copy Markdown
Member Author

Follow-up in #28195

@bitcoin bitcoin locked and limited conversation to collaborators Jul 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants