IRC logs for #buildstream for Monday, 2018-07-02

*** Prince781 has joined #buildstream00:17
*** Prince781 has quit IRC01:04
*** Prince781 has joined #buildstream01:05
*** Prince781 has quit IRC01:56
*** Prince781 has joined #buildstream01:58
*** bochecha has quit IRC02:22
*** jsgrant has joined #buildstream03:24
*** Prince781 has quit IRC04:13
*** Prince781 has joined #buildstream04:14
*** Prince781 has quit IRC05:06
*** Prince781 has joined #buildstream05:07
*** Prince781 has quit IRC05:11
*** slaf has quit IRC05:14
*** slaf has joined #buildstream05:16
*** slaf has joined #buildstream05:16
*** slaf has joined #buildstream05:17
*** slaf has joined #buildstream05:17
*** slaf has joined #buildstream05:17
*** slaf has joined #buildstream05:17
*** slaf has joined #buildstream05:18
*** slaf has joined #buildstream05:18
*** slaf has joined #buildstream05:18
*** slaf has joined #buildstream05:18
*** slaf has joined #buildstream05:19
*** slaf has joined #buildstream05:19
*** slaf has joined #buildstream05:19
*** slaf has joined #buildstream05:19
*** slaf has joined #buildstream05:20
*** slaf has joined #buildstream05:20
*** Prince781 has joined #buildstream05:32
*** toscalix has joined #buildstream06:30
*** toscalix has quit IRC06:31
*** toscalix has joined #buildstream06:31
*** Phil has joined #buildstream07:16
*** coldtom has joined #buildstream07:52
*** jonathanmaw has joined #buildstream08:36
toscalixHi08:43
paulsherwoodhi08:43
*** jennis_ is now known as jennis08:51
*** tiago has joined #buildstream08:54
*** tiago has quit IRC08:58
*** tiago has joined #buildstream09:03
*** finn has quit IRC09:15
*** finn has joined #buildstream09:17
*** bethw has joined #buildstream09:21
finnHey09:27
tlatero/ finn09:27
finnhttps://pastebin.com/h7fvfHyU09:28
finnany idea why I get this? ModuleNotFoundError: No module named 'buildstream._artifactcache.casserver'09:28
finnyet my python can find it:09:29
finnhttps://pastebin.com/Sdud0cJw09:29
tlaterWhenever I run into these kinds of things clearing out my entire ~/.local/lib/python* seems to help.09:31
tlaterI believe you probably have an egg file still lying around09:31
tlaterBecause you tried to uninstall buildstream by removing executables09:31
tlaterThis in turn means that parts of the old installation are still around09:32
tlaterAnd probably confuse the hell out of python09:32
tlater(Pip is black voodoo magic)09:32
finnok, time to fry some eggs09:33
* tlater recommends using `pip uninstall` instead of trying to manually uninstall things in the python world.09:33
* tlater recommends that for package managers in general09:33
finnYou mean like this: [finn@aguirre buildstream]$ pip3 uninstall buildstream09:34
tlaterYes09:34
tlaterThough when using pip install you shouldn't need to do that, really09:35
tlaterAlso, on a very related note, why do we always end up frying eggs on this channel?09:35
finnta tlater, just fried my entire ~/.local and it worked09:36
tlater\o/09:37
tlaterOne day I will figure out in detail how people get into this mess and avoid the nuclear option09:37
skullmanIt's one of the reasons I use a container.09:40
finnIt's still misbehaving09:48
finnModuleNotFoundError: No module named 'google.devtools'09:48
finnyet, my buildgrid can find this just fine09:48
* tlater recalls both finn and juergbi packaging a second package with the same name, which potentially screws over simultaneous installations of buildstream and buildgrid09:49
juergbiwith an appropriate __init__.py for the google module, it shouldn't be an issue09:50
finnYou mean like this:09:51
finnfrom pkgutil import extend_path09:51
finn__path__ = extend_path(__path__, __name__)09:51
juergbiit might be missing in some distros09:51
juergbiyes09:51
tlaterjuergbi: Are you sure the two modules aren't placed in the same directory, weirdly overwriting or somehow being put inside each other?09:51
finnjmac, didn't you solve this by removing both google/ folders from buildgrid and buildstream?09:52
finnthen placing a google/ folder into ~/.local/lib/python3.6/site-packages/09:52
jmacHacked around rather than solved but yes09:52
tlaterYeeeah, that doesn't sound like a great install story09:53
finndidn't work for me either09:53
jmacI manually combined the contents of all the google/ directories into site-packages/google09:53
tlaterVery eww09:53
finnI have no site-packages/google folder strangely09:53
finnI wonder if it's trying to pull in a google lib from elsewhere09:54
finn>>> import google09:55
finn>>> import google.devtools09:55
finnTraceback (most recent call last):09:55
finn  File "<stdin>", line 1, in <module>09:55
finnModuleNotFoundError: No module named 'google.devtools'09:55
*** bochecha has joined #buildstream09:56
tlaterfinn: That sounds like you have a system-installed google package :)09:56
finndoes to me too09:57
* tlater thinks the solution is not to have google packages in buildstream/buildgrid 09:57
gitlab-br-botbuildstream: merge request (tiagogomes/issue-289->master: Tiagogomes/issue 289) #521 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/52109:57
finnsomeone else will run into this09:57
paulsherwoodhttps://felixge.de/2013/03/11/the-pull-request-hack.html09:58
finnI think it's because of: /lib/python3.6/site-packages/09:58
tlaterYep, if we want anyone to use this we'll need a better way to package this google stuff09:58
paulsherwoodhttps://twitter.com/havocp/status/98859257225897574409:59
skullmaninteresting article paulsherwood10:01
* paulsherwood thought so, and posted it here because he's a bit worried that maybe buildstream is not being sufficiently open for contributors10:05
skullmancircumstances differ so different projects have different requirements, It's food for thought but I wouldn't recommend just going ahead and doing it, the commentary rightly points out that you still need *some* barrier to entry, but some are just "it compiles, meets the style, isn't just churn, and doesn't change ABI"10:08
paulsherwoodack10:09
jmac'meets the style' is often a difficult one for newcomers to figure out10:13
paulsherwoodtrue. and then there are the documentation debates10:14
finnso juergbi, I have the cas server set up, I'm getting bst to send bgd commands. I've set it up so that it will send BuildBox everything but a command to execute. I then pass in the input_root_digest. I then leave it running whilst I open a new terminal10:31
finnThe fuse directory I'm supposed to be mounting to is empty10:31
juergbican you try it using only local CAS, without a CAS server?10:32
finnI've inspected the virtual directory hash that jmac sends me and it indeed contains some kind of directory structure10:32
juergbito figure out whether it's an issue with fetching the blobs or whether it's a more general issue10:32
finnWould this mean that jmac would need to change his bst client to be sending hashes to some local directory too?10:33
jmacI would just run the worker and buildbox on the artifact server10:34
juergbior on the machine with the bst client10:34
jmacYes, that would be even more direct10:34
juergbiyou can directly point to ~/.cache/buildstream/artifacts/cas10:35
finnI am running everything on my local machine already10:35
finnMounted10:43
finnWould you expect to see fuse/bin/sh ?10:43
jmacYes, if it's the hash you gave me earlier, you should have a bin/sh which is a symlink to busybox.10:47
finnI have a bin/busybox10:47
jmacAre you trying to use dee8bff55be7a56b8f42b2869a0ce47bfa1b65bbd6e00edffc9002f5714e7b3b ?10:48
finnyes10:49
jmacThat does contain the symlinks; I can extract them with castool10:49
finnagreed10:50
finnI can see the symlink too your cas-inspector10:50
finnname: "sh" target: "busybox"10:51
finnI can run /bin/busybox through BuildBox10:53
finnAnd capture the output help page from it10:54
finnAny idea why this wouldn't work? /bin/busybox ls10:54
finnbwrap: execvp /bin/busybox ls: No such file or directory10:54
finnah got it nvm10:55
finnInteresting how the symlinks aren't working though10:56
juergbifinn: symlink is buildbox code issue, will fix that11:05
*** bochecha has quit IRC11:05
*** bochecha has joined #buildstream11:06
finnok let me know when that's in and I can continue testing11:07
*** bochecha has quit IRC11:10
*** bochecha has joined #buildstream11:11
*** cs_shadow has joined #buildstream11:21
gitlab-br-botbuildstream: merge request (phil/436-add-ubuntu-install-intructions->master: Phil/436 add ubuntu install intructions) #525 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/52512:58
juergbifinn: I've pushed symlink support to my wip branch13:00
finnthanks13:00
finnwill test rn13:00
jmacI'm going to need to install BuildBox to do more testing13:03
jmacWould you expect it to build correctly on stock Debian 9?13:03
finnNew output >> autoreconf: 'configure.ac' or 'configure.in' is required13:06
gitlab-br-botbuildstream: merge request (valentindavid/331_include->master: WIP: Add support for include in project.conf) #471 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/47113:06
finnalso jmac, I added the proper ActionResult to the repo now13:06
jmacGreat13:07
juergbijmac: with grpc 1.12 or 1.13 built from source, yes13:08
juergbiunfortunately, that's only in debian experimental. stable/testing/unstable are many releases behind13:09
jmacAh.13:09
finnjuergbi, https://pastebin.com/HXtEwWgQ13:09
juergbifinn: might this be a working directory issue?13:10
finnoh, append a cd /tmp first or something13:11
juergbiif that's where your configure.ac is13:11
juergbiI'll add a --chdir option to buildbox13:11
juergbipushed --chdir option13:14
finnthanks, that was quick13:14
finnjuergbi, https://pastebin.com/ZmFjeAfD13:27
gitlab-br-botbuildstream: merge request (phil/436-add-ubuntu-install-intructions->master: WIP: Phil/436 add ubuntu install intructions) #525 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/52513:32
*** flatmush has joined #buildstream13:47
gitlab-br-botbuildstream: merge request (phil/436-add-ubuntu-install-intructions->master: WIP: Phil/436 add ubuntu install intructions) #525 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/52513:49
gitlab-br-botbuildstream: merge request (phil/436-add-ubuntu-install-intructions->master: Phil/436 add ubuntu install intructions) #525 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/52513:50
flatmushI need to build a minimal Linux distribution using BuildStream, likely just Linux+BusyBox type thing, can anyone point me in the right direction?13:52
coldtomflatmush: there's a link to an example of pretty much Linux+BusyBox in the documentation, here's the repo: https://gitlab.com/BuildStream/buildstream-examples/tree/master/build-x86image13:56
flatmushcool, thanks13:57
finnjuergbi, is this bug likely in BuildBox or something we're not setting up correctly?14:03
*** bethw has quit IRC14:07
jmacjuergbi: I'm now building in a chroot with grpc 1.13 and I'm getting this: https://pastebin.com/RnvwFVsH - looks like google/protobuf should exist but doesn't. Any ideas?14:07
finnjmac, that's unusual14:08
finnAfter installing grpc 1.13, that lib exists on my machine...14:09
finnif it's just the proto it wants, could you copy it over for now?14:09
jmacgrpc now no longer compiles (it did before)14:13
finnif you make a pastebin of your setup, I can take a look14:14
jmacNot sure what you mean by 'my setup'14:20
jmacBut if it's looking for google/protobuf/descriptor.proto, that file does not exist in any protobuf library I have14:22
finnI just meant the steps you were taking so I could repeat14:23
jmacIt's quite a long set of steps from the creation of a chroot14:24
finnhttps://github.com/google/protobuf/blob/master/src/google/protobuf/descriptor.proto14:24
finncan't you just copy that over?14:24
jmacI could try14:24
finnI think originally I installed grpc from source using this repo on my last machine14:25
gitlab-br-botbuildstream: merge request (valentindavid/331_include->master: WIP: Add support for include in project.conf) #471 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/47114:26
jmacYou installed grpc from https://github.com/google/protobuf?14:27
finnSorry, I meant I installed the protobuf library using this14:28
gitlab-br-botbuildstream: issue #452 ("Mistyped urls can cause a stack trace") changed state ("opened") https://gitlab.com/BuildStream/buildstream/issues/45214:28
jmacComplains about having been built with a different version of protoc14:29
finnI installed grpc from source too: https://github.com/grpc/grpc14:29
jmacYes, I've got that14:29
finnand you tried this? https://github.com/google/protobuf/blob/master/src/README.md14:30
*** tristan has joined #buildstream14:32
jmacI'm trying that now. Previously I was using the debian-supplied protocol buffer libraries, I think14:32
jmacThat builds and installs fine but meson/ninja is still looking in the local directory for google/protobuf/descriptor.proto14:38
gitlab-br-botbuildstream: merge request (phil/436-add-ubuntu-install-intructions->master: Phil/436 add ubuntu install intructions) #525 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/52514:43
gitlab-br-botbuildstream: merge request (tiagogomes/issue-289->master: Tiagogomes/issue 289) #521 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/52114:45
*** bethw has joined #buildstream14:49
gitlab-br-botbuildstream: issue #453 ("Testing locally fails due to wrong import order") changed state ("opened") https://gitlab.com/BuildStream/buildstream/issues/45314:53
*** flatmush has quit IRC15:03
gitlab-br-botbuildstream: merge request (dp0/453/import-order->master: Reorder app.py imports) #526 changed state ("opened"): https://gitlab.com/BuildStream/buildstream/merge_requests/52615:03
gitlab-br-botbuildstream: issue #289 ("Need better errors when running something on nothing") changed state ("closed") https://gitlab.com/BuildStream/buildstream/issues/28915:15
gitlab-br-botbuildstream: merge request (tiagogomes/issue-289->master: Tiagogomes/issue 289) #521 changed state ("merged"): https://gitlab.com/BuildStream/buildstream/merge_requests/52115:15
laurencejmac, when you have 2 mins, please could you update this ticket re protobuf https://gitlab.com/BuildStream/buildstream/issues/43115:18
laurencewondering if this still impacts you atm15:18
jmacYes it does and I don't have anything to update it with15:18
finnI can get a bit further with BuildBox now, though it seems to just hang:15:34
finnhttps://pastebin.com/PMSkCbrg15:34
finnIt gets to that last part and just stops, not returning me a digest15:34
jmacand previously, when you were just running 'ls' or something would you get a digest from that?15:37
finnexactly15:37
jmacHmm, odd15:37
jmacIn unrelated good news I have a buildbox binary15:37
finnha, now you get to test the chain15:38
finnwondering actually if buildbox has gotten into a weird state, I'm getting this now: buildbox: ../buildbox.cc:989: void flush_to_cas(inode*): Assertion `fd >= 0' failed.15:39
finnbuildbox: ../buildbox.cc:989: void flush_to_cas(inode*): Assertion `fd >= 0' failed.15:39
finnbuildbox: ../buildbox.cc:989: void flush_to_cas(inode*): Assertion `fd >= 0' failed.15:39
finnbuildbox: ../buildbox.cc:989: void flush_to_cas(inode*): Assertion `fd >= 0' failed.15:39
finnsorry, that meant to be a pastebin15:39
*** finn has quit IRC15:40
* tlater kindly points finn to https://hastebin.com/, as pastebin's page layout is awful.15:40
*** finn has joined #buildstream15:41
*** Phil has quit IRC16:51
*** Phil has joined #buildstream16:51
*** toscalix has quit IRC16:51
coldtomcan someone review this MR please? https://gitlab.com/BuildStream/buildstream/merge_requests/51816:53
*** phildawson has joined #buildstream16:54
*** Phil has quit IRC16:55
*** phildawson has quit IRC16:57
*** bethw has quit IRC17:00
*** coldtom has quit IRC17:02
jmacOh, he's gone17:03
jmacI left a comment anyway17:03
*** tristan has quit IRC17:07
*** jonathanmaw has quit IRC17:15
*** Prince781 has quit IRC17:18
*** Prince781 has joined #buildstream17:20
*** jennis has quit IRC17:33
*** jsgrant has quit IRC17:59
*** jennis has joined #buildstream18:32
*** Prince781 has quit IRC18:37
*** Prince781_ has joined #buildstream18:38
*** Prince781_ has quit IRC19:00
*** Prince781 has joined #buildstream19:01
*** Prince781 has quit IRC19:37
*** Prince781 has joined #buildstream19:38
*** Prince781 has quit IRC21:59
*** Prince781 has joined #buildstream21:59
*** bochecha has quit IRC22:36
*** bochecha has joined #buildstream22:36
*** bochecha has quit IRC22:40
*** bochecha has joined #buildstream22:41

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