Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
[JBWS-3947] Adding sample job for perf testing and required script en…
Browse files Browse the repository at this point in the history
…tries
  • Loading branch information
asoldano committed Sep 24, 2015
1 parent c0aadc5 commit 1766794
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 0 deletions.
115 changes: 115 additions & 0 deletions hudson-home/jobs/CXF-PERF-AS-9.0.1/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<builders class="vector">
<hudson.tasks.Shell>
<command>
#
# Module settings
#
MODULE=CXF-PERF-AS-9.0.1

WORKSPACE=`pwd`
STACK_ID=cxf
JAVA_HOME=@java.home.sun.jdk8@
SCRIPTS_DIR=@hudson.home@/../scripts
STACK_DIR=$WORKSPACE/stack-cxf
TEST_OPTS=
JBOSS_TARGET=wildfly901

#
# load test functions
#
. $SCRIPTS_DIR/jbossws-qa.sh

#
# execute core tests
#
perfTest

</command>
</hudson.tasks.Shell>
</builders>
<publishers class="vector">
<hudson.plugins.performance.PerformancePublisher plugin="performance@1.13">
<errorFailedThreshold>2</errorFailedThreshold>
<errorUnstableThreshold>1</errorUnstableThreshold>
<errorUnstableResponseTimeThreshold></errorUnstableResponseTimeThreshold>
<relativeFailedThresholdPositive>0.0</relativeFailedThresholdPositive>
<relativeFailedThresholdNegative>0.0</relativeFailedThresholdNegative>
<relativeUnstableThresholdPositive>0.0</relativeUnstableThresholdPositive>
<relativeUnstableThresholdNegative>0.0</relativeUnstableThresholdNegative>
<nthBuildNumber>0</nthBuildNumber>
<modeRelativeThresholds>false</modeRelativeThresholds>
<configType>ART</configType>
<modeOfThreshold>false</modeOfThreshold>
<compareBuildPrevious>false</compareBuildPrevious>
<xml></xml>
<modePerformancePerTestCase>true</modePerformancePerTestCase>
<parsers>
<hudson.plugins.performance.JMeterParser>
<glob>stack-cxf/modules/testsuite/perf-tests/target/jmeter/results/jbossws.jtl</glob>
</hudson.plugins.performance.JMeterParser>
</parsers>
<modeThroughput>true</modeThroughput>
</hudson.plugins.performance.PerformancePublisher>
<hudson.tasks.Mailer>
<recipients>@hudson.mail.recipients@</recipients>
<dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
<sendToIndividuals>true</sendToIndividuals>
</hudson.tasks.Mailer>
</publishers>
<buildWrappers class="vector"/>
<scm class="hudson.plugins.git.GitSCM">
<configVersion>1</configVersion>
<remoteRepositories>
<org.spearce.jgit.transport.RemoteConfig>
<string>origin</string>
<int>5</int>
<string>fetch</string>
<string>+refs/heads/*:refs/remotes/origin/*</string>
<string>receivepack</string>
<string>git-upload-pack</string>
<string>uploadpack</string>
<string>git-upload-pack</string>
<string>url</string>
<string>@hudson.cxf.url@.git</string>
<string>tagopt</string>
<string></string>
</org.spearce.jgit.transport.RemoteConfig>
</remoteRepositories>
<branches>
<hudson.plugins.git.BranchSpec>
<name>@hudson.cxf.rev@</name>
</hudson.plugins.git.BranchSpec>
</branches>
<localBranch></localBranch>
<mergeOptions/>
<recursiveSubmodules>false</recursiveSubmodules>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<authorOrCommitter>false</authorOrCommitter>
<clean>false</clean>
<wipeOutWorkspace>false</wipeOutWorkspace>
<pruneBranches>false</pruneBranches>
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
<gitTool>Default</gitTool>
<browser class="hudson.plugins.git.browser.GithubWeb">
<url>@hudson.cxf.url@</url>
</browser>
<submoduleCfg class="list"/>
<relativeTargetDir>stack-cxf</relativeTargetDir>
<excludedRegions></excludedRegions>
<excludedUsers></excludedUsers>
</scm>
<canRoam>true</canRoam>
<disabled>false</disabled>
<enableRemoteTrigger>false</enableRemoteTrigger>
<triggers class="vector"/>
<logRotator>
<daysToKeep>14</daysToKeep>
<numToKeep>-1</numToKeep>
</logRotator>
<keepDependencies>false</keepDependencies>
<properties/>
<description>Build and perf test jbossws-cxf-@version.id@ against @hudson.jboss901.build@</description>
<actions class="vector"/>
</project>
14 changes: 14 additions & 0 deletions scripts/jbossws-qa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ runTestsViaMaven() {
mvn $ENVIRONMENT -Phudson,$JBOSS_TARGET $TEST_OPTS integration-test 2>&1 | tee $WORKSPACE/tests.log
}

runPerfTestsViaMaven() {
echo "TEST_OPTS: $TEST_OPTS"
mvn $ENVIRONMENT -P$JBOSS_TARGET,jmeter $TEST_OPTS -Dtest=Foo verify 2>&1 | tee $WORKSPACE/tests.log
}

runTestsViaMavenWithSecMgr() {
echo "TEST_OPTS: $TEST_OPTS"
mvn $ENVIRONMENT -Phudson,$JBOSS_TARGET,wildfly9-secmgr $TEST_OPTS integration-test 2>&1 | tee $WORKSPACE/tests.log
Expand All @@ -67,6 +72,15 @@ coreTest() {
detectFailures
}

perfTest() {
setupEnv
ensureJavaExists
logMavenDependencies
runPerfTestsViaMaven
copyTestLogs
detectFailures
}

coreTestWithSecMgr() {
setupEnv
ensureJavaExists
Expand Down

0 comments on commit 1766794

Please sign in to comment.