[Swift-commit] r7920 - branches/release-0.95/tests/stress/random_fail

yadunandb at ci.uchicago.edu yadunandb at ci.uchicago.edu
Fri Jun 13 15:28:34 CDT 2014


Author: yadunandb
Date: 2014-06-13 15:28:34 -0500 (Fri, 13 Jun 2014)
New Revision: 7920

Added:
   branches/release-0.95/tests/stress/random_fail/randfail.sh
Modified:
   branches/release-0.95/tests/stress/random_fail/sites.template.xml
   branches/release-0.95/tests/stress/random_fail/tc.template.data
Log:
Updated randfail regression test



Added: branches/release-0.95/tests/stress/random_fail/randfail.sh
===================================================================
--- branches/release-0.95/tests/stress/random_fail/randfail.sh	                        (rev 0)
+++ branches/release-0.95/tests/stress/random_fail/randfail.sh	2014-06-13 20:28:34 UTC (rev 7920)
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+FAIL_PROBABILITY=$1
+DELAY=$2
+
+ITEM=$(($RANDOM%100))
+sleep $2
+
+if (( "$ITEM" <= "$FAIL_PROBABILITY" ))
+then
+    echo "Failing $ITEM < $FAIL_PROBABILITY" >&2
+    exit -1
+fi
+echo "Not failing $ITEM > $FAIL_PROBABILITY"
+exit 0

Modified: branches/release-0.95/tests/stress/random_fail/sites.template.xml
===================================================================
--- branches/release-0.95/tests/stress/random_fail/sites.template.xml	2014-06-13 16:22:07 UTC (rev 7919)
+++ branches/release-0.95/tests/stress/random_fail/sites.template.xml	2014-06-13 20:28:34 UTC (rev 7920)
@@ -1,20 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <config xmlns="http://www.ci.uchicago.edu/swift/SwiftSites">
 
-  <pool handle="midway">
-    <execution provider="coaster" jobmanager="local:local"/>
-    <profile namespace="globus" key="queue">sandyb</profile>
-    <profile namespace="globus" key="jobsPerNode">16</profile>
-    <profile namespace="globus" key="maxtime">36000</profile>
-    <profile namespace="globus" key="maxWalltime">00:10:00</profile>
-    <profile namespace="globus" key="highOverAllocation">100</profile>
-    <profile namespace="globus" key="lowOverAllocation">100</profile>
-    <profile namespace="globus" key="slots">4</profile>
-    <profile namespace="globus" key="maxNodes">1</profile>
-    <profile namespace="globus" key="nodeGranularity">1</profile>
-    <profile namespace="karajan" key="jobThrottle">.64</profile>
-    <profile namespace="karajan" key="initialScore">10000</profile>
-    <workdirectory>/tmp/MIDWAY_USERNAME</workdirectory>
+  <pool handle="localhost">
+    <execution provider="local"/>
+    <filesystem provider="local"/>
+    <profile key="initialScore" namespace="karajan">10000</profile>
+    <profile key="jobThrottle" namespace="karajan">.31</profile>
+    <profile namespace="swift" key="stagingMethod">file</profile>
+    <workdirectory>/tmp/{env.USER}/swiftwork</workdirectory>
   </pool>
 
 </config>

Modified: branches/release-0.95/tests/stress/random_fail/tc.template.data
===================================================================
--- branches/release-0.95/tests/stress/random_fail/tc.template.data	2014-06-13 16:22:07 UTC (rev 7919)
+++ branches/release-0.95/tests/stress/random_fail/tc.template.data	2014-06-13 20:28:34 UTC (rev 7920)
@@ -1,2 +1 @@
-local perl /usr/bin/perl null null null
-local sh   /bin/bash
+localhost sh /bin/bash null null null




More information about the Swift-commit mailing list