<div dir="ltr"><div dir="ltr"><div>If you have --try-test-paths in your preset, you<font size="2"> might</font> see:<font size="2"><br></font></div><div><b><font size="2">"error: unrecognized arguments: --try-test-paths"</font></b></div><div><b><font size="2"><br></font></b></div><div><font size="2">There isn't a risk of data loss here, but it will either leave these presets unmigrated or else prevent you from using |mach try|. This is tracked in <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1531364">bug 1531364</a>. However the solution is tricky and I suspect not many people will run into this. So if you see this please ping me or comment in the bug and I'll help sort you out.<br></font></div><div><b><font size="2"></font></b></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 26, 2019 at 3:06 PM Andrew Halberstadt <<a href="mailto:ahal@mozilla.com">ahal@mozilla.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>If you don't have any |mach try| presets for the syntax selector, feel free to ignore. Otherwise, make sure you update to the latest central before running |mach try| or you might lose your presets.</div><div><br></div><div>If you see a message like this in your |mach try| output:<br></div><b>warning: unknown section 'syntax', the following presets were not migrated</b></div><div dir="ltr"><br></div><div>Then you're too late and it means the presets listed underneath will be lost if you don't manually re-create them. To re-create them:</div><div><br></div><div>1. Create ~/.mozbuild/autotry.ini</div><div>2. Create a [try] heading and copy + paste the unmigrated presets underneath. For example, the file should look like this:</div><div>[try]</div><div>foo = -b o -p all -u mochitest</div><div>bar = -b d -p none</div><div>...</div><div><br></div><div>3. Run: mv ~/.mozbuild/try_presets.yml temp.yml</div><div>4. Trigger the migration again: mach try --no-push<br></div><div>5. Copy + paste the contents of temp.yml into ~/.mozbuild/try_presets.yml</div><div><br></div><div>To re-iterate, these steps are *only* necessary if you see the bolded warning above.<br></div><div><br></div><div>In short, I recently changed the |mach try| preset format and included an automatic migration script. But due to a bug in the migration, only the first preset in the list was successfully migrated. This bug only affects presets that were saved with try syntax. Unfortunately the associated test for the migration only tested a single preset so didn't detect the bug. The bug is fixed on the latest mozilla-central<br></div><div><br></div><div>Very sorry for the inconvenience and let me know if you need help,<br></div><div>Andrew<br></div><div><br></div></div>
</blockquote></div>