*** edcragg has quit IRC | 07:32 | |
*** jonathanmaw has joined #baserock | 07:59 | |
*** bashrc has joined #baserock | 08:02 | |
*** edcragg has joined #baserock | 08:14 | |
*** mariaderidder has joined #baserock | 08:14 | |
*** mdunford has joined #baserock | 08:43 | |
*** ssam2 has joined #baserock | 08:51 | |
*** ChanServ sets mode: +v ssam2 | 08:51 | |
tiagogomes_ | /me ponders why 'sh: foo: not found' is going to stdout on http://paste.baserock.org/surucikomi | 09:16 |
---|---|---|
ssam2 | tiagogomes_: as in, you think it should be on stderr ? | 09:27 |
tiagogomes_ | ssam2, yes. It is an error after all | 09:28 |
ssam2 | what is the context? is this Morph, YBD, something else? | 09:29 |
tiagogomes_ | ssam2 morph | 09:29 |
ssam2 | tiagogomes: I guess it's because the build log is being written to stdout ? | 09:35 |
ssam2 | if that's running as part of a build process, it uses this code path: http://git.baserock.org/cgi-bin/cgit.cgi/baserock/baserock/morph.git/tree/morphlib/stagingarea.py#n299 | 09:35 |
ssam2 | which clearly raises an exception on error, so you'd see an 'ERROR: In staging area xx: ..' message on stderr | 09:36 |
tiagogomes_ | no, it is not because of that. I took out the tee command | 09:38 |
tiagogomes_ | also doing that, would cause `exit, out, err = self._app.runcmd_unchecked(cmdline, **kwargs)` to not have anything in `err` | 09:39 |
tiagogomes_ | that's why when a build fails, it fails like this http://paste.baserock.org/wapawajoji | 09:40 |
ssam2 | ah, I see | 09:47 |
ssam2 | so the question is why 'sh' writes its error message to stdout | 09:48 |
ssam2 | i have no idea, in that case! | 09:48 |
*** locallycompact has joined #baserock | 10:07 | |
*** locallycompact has quit IRC | 10:40 | |
*** mdunford has quit IRC | 10:45 | |
*** locallycompact has joined #baserock | 10:56 | |
*** mdunford has joined #baserock | 11:00 | |
*** mariaderidder has quit IRC | 11:09 | |
*** lachlanmackenzie has joined #baserock | 11:10 | |
*** mdunford has quit IRC | 11:11 | |
*** mariaderidder has joined #baserock | 11:25 | |
*** nowster has quit IRC | 11:31 | |
*** mdunford has joined #baserock | 11:43 | |
*** nowster has joined #baserock | 11:46 | |
*** mdunford has quit IRC | 11:53 | |
*** mdunford has joined #baserock | 11:57 | |
*** petefoth has joined #baserock | 13:33 | |
*** petefoth_ has joined #baserock | 13:39 | |
*** petefoth has quit IRC | 13:40 | |
*** petefoth_ is now known as petefoth | 13:40 | |
*** petefoth has quit IRC | 13:43 | |
*** locallycompact has quit IRC | 13:53 | |
*** CTtpollard has quit IRC | 14:05 | |
*** locallycompact has joined #baserock | 14:08 | |
*** CTtpollard has joined #baserock | 14:12 | |
*** CTtpollard has quit IRC | 14:24 | |
*** CTtpollard has joined #baserock | 14:25 | |
tiagogomes_ | What's the purpose of the build-log-on-stdout option? | 14:31 |
SotK | I think it is used by distbuild workers, but I may be wrong | 14:31 |
tiagogomes_ | that's what the docs say, still I am puzzled by it | 14:32 |
pedroalvarez | heh, I guess is an implementation detail | 14:33 |
tiagogomes_ | whatever it is, I am pretty confident that was a bad name the option | 14:33 |
tiagogomes_ | *bad name for the option | 14:33 |
pedroalvarez | bad name? I know what it does and I only know its name! | 14:34 |
tiagogomes_ | pedroalvarez except the fact that if you don't pass that option, you can *still* see the build output out stdout | 14:35 |
SotK | o.O | 14:35 |
ssam2 | it's used by distbuild, indeed | 14:35 |
ssam2 | there's a --verbose option that was added later which also lets you view the build log on stdout | 14:35 |
ssam2 | (and the old --verbose option is now --debug) | 14:38 |
*** locallycompact has quit IRC | 14:41 | |
*** mdunford has quit IRC | 14:44 | |
*** mdunford has joined #baserock | 14:44 | |
*** jjardon has quit IRC | 15:29 | |
*** drnic has quit IRC | 15:29 | |
*** jjardon has joined #baserock | 15:35 | |
*** drnic has joined #baserock | 15:41 | |
*** jonathanmaw has quit IRC | 16:11 | |
paulsherwood | nowster: your proposed split soln would also be helpful for https://github.com/devcurmudgeon/ybd/issues/96 | 16:14 |
nowster | paulsherwood: agreed, but that would be as a side-effect | 16:18 |
paulsherwood | yup. side-effects are useful sometimes :) | 16:18 |
nowster | paulsherwood: am I right in thinking that ybd treats meta files as write-only? (I can only see it making them and checking for their presence.) | 16:23 |
paulsherwood | yes | 16:24 |
paulsherwood | (so far)... but i expect that other tooling may want to read meta files at some point | 16:24 |
nowster | And we have a difference in formats... chunk metafiles are yaml; deployment metafiles are json | 16:25 |
paulsherwood | (eg manifest generation, maybe license checking, checksumming etc) | 16:25 |
ssam2 | system-version-manager actually reads them already in order to carry certain settings across deployments | 16:25 |
ssam2 | which is needed for Jetson upgrades to work | 16:25 |
nowster | right! We don't want to break that. | 16:26 |
paulsherwood | ah... that must fail for ybd upgrades then? | 16:26 |
ssam2 | not sure if it supports the YBD ones or not. | 16:26 |
paulsherwood | SotK: ^^? | 16:26 |
ssam2 | i've never tried, presumably if you deploy a system to Jetson with YBD, then try to upgrade it, it fails | 16:26 |
ssam2 | although actually if you specify DTB_PATH, KERNEL_ARGS, ROOT_DISK and BOOT_DISK in the cluster .morph when you upgrade then I guess won't fail | 16:26 |
ssam2 | I think it only needs to read the /baserock/deployment.meta file if those weren't specified explicitly | 16:27 |
nowster | morph metafiles are all json | 16:27 |
*** mariaderidder has quit IRC | 16:40 | |
*** mdunford has quit IRC | 16:45 | |
*** bashrc has quit IRC | 16:49 | |
*** mdunford has joined #baserock | 17:01 | |
*** edcragg has quit IRC | 17:17 | |
paulsherwood | nowster: technically that means that morph metafiles are already YAML | 17:24 |
paulsherwood | i think :) | 17:24 |
* paulsherwood would prefer yaml, since it's easier to read | 17:24 | |
*** mdunford has quit IRC | 17:26 | |
*** lachlanmackenzie has quit IRC | 17:57 | |
*** jjardon has quit IRC | 18:34 | |
*** jjardon_ has joined #baserock | 18:35 | |
*** ssam2 has quit IRC | 18:36 | |
*** jjardon_ is now known as jjardon | 18:38 | |
*** edcragg has joined #baserock | 19:59 | |
*** jmacs has quit IRC | 20:51 | |
*** jmacs has joined #baserock | 20:52 | |
*** brlogger` has joined #baserock | 21:04 | |
*** brlogger has quit IRC | 21:05 | |
*** ratmice___ has quit IRC | 21:05 | |
*** ratmice___ has joined #baserock | 21:05 | |
*** edcragg has quit IRC | 23:42 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!