IRC logs for #buildstream for Tuesday, 2018-11-13

*** skullman has quit IRC00:59
*** skullman has joined #buildstream00:59
*** tristan has joined #buildstream04:14
*** catonano has joined #buildstream04:15
*** catonano has quit IRC04:18
*** catonano has joined #buildstream04:19
*** klaas has joined #buildstream05:01
*** paulsherwood has quit IRC06:13
*** laurence has quit IRC06:14
*** mablanch has quit IRC06:14
*** aiden has quit IRC06:14
*** valentind has quit IRC06:14
*** laurence has joined #buildstream06:15
*** mablanch has joined #buildstream06:16
*** valentind has joined #buildstream06:16
*** aiden has joined #buildstream06:16
*** paulsherwood has joined #buildstream06:19
*** adds68 has quit IRC06:19
*** coldtom has quit IRC06:19
*** coldtom has joined #buildstream06:19
*** adds68 has joined #buildstream06:19
*** tristan has quit IRC06:25
*** catonano has quit IRC06:45
*** mablanch has quit IRC06:49
*** mablanch has joined #buildstream06:50
*** tristan has joined #buildstream06:53
*** lor4x has joined #buildstream08:16
*** rdale has quit IRC08:32
*** rdale has joined #buildstream08:35
*** toscalix has joined #buildstream09:17
*** jonathanmaw has joined #buildstream09:43
*** tristan has quit IRC09:45
*** CTtpollard has joined #buildstream09:58
*** tpollard has quit IRC09:59
*** raoul has joined #buildstream10:04
*** alatiera_ has joined #buildstream10:06
*** lachlan has joined #buildstream10:29
*** jonathanmaw_ has joined #buildstream10:45
*** jonathanmaw has quit IRC10:45
laurenceDoes the buildstream project have a YouTube channel?10:52
laurencetoscalix, you're good with these things ?10:52
laurenceI have edited the videos from the gathering, want to post them somewhere and link to them from the website / wiki / a ML post10:52
toscalixI would open a youtube channel or similar once we have several videos. How many do we have now?10:54
*** CTtpollard is now known as tpollard10:55
laurenceThere are three from the gathering10:55
laurenceBuildStream 101, BuildStream 102, Architecture10:55
laurenceThere is also Vimeo10:56
tpollardsomebody unsurprisingly has the username buildstream on youtube, but I'd still advocate youtube10:56
laurenceOK, will make one called buildstream-tool or similar....will check what the twitter handle decision was...if any11:08
toscalixlaurence: I am not familiar enough with any of them. I haven't admin any. I have added videos to both and they are reliable. License wise though, we might prefer a channel more CC friendly11:08
toscalixsince we do not expect a huge audience11:08
adds68laurence, what about under the gnome youtube channel?11:09
laurencetoscalix, I think youtube is CC friendly? I have seen videos posted their with CC licence, anyway11:11
laurenceadds68, I think it's better to have our own11:11
tpollardyoutube is CC friendly11:11
toscalixthen youtube seems fine11:11
toscalixlet's create our own channel, I would say11:12
laurenceagree11:14
laurencedid we ever get a twitter handle, toscalix ?11:15
toscalixlaurence: no11:15
toscalixit is in todo11:15
laurenceSeem to have been able to create 'BuildStream' channel, using my personal account11:21
laurenceWonder if i can set up others as admins11:21
laurencefirstly, reduce the bus factor !11:21
gitlab-br-botadds68 opened issue #764 (Stack trace when integrating a local plugin) on buildstream https://gitlab.com/BuildStream/buildstream/issues/76411:51
adds68could someone take a look that and see if it's something i am doing that is causing the stack trace? ^ thanks11:52
juergbiWSalmon: I commented on !89711:53
gitlab-br-botMR !897: Updated Workspace CLI https://gitlab.com/BuildStream/buildstream/merge_requests/89711:53
tpollardis https://testcache.codethink.co.uk:11001 down?11:57
*** ctolentino has joined #buildstream11:58
adds68tpollard, it was11:58
adds68tpollard, back up now11:58
tpollardcheers adds6811:59
benschubertAnyone having used bst on windows (WSL)? Running bst build my_element.bst, stays stuck at "loading elements" for multiple minutes (even though I only have one dependency on my element, which then has none)12:02
benschubert4:44 minutes last invocation12:03
Kinnisonbenschubert: if you invoke bst with debugging turned up, does it tell you anything useful?12:05
Kinnisonbenschubert: bst --verbose --debug build my_element.bst12:05
tpollardadds68: hmm, I'm still getting failures to initialise on it12:11
benschuberthttps://gitlab.com/snippets/1777685 just this Kinnison :/12:12
*** jonathanmaw_ is now known as jonathanmaw12:19
juergbibenschubert: 404 on snippet. might strace give any hints? (I think WSL supports strace)12:23
benschubertjuergbi: the 404 should be fixed, I will try after lunch, thanks!12:24
juergbiah, it actually does succeed, not a complete hang12:26
benschubertYeah, which is weird, a complete hang might have been better to debug12:26
juergbifilesystem I/O is a lot slower in WSL, afaik. however, it shouldn't do much with a single dependency, so that can't explain it12:27
benschubertAnd would there be a way of getting the line where an exception is thrown in the logs? I just get a "Failed to link", which is hard to trace back given the number of file operations we do12:27
benschubertYeah, and staging a 1 Gig tar archive is a lot faster12:27
benschubert(Off for food)12:29
juergbibenschubert: you need strace -f to also trace the child processes12:47
*** jonathanmaw_ has joined #buildstream12:51
*** jonathanmaw has quit IRC12:52
adds68does anyone have any idea what this error means?13:13
adds68       provenance.elements = [e.clone for e in self.elements]13:13
adds68    AttributeError: 'function' object has no attribute 'clone'13:13
KinnisonThat suggests something in self.elements is a function rather than an element object13:14
adds68The stack trace is coming from:  File "/home/adds68/.local/lib/python3.7/site-packages/buildstream/_yaml.py",13:14
*** rdale has quit IRC13:15
*** rdale has joined #buildstream13:19
benschubertjuergbi: it seems like it is doing loads of file creation. Why would it do that for loading the elements?13:40
juergbibenschubert: do you see the filenames? what kind of files is it creating?13:41
juergbialso, I assume there is no junction involved, is there?13:41
benschubertThere is a junction yes, and it's file relative to the junction that are being created13:41
benschubert(it's a huge junction)13:41
juergbiah, so it's not just a single dependency after all13:43
juergbithe project pointed to by the junction has to be fetched (if not cached) and then checked out into a temporary directory to be able to access it13:43
benschubertTrue, sorry, it is a single file in another junction. However, the junction is already cached. Is it checked out everytime?13:44
juergbithe temp directory itself is not reused across invocations13:44
juergbithe git clone is cached but as you could use different revisions we can't easily cache the checkout13:44
* Kinnison wonders if adding the capability to buildstream to use pygit2 might help in the case of a junctioned project from git13:45
Kinnisonbzrlib is already python so could be used directly too as an optimisation path13:45
juergbiKinnison: would this allow reading files without actual checkout?13:45
benschubertSo that means operations will get slower as the junction gets a bigger history?13:45
benschubertjuergbi: pygit2 would allow this yes13:45
juergbibenschubert: the history doesn't really matter, but the current working size13:46
benschubertOuch ok13:46
juergbiKinnison: could theoretically be interesting, but the source API doesn't allow access to individual files13:46
Kinnisonjuergbi: Mmm :(13:46
juergbihowever, the planned source cache in CAS should actually help for this13:46
Kinnisonnod.13:47
benschubertAny way to get where an exception was thrown? :/ The log just gives me that a file copy failed13:48
WSalmontlater[m], valentind ^ have you any good tips for this?15:01
*** lachlan has quit IRC15:07
*** lachlan has joined #buildstream15:13
*** lachlan has quit IRC15:20
*** tristan has joined #buildstream15:22
*** lachlan has joined #buildstream15:26
*** alatiera_ has quit IRC15:58
*** alatiera_ has joined #buildstream15:58
*** alatiera_ has quit IRC16:05
*** jonathanmaw has joined #buildstream16:21
*** jonathanmaw_ has quit IRC16:21
valentindWSalmon, benschubert, you want to log every place an exception is raised?16:39
WSalmonno, he basicly wants the full stack trace so he can work out what is happening, is there a option like --debug that can turn this on?16:41
benschubertvalentind: I want, when I get an exception in Buildstream that is caught and printed nicely, get the full stack trace so that I can actually debug it :) (tried with --debug and --verbose but without luck)16:41
*** adds68 has quit IRC16:42
valentindI am not aware of any way to do that.16:44
valentindbenschubert, is your issue reproducible? If so just modify buildstream to not catch the exception the place it prints the error.16:45
valentindbenschubert, could I see the error message?16:46
valentindBecause an error copying file sounds like an issue I am currently fixing.16:46
WSalmonso the way myself and ben deal with this is to change the error type so it acts like a bug and give you the full stack but that is ugly as sin16:46
WSalmondo you do it that way too ben?16:48
valentindWSalmon, yes, I know it is ugly. The problem of issue copying files is that usually it is a problem from the file system. But sometimes it is also a bug. We should not catch bugs. Unfortunately, for this case, it is hard to decide if we need to not catch.16:48
benschubertvalentind: https://gitlab.com/snippets/177779416:48
benschubertYeah, I'd like a real error :/16:48
laurenceBuildStream YouTube channel - https://www.youtube.com/channel/UCU8gOKOs1C_DFBaSvd5HitQ16:48
valentindsymbolic links and compose elements...16:49
valentindbenschubert, It is this issue: #64716:50
gitlab-br-botIssue #647: BuildStream misorders elements in subdirectories of symlinks when link_files called in compose elements https://gitlab.com/BuildStream/buildstream/issues/64716:50
valentindI think.16:50
valentindIf you look at the logs16:50
valentind[00:00:02] FAILURE vm/minimal-systemd-vm.bst: Failed to link '/builds/freedesktop-sdk/freedesktop-sdk/cache/buildstream/build/vm-minimal-systemd-vm-uftjaonx/root -> /builds/freedesktop-sdk/freedesktop-sdk/cache/buildstream/build/vm-minimal-systemd-vm-uftjaonx/root/buildstream/install': [Errno 2] No such file or directory: '/builds/freedesktop-sdk/freedesktop-sdk/cache/buildstream/build/vm-minimal-systemd-vm-uftjaonx/root/buildstream/install/etc/in16:50
valentindit.d'16:50
* WSalmon wonders if it would be hard/tristan blocked to have a --died-ugly option to get bst that made every error more like a "bug"16:50
valentind[00:01:15] FAILURE desktop-platform-image.bst: Failed to link '/builds/freedesktop-sdk/freedesktop-sdk/cache/buildstream/build/desktop-platform-image-8snp170t/root -> /builds/freedesktop-sdk/freedesktop-sdk/cache/buildstream/build/desktop-platform-image-8snp170t/root/buildstream/install': [Errno 2] No such file or directory: '/builds/freedesktop-sdk/freedesktop-sdk/cache/buildstream/build/desktop-platform-image-8snp170t/root/buildstream/install/us16:50
valentindr/etc/OpenCL/vendors'16:50
valentindlaurence, great! I smash that subscribe button!16:51
KinnisonWSalmon: surely that should just be under --debug ?16:51
valentindbenschubert, but in your case it is invalid argument.16:52
laurencevalentind, :)16:54
Kinnisonlaurence: to share an account between users you have to make it a "brand"16:54
Kinnisonlaurence: https://support.google.com/youtube/answer/305628316:54
valentindbenschubert, it looks like an issue staging the artifact. Have you looked at /home/bschubert15/.cache/buildstream/build/test-2iujds_s/root/opt/XXXX/XXXXX/inventory/v17n1?16:55
valentindIs that a directory?16:55
valentindIs that a symlink, does the target directory exist?16:55
benschubertlet me check :) And I +1, this should be done by --debug :D16:56
benschubertvalentind: it's a file with mode "755" that is not owned by my user16:59
benschubertin artifacts/pwd16:59
valentindbenschubert, Ok so I see, you have an artifact that creates it as a file, and another as a directory.16:59
benschubertin artifacts/extract/XXX/bootstrap/.....16:59
benschubertBut, I have a single platform.bst under my element (which doesn't have any source)16:59
valentindbenschubert, no I was talking about the build directory.17:00
benschubertis not existing anymore so I can't check17:01
valentindThe "v17n1" directory17:01
valentindAnnoying. I was not aware build directories were removed when there is an error.17:01
benschubertlet me retry17:02
laurenceKinnison, ta, will look into it17:02
valentindbenschubert, what file system do you use there? ext4?17:10
benschubertntfs exported as samba to a ubuntu machine (WSL with Docker sandbox (a POC I'm working on))17:11
valentindbenschubert, WSL? So not using the linux kernel?17:12
valentindI was trying to find in the linux kernel where it could return EINVAL for a link syscall. But was not finding it.17:12
benschubertNo, except for the build part which runs on ubuntu (the docker vm)17:12
benschubertSorry should have mentionned that before17:13
valentindbenschubert, Is bst running on a WSL or on Linux?17:13
benschubertit definitely works on linux with bwrap17:13
benschubertbst is running on wsl17:13
valentindOh ok.17:13
valentindMakes more sense.17:14
benschubertSorry :) My current work is doing a docker POC so we could have bst working natively on Windows and build for linux via docker :)17:14
valentindThough I do not know when WSL returns EINVAL on link.17:14
valentindSo it could be still the same as #647, just that WSL does not show the same error.17:15
gitlab-br-botIssue #647: BuildStream misorders elements in subdirectories of symlinks when link_files called in compose elements https://gitlab.com/BuildStream/buildstream/issues/64717:15
benschubertYeah, I'm not exactly sure, I'm trying to investigate but getting the stack traces was not that nice17:15
valentindBut did you say the same project worked correctly with bwrap?17:15
benschubertYes!17:16
benschuberton a real linux machine, and bwrap it works perfectly on master17:16
benschubertso it's a linux/windows compatibility problem I guess17:16
valentindbenschubert, my recommendation here is to try to rebuild it again, and make sure you keep the build directory. Then take the two last paths from the error message, and try to us "ln" manually to see if you can reproduce manually (not symbolic). Then figure out why.17:17
benschubertIt's building :)17:18
valentindBy the way, how does WSL deal with max_path being 260 in Windows?17:18
benschubertbadly17:19
benschubertvery badly17:19
benschubertIt's one of the next bugs I need to see how to fix :)17:19
valentindbenschubert, is there some translation of linux paths to windows that adds a path in front?17:19
benschubertNot sure what you mean there17:20
juergbihm, I thought that was only a Win32 limitation, not an NT kernel limitation17:20
juergbiso I wouldn't have expected issues in WSL17:20
valentindjuergbi, it is not an NT kernel limitation.17:21
valentindBut most API still suffers from it.17:21
juergbisure but WSL shouldn't be related to the Win32 API at all17:21
skullmanjonathanmaw: I reviewed https://gitlab.com/BuildStream/buildstream/merge_requests/92417:21
jonathanmawskullman: ta17:21
valentindUnless you expectly use NT path. I think it was something prefixed by \\? . or something. But then I am not sure that all API works.17:22
benschubertjuergbi: we definitely do not work with that, the only tests that are failing (if my PRs get merged) will be the PATH problem17:22
jonathanmawI'll respond to it when I've scraped together enough brain17:22
*** abderrahim4 has joined #buildstream17:30
*** abderrahim3 has quit IRC17:32
benschubertvalentind: still trying to reproduce. I had wiped my cache before and it seems to... work now -_-'17:38
benschubertCan't reproduce -_-'17:50
benschubertSo I guess busted cache while playing with my sandbox17:50
valentindbenschubert, ok17:51
*** lachlan has quit IRC17:56
*** lachlan has joined #buildstream18:04
*** jonathanmaw has quit IRC18:08
*** jmac has quit IRC18:15
*** benbrown has quit IRC18:16
*** Nexus has quit IRC18:16
*** johnward has quit IRC18:16
*** laurence has quit IRC18:16
*** paulsherwood has quit IRC18:16
*** bethw has quit IRC18:16
*** jmac has joined #buildstream18:16
*** ikerperez has quit IRC18:17
*** benbrown has joined #buildstream18:17
*** Nexus has joined #buildstream18:17
*** phildawson has quit IRC18:17
*** jennis has quit IRC18:17
*** bethw has joined #buildstream18:17
*** coldtom has quit IRC18:17
*** paulsherwood has joined #buildstream18:17
*** johnward has joined #buildstream18:19
*** laurence has joined #buildstream18:21
jjardonHi, is there any issue to track the "bst artifact" group of commands introduction?18:37
jjardonnevermind, found it: https://gitlab.com/BuildStream/buildstream/issues/23419:00
*** xjuan has joined #buildstream19:16
*** raoul has quit IRC19:18
*** xjuan has quit IRC19:56
*** tristan has quit IRC20:03
*** benschubert has quit IRC21:10
*** xjuan has joined #buildstream21:57
*** wayne has joined #buildstream22:05
*** catonano has joined #buildstream22:37
*** rdale has quit IRC22:40
*** catonano has quit IRC22:47
*** catonano has joined #buildstream22:47
*** catonano has quit IRC22:56
*** catonano has joined #buildstream22:56
*** catonano has quit IRC23:03
*** xjuan has quit IRC23:08
*** toscalix has quit IRC23:25
*** mohan43u has quit IRC23:41
*** mohan43u has joined #buildstream23:44
*** mohan43u has quit IRC23:49
*** mohan43u has joined #buildstream23:53

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