19:00:20 #startmeeting 19:00:20 Meeting started Thu Apr 5 19:00:20 2018 UTC. The chair is wumpus. Information about MeetBot at http://wiki.debian.org/MeetBot. 19:00:20 Useful Commands: #action #agreed #help #info #idea #link #topic. 19:00:24 #bitcoin-core-dev Meeting: wumpus sipa gmaxwell jonasschnelli morcos luke-jr btcdrak sdaftuar jtimon cfields petertodd kanzure bluematt instagibbs phantomcircuit codeshark michagogo marcofalke paveljanik NicolasDorier jl2012 achow101 meshcollider jnewbery maaku fanquake promag provoostenator 19:00:26 hi 19:00:29 hi 19:00:31 hi 19:00:35 yo 19:00:36 This week's high-priority-for-review stats: 11857 got a few rounds of review (me, ryanofsky and sjors), 12560 went horribly under-reviewed (with only two comments from me and one from jimpo this week, no real reviews!), 11775 got one round of review from jimpo (which I missed until today, sorry about that!). MVP: jimpo. Overall rating: Needs Significant Improvement (for everyone except jimpo, for jimpo: Good Job!). 19:00:36 wat 19:00:39 hi 19:01:03 Hi 19:01:08 #topic high priority for review 19:01:18 hi 19:02:30 I mean no point nominating new things if its not gonna get any additional review. Might as well just directly ping jimpo and ask him to take a look. 19:02:36 well, I guess we need to keep it at the current list then, if the current ones don't get enough review we certainly shouldn't add more :) 19:02:39 hi 19:02:57 This PR fixes a null pointer deref that's currently in master: https://github.com/bitcoin/bitcoin/pull/12836 19:03:16 ^ Needs rebase 19:03:30 hi 19:04:17 if something fixes an important issue such as a null pointer dereference (an existing one, not a potential one), please mention that in the PR title! 19:04:30 achow101, if you rebase psbt I'd nominate it for high prio, not sure you have the time to carry it right now 19:04:41 "Make WalletInitInterface and DummyWalletInit private" really doesn't communicate that 19:04:51 Also, those fixes should go in without having them to put on high-prio 19:04:53 instagibbs: I'll try to do that later today or tomorrow 19:05:06 yes, apart from needing rebase it seems to have enough review to go in 19:05:18 indeed 19:05:29 wumpus: maybe he wasn't aware it fixed that 19:05:41 but please, don't hide fixes in refactor PRs 19:05:43 hi. 19:05:45 meshcollider: right , okay 19:06:18 I think he wasn't aware of the bug that he fixed when he opened the PR 19:06:57 I see MarcoFalke already improved the title 19:07:16 #topic Slow unit test/Run unit tests in parallel 19:07:17 jimpo: thanks for the reviews 19:07:49 I thought that running the unit tests in parallel (similar to how the functional tests are run in parallel) is a free win 19:08:03 MarcoFalke: is that possible with boost? 19:08:07 Seems like they can be parallelized even on a single core 19:08:17 https://www.boost.org/doc/libs/1_57_0/libs/test/doc/html/open-issues.html 19:08:18 yea, most of them use our globals in them 19:08:19 MarcoFalke: i must admit, I kinda grumbled looking at your PR. Seems like it's really just a huge failure of the boost framework 19:08:26 we're a *long way* off from being able to do that, no? 19:08:26 jonasschnelli: I adapted the google parallel tests wrapper 19:08:37 I hope it won't cause any ugly race conditions and such 19:08:44 we have so many intermittent travis failures as is :/ 19:08:47 BlueMatt: It works for me 19:08:51 at this point I'd prefer more stable tests to faster ones 19:08:52 AFAIK boost test can't be run in parallel... 19:08:53 at least locally 19:09:17 You spin up different processes of course 19:09:20 oh, sorry, i didnt realize they were separate processes, was thinking no way in hell separate threads works 19:09:25 ohh smart 19:09:27 jonasschnelli: iirc MarcoFalke's PR creates a wrapper that runs them individually, in parallel 19:09:34 > I'd prefer more stable tests to faster ones 19:09:40 PR #? 19:09:43 like test_bitcoin -t wallet/t1 & test_bitcoin -t wallet/t2 19:09:48 We need faster too! Travis PR builds are timing out all over the place 19:10:15 jnewbery: that is a wine issue. Not sure if we can do much about it 19:10:21 Yes. The amount of tests we added during the last year made SAS CI pretty hard 19:10:29 I looked to realize I know not enough of wine to be of any use 19:10:32 not to mention the Travis backlog has been pretty deep lately 19:10:34 jnewbery: I was afraid of some race condition fest, but he spawns multiple processes, so that concern is gone 19:10:55 what pr number? 19:11:07 #12831 19:11:07 #12831 19:11:09 https://github.com/bitcoin/bitcoin/issues/12831 | [WIP] Run unit tests in parallel by MarcoFalke · Pull Request #12831 · bitcoin/bitcoin · GitHub 19:11:11 https://github.com/bitcoin/bitcoin/issues/12831 | [WIP] Run unit tests in parallel by MarcoFalke · Pull Request #12831 · bitcoin/bitcoin · GitHub 19:11:18 Oh Chaincode Labs is willing to sponsor us additional 10 jobs for travis 19:11:32 I hope that goes through until next week 19:11:37 MarcoFalke: nice! 19:11:38 pulling in parallel seems like huge overkill though 19:11:57 That's what I just thought 19:12:12 MarcoFalke: nice, but does offering travis more money help? afaik what cfields said, it doens't 19:12:29 didn't jeremy start on a replacement for boost_test at one point? 19:12:36 yes, I've tried before, but by all means try again! 19:12:36 yes... 19:12:38 wumpus: No, it will only increase the number of jobs 19:12:45 So it clears the backlog faster 19:12:58 wumpus: I guess money means going away from free OS travis to private support which seems to be slower even if you pay a lot? I may be wrong though. 19:12:59 It doesn't increase the quality or anything 19:13:17 jonasschnelli: No it is a out-of-band update 19:13:30 #8650 19:13:32 https://github.com/bitcoin/bitcoin/issues/8650 | Make tests much faster by replacing BOOST_CHECK with FAST_CHECK by JeremyRubin · Pull Request #8650 · bitcoin/bitcoin · GitHub 19:13:36 MarcoFalke: Okay. Good to know. 19:13:42 $$$ = more parallelism at the travis job level 19:13:47 MarcoFalke: the issue that we had before is that they had no option for extra-paid open-source projects. Just paid and free. Maybe that's changed recently? 19:14:04 cfields: I contacted the support 19:14:14 They don't have anything listed on the public website/plans 19:14:34 MarcoFalke: huh. I guess it's new then. Great :) 19:14:50 apache or someone did it a few years ago, I am just trying the same 19:14:59 Cool :) 19:15:03 great 19:15:06 jamesob, i seem to remember the threshold for payed support being better than the free support for oss being pretty high 19:15:08 hell yes, go for it 19:15:26 8650 looks after a huge win. 19:15:31 Doing a wholesale replacement of the test framework seems not a short term solution and perpendicualr to running the tests in parallel 19:15:50 thanks chaincode for the travis jobs! 19:15:58 jtimon: +1 19:16:24 8650 seems like WIP 19:16:26 MarcoFalke: agree, would be a longer-term concern, if it can be done with boost test that's preferable 19:16:49 MarcoFalke: I only mentioned it because it'll probably be done at some point anyway. And if so, we'd want to write it with parallelism in mind. 19:16:54 for now at least 19:16:59 8650 loses boost test features 19:17:06 MarcoFalke: i can't believe that what we need from parallel can't be done with 20 lines of bash 19:17:11 e.g. logging what values mismatch 19:17:34 sipa: yes - just list the test suites, then distribute them over processes 19:17:41 agree 19:17:58 I can't write bash, so someone else has to volunteer 19:18:00 sounds fairly doable in bash, or at least python 19:18:07 MarcoFalke: i hereby volunteer 19:18:13 the current thing is python 19:18:18 20 lines of python sounds preferable... 19:18:23 python is preferable to me 19:18:27 at least I can help review and maintain it 19:18:28 ugh, y'all bash-haters 19:18:33 aj: It has nice features such as a cache for the run times 19:18:34 aj hereby volunteered :p 19:18:52 sot the sorting would be done automatically and based on your specs 19:19:27 MarcoFalke: ok, 22 lines of bash :) 19:19:34 IMO the whole testing system is already pretty complex. I wouldn't set the burden higher 19:19:42 sipa: Pull requests very welcome :) 19:19:50 anyway, i'll see what i can do 19:20:05 ok, so we should look at 12831 19:20:18 And the one sipa proposes 19:20:18 #12831 19:20:21 https://github.com/bitcoin/bitcoin/issues/12831 | [WIP] Run unit tests in parallel by MarcoFalke · Pull Request #12831 · bitcoin/bitcoin · GitHub 19:20:28 #????? 19:20:34 tba 19:20:41 at what grain does 12831 do parallelism? per file? boost test case? 19:20:52 jamesob: Whatever you like 19:20:52 jamesob: one test case per process 19:20:58 Currently ^ 19:20:58 per test suite, which is the only parallelism that makes sense 19:21:37 I guess finer (case) would result in concurrency issue 19:21:43 no... 19:21:47 ^ 19:21:56 they're all in separate processes 19:22:04 Have we made sure there are no dependencies between cases? 19:22:06 concurrency doesn't even come into the pictire 19:22:09 that sounds like a ton of overhead 19:22:19 launcing a process for every test case 19:22:23 wumpus: 250 process creations. 19:22:24 cases should be independent of each other 19:22:25 ? 19:22:27 yes 19:22:42 test suite is the file, test case is the function (and each case has many checks) 19:22:45 achow101: Yes. But are they (ex. wallet test)? 19:23:06 But however, suite is what we want not cases 19:23:11 *suites 19:23:21 so, the tests can be built as a library... 19:23:23 The savings from --jobs=2 eat all the overhead from running in 250 processes 19:23:30 sounds like a better granularity to me too 19:23:42 in any case we need to get rid of the txt file with all the test cases 19:23:45 and generate that automatically 19:23:46 Agree 19:23:49 Yes. 19:24:02 that seems easy 19:24:09 (same should be done for the functional test IMO, *OT* though9 19:24:17 too easy to forget a test now 19:24:19 we can grep for test cases/suites 19:24:46 wumpus: If we keep the list it would be linted on travis of course. *ducks* 19:24:56 not sure how it works, but if boost provides a reasonable api that let us fork() into each suite, we could write our own test_main.cpp to do so, no? 19:25:02 jonasschnelli: yes, there were plans for that too, embedding some metadata in a header at the top of the py files, and automatically generating the lists, but orthogonal :) 19:25:10 MarcoFalke: :-( 19:25:19 +1 :( 19:25:36 Fine 19:26:03 wumpus: if we have one dir with all the cases and only that, it should be simple, perhaps we want to maintain the list of extra ones to skip the slow suites by default 19:26:25 jtimon: there are some other parameters: sort order, and which list it goes into 19:26:40 jtimon: but anyhow off topic now 19:26:42 Other topics 19:26:44 topic proposal: multiwallet merge (luke-jr brought this up last time while I was not here) 19:26:44 ? 19:26:54 #topic multiwallet GUI 19:27:03 But I guess luke-jr is not here now 19:27:19 right, mhmm, I guess you can rename the tests starting with numbers to keep the order, but that's kind of ugly 19:27:33 cfields: I don't think doing it that way would change the challenges 19:27:37 I heard that the merge of #12610 was done while it was still controversial... 19:27:39 https://github.com/bitcoin/bitcoin/issues/12610 | Multiwallet for the GUI by jonasschnelli · Pull Request #12610 · bitcoin/bitcoin · GitHub 19:27:47 jonasschnelli: I'm happy that you merged it 19:27:55 If I did so, my appologies. I only wanted to make progress. 19:27:58 ok 19:27:59 if there's anything to be fixed, file a new PR 19:28:12 PRs to fix design mistakes are welcome 19:28:17 yes 19:28:29 luke-jr overblows that part imo 19:28:52 Yeah it's good that something has been put in, it's been weeks of small disagreement holding it up 19:28:53 jonasschnelli: better to get it in now so it has time to soak. Rough edges can be fixed in future PRs 19:29:14 I overhauled luke-jr's version mainly because of things like this: https://github.com/bitcoin/bitcoin/pull/11383/files#diff-2c15c5b52f35ea388ebab757eaab0f1cR506 19:29:28 but in any case, the idea of open source software is collaborative development, we can't make progress with something like this if it stays a PR forever, and it had a quite lot of review IIRC 19:29:32 Erm this: https://github.com/bitcoin/bitcoin/pull/11383/files#diff-2c15c5b52f35ea388ebab757eaab0f1cR903 19:29:55 yes 19:29:58 Yes. I took also care to keep luke-jr authorship in commits during my overhaul. 19:30:39 Okay. Done with that topic then. Thanks 19:30:42 so it's ok, any other topics? 19:31:08 let me think 19:31:26 I had a topic: merge #10244 19:31:32 but wumpus already did 19:31:32 https://github.com/bitcoin/bitcoin/issues/10244 | Refactor: separate gui from wallet and node by ryanofsky · Pull Request #10244 · bitcoin/bitcoin · GitHub 19:31:39 woo! 19:31:40 i don't have anything 19:31:48 yes, congrats :) 19:31:53 \o/ 19:31:55 yay 19:31:58 nice! Yes. 19:32:01 Good to see that in 19:32:05 dont forget to review High-Priority PRs this week! 19:32:14 ? 19:32:21 #action dont forget to review High-Priority PRs this week! 19:32:44 #endmeeting