Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some minor testing cleanups #9276

Merged
merged 3 commits into from Dec 8, 2016
Merged

Some minor testing cleanups #9276

merged 3 commits into from Dec 8, 2016

Conversation

morcos
Copy link
Member

@morcos morcos commented Dec 4, 2016

  • first commit just roughly orders all of the RPC tests for running time and puts in comments so new tests can be added at approximately the right place. i'm not sure its worth doing this very often.

  • second commit removes setting of relaypriority=0 from the rpc tests. it obviously wasn't necessary if they were passing after the -limitfreerelay change to default to 0.

  • third commit removes the obsolete file run-bitcoind-for-test.sh, but someone should check if I did this correctly, since now that I've removed it from .gitignore, everyones repos will complain that they have an extra file sitting around. i wasn't sure how to clean that up?

let me know if only some of these commits are wanted and i get rid of the unwanted ones.

@fanquake fanquake added the Tests label Dec 4, 2016
@maflcko
Copy link
Member

maflcko commented Dec 4, 2016

utACK. I think you can also remove .bitcoin from the gitignore file.

Edit: 3rd commit is a follow up of #8504

@laanwj
Copy link
Member

laanwj commented Dec 5, 2016

Another minor idea would be to remove explicit -server from the bitcoind command lines. That will catch a problem with the option (e.g. as in #9010) next time.

@maflcko
Copy link
Member

maflcko commented Dec 5, 2016

My guess would be that the gui binary can no longer be used for running the tests after removal of -server?

@maflcko
Copy link
Member

maflcko commented Dec 6, 2016

third commit removes the obsolete file run-bitcoind-for-test.sh, but someone should check if I did this correctly, since now that I've removed it from .gitignore, everyones repos will complain that they have an extra file sitting around. i wasn't sure how to clean that up?

Everyone who cares about a "clean" work dir can delete the file by themself. It will still be generated every time you switch back to a old enough commit, so one could argue to leave the .gitignore patch out of this pull and submit it some time later, but I don't think this is worth it.

@laanwj
Copy link
Member

laanwj commented Dec 6, 2016

My guess would be that the gui binary can no longer be used for running the tests after removal of -server?

Hm good point. So that's why it's being passed? okay

@laanwj
Copy link
Member

laanwj commented Dec 8, 2016

since now that I've removed it from .gitignore, everyones repos will complain that they have an extra file sitting around. i wasn't sure how to clean that up?

I don't think see that as a problem. At least it will make it obvious that there's a redundant file around and that they can delete it. Unlike when you keep it in gitignore.

utACK 30b620c

@laanwj laanwj merged commit 30b620c into bitcoin:master Dec 8, 2016
laanwj added a commit that referenced this pull request Dec 8, 2016
30b620c remove obsolete run-bitcoind-for-test.sh (Alex Morcos)
2a99522 remove relaypriority from rpc tests (Alex Morcos)
e2184cc Reorder RPC tests for running time (Alex Morcos)
@laanwj
Copy link
Member

laanwj commented Dec 8, 2016

If you get a config.status: error: cannot find input file: qa/pull-tester/run-bitcoind-for-test.sh.in` message in configure after pulling this, re-run autogen.sh

@jtimon jtimon mentioned this pull request Feb 1, 2017
codablock added a commit to codablock/dash that referenced this pull request Jan 17, 2018
30b620c remove obsolete run-bitcoind-for-test.sh (Alex Morcos)
2a99522 remove relaypriority from rpc tests (Alex Morcos)
e2184cc Reorder RPC tests for running time (Alex Morcos)

# Conflicts:
#	qa/pull-tester/rpc-tests.py
#	qa/pull-tester/run-bitcoind-for-test.sh.in
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
30b620c remove obsolete run-bitcoind-for-test.sh (Alex Morcos)
2a99522 remove relaypriority from rpc tests (Alex Morcos)
e2184cc Reorder RPC tests for running time (Alex Morcos)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 25, 2019
30b620c remove obsolete run-bitcoind-for-test.sh (Alex Morcos)
2a99522 remove relaypriority from rpc tests (Alex Morcos)
e2184cc Reorder RPC tests for running time (Alex Morcos)
zkbot added a commit to zcash/zcash that referenced this pull request Dec 2, 2020
Backport migration from rpc-tests.sh to rpc-tests.py

Cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#6567
- bitcoin/bitcoin#6523
- bitcoin/bitcoin#6616
- bitcoin/bitcoin#6788
  - Only the commit fixing `rpc-tests.py`
- bitcoin/bitcoin#6791
  - Only the fix to `qa/rpc-tests/README.md`
- bitcoin/bitcoin#6827
- bitcoin/bitcoin#6930
- bitcoin/bitcoin#6804
- bitcoin/bitcoin#7029
- bitcoin/bitcoin#7028
- bitcoin/bitcoin#7027
- bitcoin/bitcoin#7135
- bitcoin/bitcoin#7209
- bitcoin/bitcoin#7635
- bitcoin/bitcoin#7778
- bitcoin/bitcoin#7851
- bitcoin/bitcoin#7814
  - Only the changes to the new .py files in this PR.
- bitcoin/bitcoin#7971
- bitcoin/bitcoin#7972
- bitcoin/bitcoin#8056
  - Only the first commit.
- bitcoin/bitcoin#8098
- bitcoin/bitcoin#8104
- bitcoin/bitcoin#8133
  - Only the `rpc-tests.py` commit.
- bitcoin/bitcoin#8066
- bitcoin/bitcoin#8216
  - Only the last two commits.
- bitcoin/bitcoin#8254
- bitcoin/bitcoin#8400
- bitcoin/bitcoin#8482
  - Excluding the first commit (only affects RPC tests we don't have).
- bitcoin/bitcoin#8551
- bitcoin/bitcoin#8607
  - Only the pull-tester commit, for conflict removal.
- bitcoin/bitcoin#8625
- bitcoin/bitcoin#8713
- bitcoin/bitcoin#8750
- bitcoin/bitcoin#8789
- bitcoin/bitcoin#9098
- bitcoin/bitcoin#9276
  - Excluding the second commit (we don't have the changes it requires).
- bitcoin/bitcoin#9657
- bitcoin/bitcoin#9807
- bitcoin/bitcoin#9766
- bitcoin/bitcoin#9823
zkbot added a commit to zcash/zcash that referenced this pull request Dec 2, 2020
Backport migration from rpc-tests.sh to rpc-tests.py

Cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#6567
- bitcoin/bitcoin#6523
- bitcoin/bitcoin#6616
- bitcoin/bitcoin#6788
  - Only the commit fixing `rpc-tests.py`
- bitcoin/bitcoin#6791
  - Only the fix to `qa/rpc-tests/README.md`
- bitcoin/bitcoin#6827
- bitcoin/bitcoin#6930
- bitcoin/bitcoin#6804
- bitcoin/bitcoin#7029
- bitcoin/bitcoin#7028
- bitcoin/bitcoin#7027
- bitcoin/bitcoin#7135
- bitcoin/bitcoin#7209
- bitcoin/bitcoin#7635
- bitcoin/bitcoin#7778
- bitcoin/bitcoin#7851
- bitcoin/bitcoin#7814
  - Only the changes to the new .py files in this PR.
- bitcoin/bitcoin#7971
- bitcoin/bitcoin#7972
- bitcoin/bitcoin#8056
  - Only the first commit.
- bitcoin/bitcoin#8098
- bitcoin/bitcoin#8104
- bitcoin/bitcoin#8133
  - Only the `rpc-tests.py` commit.
- bitcoin/bitcoin#8066
- bitcoin/bitcoin#8216
  - Only the last two commits.
- bitcoin/bitcoin#8254
- bitcoin/bitcoin#8400
- bitcoin/bitcoin#8482
  - Excluding the first commit (only affects RPC tests we don't have).
- bitcoin/bitcoin#8551
- bitcoin/bitcoin#8607
  - Only the pull-tester commit, for conflict removal.
- bitcoin/bitcoin#8625
- bitcoin/bitcoin#8713
- bitcoin/bitcoin#8750
- bitcoin/bitcoin#8789
- bitcoin/bitcoin#9098
- bitcoin/bitcoin#9276
  - Excluding the second commit (we don't have the changes it requires).
- bitcoin/bitcoin#9657
- bitcoin/bitcoin#9807
- bitcoin/bitcoin#9766
- bitcoin/bitcoin#9823
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
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.

None yet

4 participants