<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 7 Feb 2014, at 11:42, Ian Hinder &lt;<a href="mailto:ian.hinder@aei.mpg.de">ian.hinder@aei.mpg.de</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br>On 7 Feb 2014, at 03:43, Frank Loeffler &lt;<a href="mailto:knarf@cct.lsu.edu">knarf@cct.lsu.edu</a>&gt; wrote:<br><br><blockquote type="cite">On Fri, Feb 07, 2014 at 02:35:11AM +0000, <a href="mailto:ian.hinder@aei.mpg.de">ian.hinder@aei.mpg.de</a> wrote:<br><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error: Syntax error on line 5 of /home/jenkins/workspace/EinsteinToolkit/simfactory/etc/defs.local.ini: no whitespace allowed in section identifier: []<br></blockquote><br>Hi<br><br>Is this file in svn/git somewhere, or how else can we change it?<br></blockquote><br>This file is created dynamically. The section header in question comes from the output of "sim whoami", which was clearly never designed to be used from scripts. &nbsp;For some reason, on the caltech build node, it is now outputting<br><br>Unknown machine name <a href="http://caltechcactusjenkins.spdns.org">caltechcactusjenkins.spdns.org</a><br>Unknown machine name <a href="http://caltechcactusjenkins.spdns.org">caltechcactusjenkins.spdns.org</a><br>Current machine: None<br><br>and the build system is only expecting the last line (as the machine is not defined in the simfactory database). &nbsp;The warnings should be on stderr, but they are not. &nbsp;Maybe the hostname of the VM host changed? &nbsp;Anyway, I've modified the scripts to try to get around this (I just take the last line of output).<br></blockquote><div><br></div><div>Bzzzt. &nbsp;Wrong answer. &nbsp;In fact, the script would have worked fine in this case. &nbsp;My debugging was complicated by the fact that this particular problem was only visible with a partially-written defs.local.ini file, so I didn't notice it when testing.</div><div><br></div><div>The real problem was that Barry committed a new machine definition with a missing basedir entry. &nbsp;This was probably in his defs.local.ini file, so simfactory never complained on his machine. &nbsp;In the test system, the entry remained undefined, and simfactory aborted with an error about this during "sim whoami". &nbsp;This error should have gone to stderr, but it went to stdout, because the dprint function in simfactory has a special case for "early" calls before simenv is initialised, and this branch of the function ignores the instruction to output to stderr. &nbsp;Since the output of "sim whoami" was going into a pipe, the error message was lost, and the machine name was interpreted as "" instead of None, which is what the script expected.</div><div><br></div><div>I've fixed the machine entry with a dummy value; Barry, you probably want to put something sensible there.</div><div><br></div><div>I've also fixed simfactory to output to stderr even in the pre-simenv branch of dprint, so this shouldn't happen again.</div></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--&nbsp;</div><div>Ian Hinder</div><div><a href="http://numrel.aei.mpg.de/people/hinder">http://numrel.aei.mpg.de/people/hinder</a></div></div></span></div></span></div></span></span>
</div>
<br></body></html>