Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.

Commit

Permalink
Only run endurance tests on nodes with the 'endurance' label. Fixes i…
Browse files Browse the repository at this point in the history
…ssue #173
  • Loading branch information
davehunt committed Feb 5, 2013
1 parent 8a19159 commit e3f81ee
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 40 deletions.
24 changes: 12 additions & 12 deletions config/production/jenkins.patch
Expand Up @@ -16,7 +16,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>mac 10.6 64bit</label>
+ <label>mac 10.6 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -96,7 +96,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>mac 10.7 64bit</label>
+ <label>mac 10.7 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -176,7 +176,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>mac 10.8 64bit</label>
+ <label>mac 10.8 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -236,7 +236,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>linux ubuntu 32bit</label>
+ <label>linux ubuntu 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -296,7 +296,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>linux ubuntu 64bit</label>
+ <label>linux ubuntu 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -356,7 +356,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 2000 32bit</label>
+ <label>windows 2000 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -416,7 +416,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows xp 32bit</label>
+ <label>windows xp 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -476,7 +476,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows vista 32bit</label>
+ <label>windows vista 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -536,7 +536,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 7 32bit</label>
+ <label>windows 7 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -596,7 +596,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 7 64bit</label>
+ <label>windows 7 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -656,7 +656,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 8 32bit</label>
+ <label>windows 8 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -716,7 +716,7 @@ index 755990a..5e24aa9 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 8 64bit</label>
+ <label>windows 8 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down
28 changes: 14 additions & 14 deletions config/production_new/jenkins.patch
Expand Up @@ -16,7 +16,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>mac 10.6 64bit</label>
+ <label>mac 10.6 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -96,7 +96,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>mac 10.7 64bit</label>
+ <label>mac 10.7 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -176,7 +176,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>mac 10.8 64bit</label>
+ <label>mac 10.8 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -236,7 +236,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>linux ubuntu 12.04 32bit</label>
+ <label>linux ubuntu 12.04 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -296,7 +296,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>linux ubuntu 12.04 64bit</label>
+ <label>linux ubuntu 12.04 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -356,7 +356,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>linux ubuntu 12.10 32bit</label>
+ <label>linux ubuntu 12.10 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -416,7 +416,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>linux ubuntu 12.10 64bit</label>
+ <label>linux ubuntu 12.10 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -476,7 +476,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 2000 32bit</label>
+ <label>windows 2000 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -516,7 +516,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows xp 32bit</label>
+ <label>windows xp 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -576,7 +576,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows vista 32bit</label>
+ <label>windows vista 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -636,7 +636,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 7 32bit</label>
+ <label>windows 7 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -696,7 +696,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 7 64bit</label>
+ <label>windows 7 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -756,7 +756,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 8 32bit</label>
+ <label>windows 8 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down Expand Up @@ -816,7 +816,7 @@ index 02d5f00..61b1332 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 8 64bit</label>
+ <label>windows 8 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand Down
26 changes: 13 additions & 13 deletions config/staging/jenkins.patch
Expand Up @@ -16,7 +16,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>mac 10.5 32bit</label>
+ <label>mac 10.5 32bit endurance</label>
+ <nodeProperties/>
+ </slave>
+ <slave>
Expand All @@ -27,7 +27,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>mac 10.6 64bit</label>
+ <label>mac 10.6 64bit endurance</label>
+ <nodeProperties/>
+ </slave>
+ <slave>
Expand All @@ -38,7 +38,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>mac 10.7 64bit</label>
+ <label>mac 10.7 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand All @@ -58,7 +58,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>mac 10.8 64bit</label>
+ <label>mac 10.8 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand All @@ -78,7 +78,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>linux ubuntu 32bit</label>
+ <label>linux ubuntu 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand All @@ -98,7 +98,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>linux ubuntu 64bit</label>
+ <label>linux ubuntu 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand All @@ -118,7 +118,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 2000 32bit</label>
+ <label>windows 2000 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand All @@ -138,7 +138,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows xp 32bit</label>
+ <label>windows xp 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand All @@ -158,7 +158,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows vista 32bit</label>
+ <label>windows vista 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand All @@ -178,7 +178,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 7 32bit</label>
+ <label>windows 7 32bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand All @@ -198,7 +198,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 7 64bit</label>
+ <label>windows 7 64bit endurance</label>
+ <nodeProperties>
+ <ruby-proxy-object>
+ <ruby-object ruby-class="Jenkins::Slaves::NodePropertyProxy" pluginid="nodeofflinenotification">
Expand All @@ -218,7 +218,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 8 32bit</label>
+ <label>windows 8 32bit endurance</label>
+ <nodeProperties/>
+ </slave>
+ <slave>
Expand All @@ -229,7 +229,7 @@ index 755990a..87f4ace 100644
+ <mode>NORMAL</mode>
+ <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
+ <launcher class="hudson.slaves.JNLPLauncher"/>
+ <label>windows 8 64bit</label>
+ <label>windows 8 64bit endurance</label>
+ <nodeProperties/>
+ </slave>
+ </slaves>
Expand Down
6 changes: 5 additions & 1 deletion jenkins-master/jobs/trigger-ondemand/workspace/trigger.py
Expand Up @@ -46,7 +46,7 @@ def main():
if not config.has_option(section, 'platform'):
continue
platform = config.get(section, 'platform')
node_labels = section.split(' ')
node_labels = section.split()

# Iterate through all builds per platform
for entry in config.options(section):
Expand All @@ -64,7 +64,11 @@ def main():
except:
continue

if script in ['endurance']:
node_labels.append(script)

for locale in locales:

parameters = {
'BUILD_TYPE': build_type,
'VERSION': version,
Expand Down
2 changes: 2 additions & 0 deletions pulse.py
Expand Up @@ -133,6 +133,8 @@ def generate_job_parameters(self, testrun, node, platform, build_properties):

# Add node and mozmill environment information
parameters['NODES'] = node
if testrun in ['endurance']:
parameters['NODES'] = ' && '.join([parameters['NODES'], testrun])
parameters['ENV_PLATFORM'] = self.get_mozmill_environment_platform(platform)

return parameters
Expand Down

0 comments on commit e3f81ee

Please sign in to comment.