User:Lukasblakk/TryServerSyntax: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 4: Line 4:
==Syntax==
==Syntax==


  --try [-dbo] [-p platforms] [-u unittests] [-t talos_suites]  
  try: [dbo] p:[platforms] u:[unittests] t:[talos_suites]  
  # unittests/talos are OPTIONAL - if not present default is None
  # unittests/talos are OPTIONAL - if not present default is None


This covers:
This covers:


* Build Types -b both || -o opt only || -d debug only
* Build Types both(b) || opt(o) || debug(d)
* Platforms all || -p {linuxlinux64,osx,osx64,win32,win64,mobile-{qt,android, etc}}
* Platforms all || p:{linuxlinux64,osx,osx64,win32,win64,mobile-{qt,android, etc}}
* Unittest Suites all || none || -u {crashtest,reftest,mochitest{1,2,3,4,5},xpcshell,etc}
* Unittest Suites all || none || u:{crashtest,reftest,mochitest{1,2,3,4,5},xpcshell,etc}
* Talos Suites all || none || -t {tp4,tscroll,tspider,etc}
* Talos Suites all || none || t:{tp4,tscroll,tspider,etc}


==Order==
==Order==
Line 30: Line 30:
<pre>
<pre>
  # both opt/debug builds, all platforms, no unittests/talos
  # both opt/debug builds, all platforms, no unittests/talos
  hg commit -m "bug 432432 testing something --try -b -p all"  
  hg commit -m "bug 432432 testing something try:b p:all"  


  # linux debug build, with all unittests, no talos
  # linux debug build, with all unittests, no talos
  hg commit -m "bug 432432 testing something --try -d -p linux -u all"
  hg commit -m "bug 432432 testing something try:d p:linux u:all"


  # all builds, platforms, unittests & talos (both options work):
  # all builds, platforms, unittests & talos (both options work):
  hg commit -m "bug 432432 testing something --try -b -ut all"
  hg commit -m "bug 432432 testing something try:b ut:all"
  hg commit -m "bug 432432 testing something --try -b -p all -ut all"
  hg commit -m "bug 432432 testing something try:b p:all ut:all"


  # opt builds on all platforms with talos tp4 & tscroll (no unittests)  
  # opt builds on all platforms with talos tp4 & tscroll (no unittests)  
  hg commit -m "bug 432432 testing something --try -o -t tp4,tscroll"
  hg commit -m "bug 432432 testing something try:o t:tp4,tscroll"
</pre>
</pre>
===In a try.info file===
===In a try.info file===
try.info file pushed to $topsrc_dir would look like:
try.info file pushed to $topsrc_dir would look like:
  --try -b -p all
  try:b p:all


==Scheduler/Builder Parsing==
==Scheduler/Builder Parsing==


* split on '--try'
* split on 'try:'
* then split on '-'
* then split on ' ' to grab args


====Required arguments====
====Required arguments====
Line 62: Line 62:


third split: unittests || (unittest && talos) (if not present default is '''none''')
third split: unittests || (unittest && talos) (if not present default is '''none''')
  if third split exists and is only -u grab array after for test names to build schedulers
  if third split exists and is only u: grab array after for test names to build schedulers
  if third split exists and is -ut then they want all of both
  if third split exists and is ut: then they want all of both


fourth split: talos (if not present default is none, without overriding -ut from third split)
fourth split: talos (if not present default is none, without overriding -ut from third split)
  if fourth split exists and is -t grab array after for test names to build schedulers
  if fourth split exists and is t: grab array after for test names to build schedulers
977

edits

Navigation menu