test: Make bloom tests deterministic #15324
pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1902-qaBloom changing 4 files +26 −11-
MarcoFalke commented at 10:17 pm on February 1, 2019: membernon-deterministic tests are useless, since a failing test could not be reproduced unless the seed is known.
-
in src/random.h:242 in fa07e4f037 outdated
235@@ -236,4 +236,8 @@ bool Random_SanityCheck(); 236 */ 237 void RandomInit(); 238 239+/** 240+ * Flag to make GetRand return the same number 241+ */ 242+extern bool g_mock_deterministic_tests;
Empact commented at 10:36 pm on February 1, 2019:nit: Declareextern
in test code so it’s not otherwise accessible in the non-test code?
MarcoFalke commented at 7:14 pm on February 2, 2019:Donepracticalswift commented at 10:45 pm on February 1, 2019: contributorConcept ACK
Non-deterministic tests and the sources of non-determinism are documented in #15296.
jonasschnelli added the label Tests on Feb 2, 2019laanwj commented at 10:56 am on February 2, 2019: membernon-deterministic tests are useless, since a failing test could not be reproduced unless the seed is known
:+1: (also people are likely to re-run the tests before investigating deeply so won’t learn anything from a random failure)
test: Make bloom tests deterministic fae169c95eMarcoFalke force-pushed on Feb 2, 2019Empact commented at 8:17 am on February 3, 2019: memberpracticalswift commented at 9:19 am on February 3, 2019: contributorutACK fae169c95e09ddf068dcaebc8170c4f41b02cf66laanwj commented at 11:26 am on February 4, 2019: memberutACK fae169c95e09ddf068dcaebc8170c4f41b02cf66laanwj merged this on Feb 4, 2019laanwj closed this on Feb 4, 2019
laanwj referenced this in commit 424327e1a8 on Feb 4, 2019practicalswift commented at 12:20 pm on February 4, 2019: contributorThanks for merging.
Reviewers of this PR might be interested in reviewing #15327 which makes the test
updatecoins_simulation_test
deterministic.MarcoFalke deleted the branch on Feb 4, 2019MarcoFalke referenced this in commit 9e7f8f6c82 on Feb 5, 2019codablock referenced this in commit a284ce788d on Apr 12, 2020codablock referenced this in commit a06be67a97 on Apr 12, 2020codablock referenced this in commit 4487091d5a on Apr 12, 2020codablock referenced this in commit 60d2b66a07 on Apr 14, 2020codablock referenced this in commit d4065e79ac on Apr 14, 2020ckti referenced this in commit 21c842ba47 on Mar 28, 2021random-zebra referenced this in commit 93f43f0f81 on Apr 14, 2021PastaPastaPasta referenced this in commit 7fe7b445f2 on Jun 27, 2021PastaPastaPasta referenced this in commit 3b989cd794 on Jun 28, 2021PastaPastaPasta referenced this in commit 28b30d5464 on Jun 28, 2021PastaPastaPasta referenced this in commit 4eafb4dea6 on Jun 29, 2021MarcoFalke locked this on Dec 16, 2021
MarcoFalke Empact practicalswift laanwjLabels
Tests
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: 2024-11-17 18:12 UTC
More mirrored repositories can be found on mirror.b10c.me