IRC logs for #buildstream for Friday, 2018-11-09

*** juanalday has joined #buildstream00:09
*** xjuan has quit IRC00:22
*** juanalday has quit IRC01:35
*** catonano has joined #buildstream04:12
*** catonano has quit IRC06:01
*** mohan43u has joined #buildstream06:41
*** catonano has joined #buildstream07:07
*** catonano has quit IRC08:19
*** catonano has joined #buildstream08:40
*** phildawson_ has joined #buildstream08:41
*** finn has joined #buildstream09:07
Kinnisoncoldtom: in what sense?  submodules refs are part of the commit in the parent repository and so are "tracked" by git rather than buildstream directly09:08
coldtomah, i think that was a misunderstanding on my part on how git submodules work09:09
KinnisonThat's okay, they're one of the more intricate bits of git :_)09:10
*** toscalix has joined #buildstream09:10
*** WSalmon has joined #buildstream09:14
jjardonvalentind: can you increase the limit of the logs so we can see the failure at https://gitlab.com/BuildStream/buildstream/-/jobs/118249521 ?09:20
jjardonadding `output_limit = 262144` to the config.toml of the manager runner should work09:23
jjardonhttps://www.irccloud.com/pastebin/1AMJCIHX/09:23
jjardonwell, maybe 32768 (32MiB) is enough09:25
*** jonathanmaw has joined #buildstream09:28
valentindjjardon, I realized I do not have access to buildstream-bastion09:30
jjardonvalentind: can you try now?09:37
valentindjjardon, Did you do something?09:37
jjardonvalentind: I have added you public ssh key09:38
valentindDid not work09:38
jjardonvalentind: can you send me it again, please?09:38
valentindjjardon, OK done.09:41
jjardoncheers09:41
*** catonano has quit IRC09:43
benschuberthttps://gitlab.com/BuildStream/buildstream/-/jobs/118434903 somethign happened with the runners? :/09:43
valentindbenschubert, yes sorry09:46
valentindbenschubert, just "retry"09:46
benschubertOK so that's expected? perfect :) thanks!09:46
valentindbenschubert, Yes, sorry I had to restart the bastion and it was not smart enough to just resume builds09:47
*** raoul has joined #buildstream09:47
benschubertGot scared that I had changed something bad that killed the runners :)09:47
jjardonvalentind: did you restart gitlab-runner? not needed; new runners will pickup the new config automatically09:47
valentindjjardon, Oh, I did not know.09:47
valentindWell oops then09:47
jjardonyeah, It's quite neat, but you are right it will fail and not recover if you restart09:48
benschubertAnd if you want to restart gitlab-runner anyways, there is a way of telling it to finish the jobs first :)09:48
valentindjjardon, but it is actually strange there is no way to "commit" changes in the configuration.09:48
benschubertcommiting changes is saving the file (for better or worse...)09:48
valentindbenschubert, how?09:48
benschubertvalentind: SIGQUIT tells the runner to stop accepting new jobs and restart as soon as it is done :)09:49
benschuberthttps://docs.gitlab.com/runner/commands/#signals for reference09:49
valentindReading the configuration file before each build seems like a hack. How do they make sure the save was complete? Editors do not write atomically all modifications. Does gitlab-runner keep track of processes that have the configuration file opened for writing?09:51
benschubertIf I recall well, it watches the file and will reload the configuration on change09:53
benschubertI usually edit the file on the side, then os.rename it09:53
*** catonano has joined #buildstream09:59
KinnisonIf anyone has any views or ideas on correctly solving https://gitlab.com/BuildStream/buildstream/issues/760 given tlater's comment, I'd appreciate it10:00
KinnisonOtherwise I'll probably flail at a solution later10:00
valentindKinnison, what about sys.stderr.write?10:05
Kinnisonvalentind: I'm not sure if messages always go to stderr10:06
Kinnisonvalentind: If they do, then I think you're quite right10:06
valentindI think they go. Look at some test failures, it will show for each command first the "output", and then the "stderr". You can see that status messages go to the stderr, if I recall correctly.10:07
valentindFor example:10:07
valentindProgram stderr was:10:07
valentind[--:--:--][][] START   Loading elements10:07
valentind[00:00:00][][] SUCCESS Loading elements10:07
valentindetc.10:07
Kinnisonright10:08
Kinnisonso the solution is almost certainly just sys.stderr.write()10:08
Kinnisonrather than print()10:08
valentindKinnison, yes.10:08
KinnisonI'll do that in a little bit then, thanks10:09
valentindKinnison, If you look in _frontend/app.y, in _message_handler10:10
valentindIt calls click.echo with err=True10:10
KinnisonAye10:11
*** jonathanmaw_ has joined #buildstream10:29
*** lachlan has joined #buildstream10:30
*** jonathanmaw has quit IRC10:30
jmacI haven't had any reviews of https://gitlab.com/BuildStream/buildstream/merge_requests/911 yet - I'm on holiday next week, so I will only be able to properly respond to comments today.10:43
Kinnisonjmac: Review done, only 3 minor points, should be easy for you10:52
jmacYep, those all look valid and straightforward10:53
jmacThanks for taking a look10:53
Kinnisonnp, I should have done so before, sorry for being so slow10:53
* Kinnison goes back to intricate unpleasant refactoring which will likely be rejected10:54
*** lachlan has quit IRC11:15
Kinnisonbenschubert: is !895 ready for me to re-review now?11:16
gitlab-br-botMR !895: Don't cache sandbox failures https://gitlab.com/BuildStream/buildstream/merge_requests/89511:16
benschubertKinnison: yes please! thanks a lot!11:17
laurenceKinnison, benschubert - re this auto-closing issues when an MR lands, I've also just found out that if you create and MR from an issue using the button, that will also close the issue once the MR is merged11:18
laurenceso the gitlab workflow doesn't really support what we'd ideally like to do with verification11:18
Kinnison:(11:18
laurence(or, at least, what I see as the ideal)11:18
benschubertoh that explains it, thanks a lot :(11:18
laurenceBut the whole gitlab policy looks set for a makeover right now, so let's see what we can do there.11:19
Kinnisonbenschubert: Over-all, looks good.  See the one remaining discussion comment :_)11:21
*** jonathanmaw_ has quit IRC11:27
*** lachlan has joined #buildstream11:37
*** lachlan has quit IRC11:42
*** alatiera_ has joined #buildstream11:42
benschubertOn WSL, the test "test_cache_size_roundtrip" often just "blocks" any idea? :/11:45
Kinnison"blocks" implies that you're hitting a situation where a job hits an exception outside of the normal chain of catching11:45
KinnisonI'll bet a pound to a penny that if you turn on asyncio debugging in the environment you might spot something useful11:46
benschubertOh I see, would you have a link on how to do that? :)11:46
Kinnisonhttps://docs.python.org/3/library/asyncio-dev.html mentions some methods11:47
benschubertthanks!11:47
benschubertAnd thanks for the review, I updated the code and am waiting for it to pass :)11:47
KinnisonCoolio11:48
* Kinnison is battling with Python being too darned dynamic for its own good11:48
*** lachlan has joined #buildstream11:50
*** lachlan has quit IRC12:00
*** lachlan has joined #buildstream12:16
benschuberthttps://gitlab.com/BuildStream/buildstream/-/jobs/118520421 :/ segfaults12:17
tpollardurk12:18
*** catonano has quit IRC12:58
*** catonano has joined #buildstream12:58
*** lachlan has quit IRC13:07
Kinnisonbenschubert: good lord, that's not good13:13
Kinnisonbenschubert: typically you only get that with grpc horror, but I don't see how that could have happened there13:14
*** higgins has joined #buildstream13:18
gitlab-br-botdanielsilverstone-ct opened MR !944 (danielsilverstone-ct/plugin-destroy-debug-to-stderr->master: plugin.py: Redirect DEBUG from `__del__` to `sys.stderr`) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/94413:28
benschubertYeah :/ I don't even know how and if to debug this13:28
KinnisonFirst up, just hit retry and see if it happens again13:28
Kinnisonit *might* have been a runner hiccough13:28
Kinnisonvalentind: If you fancy checking https://gitlab.com/BuildStream/buildstream/merge_requests/944 that'd be super-handy (the Plugin.__del__() thing)13:29
gitlab-br-botvalentindavid approved MR !944 (danielsilverstone-ct/plugin-destroy-debug-to-stderr->master: plugin.py: Redirect DEBUG from `__del__` to `sys.stderr`) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/94413:29
gitlab-br-botvalentindavid merged MR !944 (danielsilverstone-ct/plugin-destroy-debug-to-stderr->master: plugin.py: Redirect DEBUG from `__del__` to `sys.stderr`) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/94413:30
*** finn_ has joined #buildstream13:32
benschubertDoesn't happen again13:33
Kinnisonbenschubert: :(13:33
Kinnisonbenschubert: also :-D13:33
*** finn has quit IRC13:33
benschubertAlso: https://gitlab.com/BuildStream/buildstream/-/jobs/118530442 do some people also see that test failure in their tests?13:33
Kinnisonbenschubert: yes13:34
Kinnisonsee !944  ^^^13:34
gitlab-br-botMR !944: plugin.py: Redirect DEBUG from `__del__` to `sys.stderr` https://gitlab.com/BuildStream/buildstream/merge_requests/94413:34
benschubertoh! thanks! :D13:34
benschubertAre we really using __del__ ? To what purpose in the codebase?13:35
Kinnisondebug output13:35
Kinnisonjust rebase, valentind has merged the fix13:35
Kinnisonvalentind: thanks for that13:35
benschubertYep, I'll do that13:35
benschubertOk so only for debug output so it's not "required" ? (Just thinking that __del__ doesn't guarantee it will ever be called)13:37
KinnisonCorrect13:40
benschubertthanks!13:42
KinnisonNo problem :-)13:43
benschuberthttps://gitlab.com/BuildStream/buildstream/merge_requests/895 is out of WIP is some people have time to review (Thanks Kinnison for the early reviews!)13:49
*** Daedbffe has joined #buildstream13:49
benschubert@juergbi or @tlater[m]  if you have time :)13:50
*** catonano has quit IRC13:57
*** catonano has joined #buildstream14:07
*** finn_ has quit IRC14:14
*** finn has joined #buildstream14:14
*** lachlan has joined #buildstream14:27
KinnisonNexus: You should rebase !937 to get rid of that DEBUG error14:41
gitlab-br-botMR !937: Element path not validated before use https://gitlab.com/BuildStream/buildstream/merge_requests/93714:41
*** alatiera_ has quit IRC14:50
gitlab-br-botdanielsilverstone-ct approved MR !911 (jmac/cas_to_cas_v2->master: Direct CAS-to-CAS import) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/91114:50
*** lachlan has quit IRC14:52
NexusKinnison: ah thanks14:56
*** catonano has quit IRC15:02
*** phildawson_ has quit IRC15:05
*** phildawson_ has joined #buildstream15:05
gitlab-br-botjmacarthur closed issue #574 (Add direct CAS-to-CAS import for _casbaseddirectory.py) on buildstream https://gitlab.com/BuildStream/buildstream/issues/57415:25
gitlab-br-botjmacarthur merged MR !911 (jmac/cas_to_cas_v2->master: Direct CAS-to-CAS import) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/91115:25
*** catonano has joined #buildstream15:39
jmacmartin: On !900 - what happens while waiting for the first operation? Will SIGTERM bypass the new handler, or will it be ignored?15:39
gitlab-br-botMR !900: _sandboxremote.py: Add sigterm handler that sends CancelOperation https://gitlab.com/BuildStream/buildstream/merge_requests/90015:39
*** alatiera_ has joined #buildstream15:39
raoulIf I understood how signal blocking works correctly, it should be blocked until it leaves that handler, and then caught by the original handler15:40
jmacSo if operation_iterator blocks, then I can't cancel it with ^C anymore?15:41
raoulhmm, maybe it should have a timeout. I've done it so if you get the termination signal at the beginning, you wait until you get the operation name so you can actually attempt to cancel it.15:45
jmacYeah, that makes sense15:46
jmacSetting self.operation_name to something should be an atomic operation though, so maybe you could just check it in cancel_operation and do nothing if it's None?15:48
raoulYeah could do that, I guess that depends if you'd prefer buildstream to wait in order to attempt to cancel it15:50
jmacIndeed. I don't know which is the best option.15:50
jmacSo, I'll mark it as approved15:51
gitlab-br-botjmacarthur approved MR !900 (725-job-cancellation-on-remote-builds->master: _sandboxremote.py: Add sigterm handler that sends CancelOperation) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/90015:51
*** dabbill15 has joined #buildstream15:52
jmacbenschubert: I just got the same segfault you did15:52
*** toscalix has quit IRC15:53
mablanchjmac, raoul: I don't know either, I guess I should also be fine to do nothing (not waiting on the first stream message and not cancelling). It's sounds like the server's problem to me.15:54
benschubertjmac: same os? (Debian)15:55
*** finn_ has joined #buildstream15:55
*** finn has quit IRC15:56
tpollardbenschubert: yep debian on master16:07
benschubert:/ seems like I'll need a debian vm for that x')16:07
jmacbenschubert: Yes16:08
tpollardsomething landed in buildstream-docker-images?16:10
*** lachlan has joined #buildstream16:36
*** lachlan has quit IRC16:52
gitlab-br-botBenjaminSchubert opened MR !945 (bschubert/fix-silence-stopiteration-pep-0479->master: source.py: don't let StopIteration propagate to silence() contextmanager) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/94516:52
benschubert^ fix for running on python 3.7 :)16:52
Kinnisonbenschubert: 945 looks plausible to me, but I'd prefer someone more familiar with context managers and python's iterator protocol take a double-checky look16:57
KinnisonWSalmon: perhaps you might?16:57
benschubertKinnison: no worries :) If you want to understand more about it also, the PEP is a good place to start, but I agree, it took me a while to be sure of my fix16:58
KinnisonI kinda grok it all, but I would feel more comfortable if someone else more experienced in python did it.  I consider myself an apprentice pythonista at best16:59
* Kinnison thinks a master or expert needs to check16:59
Kinnisonperhaps an adept16:59
*** tpollard has quit IRC17:00
*** finn_ has quit IRC17:10
*** tiagogomes has quit IRC17:11
*** finn has joined #buildstream17:12
*** finn has quit IRC17:19
*** finn has joined #buildstream17:23
*** Jimlite has joined #buildstream17:24
gitlab-br-botjmacarthur opened MR !946 (jmac/remote_execution_split->master: WIP: Split remote execution from artifact cache) on buildstream https://gitlab.com/BuildStream/buildstream/merge_requests/94617:28
*** abderrahim has joined #buildstream17:28
*** abderrahim4 has quit IRC17:29
*** catonano has quit IRC18:08
*** lachlan has joined #buildstream18:14
*** ajibade has joined #buildstream18:16
*** rdale has quit IRC18:17
*** ajibade_ has joined #buildstream18:37
*** mathieui has joined #buildstream18:42
*** lachlan has quit IRC18:44
*** ajibade has quit IRC19:05
*** ajibade_ has quit IRC19:05
*** xjuan has joined #buildstream19:30
*** lachlan has joined #buildstream19:34
*** lachlan has quit IRC19:43
*** lachlan has joined #buildstream19:57
*** catonano has joined #buildstream20:00
*** revskill has joined #buildstream20:32
*** lachlan has quit IRC20:58
*** juanalday has joined #buildstream21:38
*** catonano has quit IRC21:44
*** Juan_ has joined #buildstream21:46
*** juanalday has quit IRC21:48
*** xjuan has quit IRC22:16
*** toscalix has joined #buildstream22:23
*** xjuan has joined #buildstream22:33
*** catonano has joined #buildstream22:44
*** Juan_ has quit IRC23:10
*** juanalday has joined #buildstream23:10
*** catonano has quit IRC23:13
*** alatiera_ has quit IRC23:36
*** xjuan has quit IRC23:42
*** juanalday has quit IRC23:53
*** juanalday has joined #buildstream23:53

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!