8000 test: Seed test RNG context for each test case, print seed by maflcko · Pull Request #16978 · bitcoin/bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test: Seed test RNG context for each test case, print seed #16978

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

Merged
merged 1 commit into from
Nov 7, 2019

Conversation

maflcko
Copy link
Member
@maflcko maflcko commented Sep 27, 2019

Debugging failing unit tests is hard if the failure is non-deterministic and the seed is not known.

Fix that by printing the seed and making it possible to set the seed from outside.

@fanquake fanquake added the Tests label Sep 27, 2019
@maflcko maflcko force-pushed the 1909-testSeed branch 3 times, most recently from fa9fb0f to fa24937 Compare September 27, 2019 22:17
@practicalswift
Copy link
Contributor

Concept ACK

@maflcko
Copy link
Member Author
maflcko commented Oct 4, 2019

Addressed feedback by @davereikher

@davereikher
Copy link
Contributor

Tested ACK fae43a9

@DrahtBot
Copy link
Contributor
DrahtBot commented Nov 7, 2019
Needs rebase

maflcko pushed a commit that referenced this pull request Nov 7, 2019
fae43a9 test: Seed test RNG context for each test case, print seed (MarcoFalke)

Pull request description:

  Debugging failing unit tests is hard if the failure is non-deterministic and the seed is not known.

  Fix that by printing the seed and making it possible to set the seed from outside.

ACKs for top commit:
  davereikher:
    Tested ACK fae43a9

Tree-SHA512: 33d848dd1f4180d3664ecf60e9810c2a93590c05276b2c46b1e4fe6e376b45916a46b90c803bb602750ab666da3a05ce499e550024685a90b8cc38fab6667cb8
@maflcko maflcko merged commit fae43a9 into bitcoin:master Nov 7, 2019
@maflcko maflcko deleted the 1909-testSeed branch November 7, 2019 15:20
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Nov 9, 2019
…print seed

fae43a9 test: Seed test RNG context for each test case, print seed (MarcoFalke)

Pull request description:

  Debugging failing unit tests is hard if the failure is non-deterministic and the seed is not known.

  Fix that by printing the seed and making it possible to set the seed from outside.

ACKs for top commit:
  davereikher:
    Tested ACK fae43a9

Tree-SHA512: 33d848dd1f4180d3664ecf60e9810c2a93590c05276b2c46b1e4fe6e376b45916a46b90c803bb602750ab666da3a05ce499e550024685a90b8cc38fab6667cb8
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Oct 19, 2020
Summary:
Debugging failing unit tests is hard if the failure is non-deterministic and the seed is not known.

Fix that by printing the seed and making it possible to set the seed from outside.

Backport of Core [[bitcoin/bitcoin#16978 | PR16978]]

Test Plan: `ninja && ninja check`

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7970
sidhujag pushed a commit to syscoin-core/syscoin that referenced this pull request Nov 10, 2020
…print seed

fae43a9 test: Seed test RNG context for each test case, print seed (MarcoFalke)

Pull request description:

  Debugging failing unit tests is hard if the failure is non-deterministic and the seed is not known.

  Fix that by printing the seed and making it possible to set the seed from outside.

ACKs for top commit:
  davereikher:
    Tested ACK fae43a9

Tree-SHA512: 33d848dd1f4180d3664ecf60e9810c2a93590c05276b2c46b1e4fe6e376b45916a46b90c803bb602750ab666da3a05ce499e550024685a90b8cc38fab6667cb8
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Dec 22, 2021
…print seed

fae43a9 test: Seed test RNG context for each test case, print seed (MarcoFalke)

Pull request description:

  Debugging failing unit tests is hard if the failure is non-deterministic and the seed is not known.

  Fix that by printing the seed and making it possible to set the seed from outside.

ACKs for top commit:
  davereikher:
    Tested ACK fae43a9

Tree-SHA512: 33d848dd1f4180d3664ecf60e9810c2a93590c05276b2c46b1e4fe6e376b45916a46b90c803bb602750ab666da3a05ce499e550024685a90b8cc38fab6667cb8
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Dec 22, 2021
…print seed

fae43a9 test: Seed test RNG context for each test case, print seed (MarcoFalke)

Pull request description:

  Debugging failing unit tests is hard if the failure is non-deterministic and the seed is not known.

  Fix that by printing the seed and making it possible to set the seed from outside.

ACKs for top commit:
  davereikher:
    Tested ACK fae43a9

Tree-SHA512: 33d848dd1f4180d3664ecf60e9810c2a93590c05276b2c46b1e4fe6e376b45916a46b90c803bb602750ab666da3a05ce499e550024685a90b8cc38fab6667cb8
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Dec 22, 2021
…print seed

fae43a9 test: Seed test RNG context for each test case, print seed (MarcoFalke)

Pull request description:

  Debugging failing unit tests is hard if the failure is non-deterministic and the seed is not known.

  Fix that by printing the seed and making it possible to set the seed from outside.

ACKs for top commit:
  davereikher:
    Tested ACK fae43a9

Tree-SHA512: 33d848dd1f4180d3664ecf60e9810c2a93590c05276b2c46b1e4fe6e376b45916a46b90c803bb602750ab666da3a05ce499e550024685a90b8cc38fab6667cb8
furszy added a commit to PIVX-Project/PIVX that referenced this pull request Feb 7, 2022
f8c8a0a test: Seed test RNG context for each test case, print seed (Fuzzbawls)
83743a0 [Tests] Re-enable bloom unit tests (Fuzzbawls)
ca7dec3 replace modulus with FastMod (Martin Ankerl)
50d06a2 More efficient bitsliced rolling Bloom filter (Pieter Wuille)
5d13bf2 Benchmark rolling bloom filter (Pieter Wuille)
079af32 Add tests for CMerkleBlock usage with txids specified (James O'Beirne)
0288335 Consolidate CMerkleBlock constructor into a single method (James O'Beirne)

Pull request description:

  Based on the following upstream PRs:

  - bitcoin#5199 (excluding the RPC functionality)
  - bitcoin#7934
  - bitcoin#11293
  - bitcoin#13176
  - bitcoin#16978

  -----------
  Before:
  ![Image 089](https://user-images.githubusercontent.com/7393257/148452579-233594b2-5d8a-4183-b42a-0ddf16d8bdfe.png)
  ![Image 090](https://user-images.githubusercontent.com/7393257/148452583-7121f985-d0ac-41d8-98cb-aaf30c04de8f.png)

  After:
  ![Image 093](https://user-images.githubusercontent.com/7393257/148452622-1aca6860-d652-4478-89fc-42ff5a904fd9.png)
  ![Image 094](https://user-images.githubusercontent.com/7393257/148452623-7a72f1e9-00d7-4fca-9728-979c29813371.png)

ACKs for top commit:
  furszy:
    diff utACK f8c8a0a
  random-zebra:
    ACK f8c8a0a

Tree-SHA512: 00e3b80a23e5f8e775c4c19a650c9f6777230d3a384ad146bdc2a8fa6c39c0321c60c61181845b29e05cd2fbcf44ddcd0e5497f5e9999bf4233676057cd7e230
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
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.

5 participants
0