Buildbot/Talos/AddonTrigger
From MozillaWiki
trigger.cgi
Author: Alice Nodelman
Structure
trigger.cgi is a simple python cgi module. It reads form data through http POST.
Variables
- os (REQUIRED)
- one of win32, linux, macosx64
- url (REQUIRED)
- full link to addon to be tested
- must be correct addon link dependent upon os specified
- eg url: http://ftp.mozilla.org/pub/mozilla.org/addons/92382/ie_tab_2__ff_3.6+_-2.12.21.1-fx.xpi
- firefox (REQUIRED)
- indicates the release of firefox to be tested against
- in the format firefoxX.Y
- X.Y determined by release build availability
- trigger.cgi looks in sub-directories of form latest-X.Y
- http://releases.mozilla.org/pub/mozilla.org/firefox/releases/
- X.Y determined by release build availability
Desired Output
- successful logs will always end with
SENDCHANGE: change sent successfully
Output
- successful sendchange injection, using trigger.cgi?os=win32&url=http://ftp.mozilla.org/pub/mozilla.org/addons/92382/ie_tab_2__ff_3.6+_-2.12.21.1-fx.xpi&firefox=firefox3.6
INFO: validating key os win32 INFO: validating key url http://ftp.mozilla.org/pub/mozilla.org/addons/92382/ie_tab_2__ff_3.6+_-2.12.21.1-fx.xpi INFO: validating key firefox firefox3.6 INFO: collected fields: os: win32 url: http://ftp.mozilla.org/pub/mozilla.org/addons/92382/ie_tab_2__ff_3.6+_-2.12.21.1-fx.xpi firefox: firefox3.6 INFO: converted firefox to: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/en-US/Firefox%20Setup%203.6.17.exe INFO: running command: /tools/buildbot/bin/buildbot sendchange --master=localhost:9010 --branch=addontester-win32-talos --username=addonWebDevice --property addonURL:ftp.mozilla.org/pub/mozilla.org/addons/92382/ie_tab_2__ff_3.6+_-2.12.21.1-fx.xpi http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/en-US/Firefox%20Setup%203.6.17.exe SENDCHANGE: change sent successfully
- failed sendchange injection (bad addon url provided). There may be multiple lines prefixed by ERROR.
INFO: validating key os win32 INFO: validating key url http://mozilla.org/pub/mozilla.org/addons/92382/ie_tab_2__ff_3.6+_-2.12.21.1-fx.xpi INFO: validating key firefox firefox3.6 INFO: collected fields: os: win32 url: http://mozilla.org/pub/mozilla.org/addons/92382/ie_tab_2__ff_3.6+_-2.12.21.1-fx.xpi firefox: firefox3.6 INFO: converted firefox to: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/en-US/Firefox%20Setup%203.6.17.exe INFO: response from http://mozilla.org/pub/mozilla.org/addons/92382/ie_tab_2__ff_3.6+_-2.12.21.1-fx.xpi: 301 Moved Permanently Server: Apache X-Backend-Server: pm-web01 Content-Type: text/html; charset=iso-8859-1 Date: Tue, 24 May 2011 21:59:34 GMT Location: http://www.mozilla.org/pub/mozilla.org/addons/92382/ie_tab_2__ff_3.6+_-2.12.21.1-fx.xpi Keep-Alive: timeout=20, max=997 Connection: close X-Cache-Info: not cacheable; request had a content length ERROR: addon url no good