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

Commit

Permalink
Implement report submission to treeherder for firefox-ui-tests (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
whimboo committed Jun 29, 2015
1 parent 6f5ad3c commit 896f65e
Show file tree
Hide file tree
Showing 20 changed files with 624 additions and 188 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
.jenkins.properties
.pulse_config.ini
*.pyc
*.bak
Expand Down
17 changes: 17 additions & 0 deletions config/jenkins.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# AWS location and credentials for uploading log files
AWS_BUCKET =
AWS_ACCESS_KEY_ID =
AWS_SECRET_ACCESS_KEY =

# Treeherder location and credentials for submitting test results
TREEHERDER_URL =
TREEHERDER_KEY_mozilla-central =
TREEHERDER_SECRET_mozilla-central =
TREEHERDER_KEY_mozilla-aurora =
TREEHERDER_SECRET_mozilla-aurora =
TREEHERDER_KEY_mozilla-beta =
TREEHERDER_SECRET_mozilla-beta =
TREEHERDER_KEY_mozilla-release =
TREEHERDER_SECRET_mozilla-release =
TREEHERDER_KEY_mozilla-esr38 =
TREEHERDER_SECRET_mozilla-esr38 =
3 changes: 3 additions & 0 deletions config/production/daily.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
},
"TARGET_BUILD_ID": {
"key": "buildid"
},
"TARGET_BUILD_REVISION": {
"key": "revision"
}
}
},
Expand Down
11 changes: 3 additions & 8 deletions config/production/release.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,15 @@
"value": "http://mozauto.iriscouch.com/mozmill-release/"
}
},
"endurance": {
"ENTITIES": {
"value": 10
},
"ITERATIONS": {
"value": 10
}
},
"update": {
"BUILD_ID": {
"key": "previous_buildid"
},
"TARGET_BUILD_ID": {
"key": "buildid"
},
"TARGET_BUILD_REVISION": {
"key": "revision"
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions config/staging/daily.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
},
"TARGET_BUILD_ID": {
"key": "buildid"
},
"TARGET_BUILD_REVISION": {
"key": "revision"
}
}
},
Expand Down
11 changes: 3 additions & 8 deletions config/staging/release.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,15 @@
"value": "http://mozauto.iriscouch.com/mozmill-staging/"
}
},
"endurance": {
"ENTITIES": {
"value": 2
},
"ITERATIONS": {
"value": 2
}
},
"update": {
"BUILD_ID": {
"key": "previous_buildid"
},
"TARGET_BUILD_ID": {
"key": "buildid"
},
"TARGET_BUILD_REVISION": {
"key": "revision"
}
}
},
Expand Down
25 changes: 10 additions & 15 deletions jenkins-master/jobs/mozilla-aurora_functional/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
</hudson.model.ChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<EnvInjectJobProperty plugin="envinject@1.88">
<info>
<propertiesFilePath>$JENKINS_HOME/../.jenkins.properties</propertiesFilePath>
<loadFilesFromMaster>true</loadFilesFromMaster>
</info>
<on>true</on>
<keepJenkinsSystemVariables>true</keepJenkinsSystemVariables>
<keepBuildVariables>true</keepBuildVariables>
<contributors/>
</EnvInjectJobProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5">
<configVersion>2</configVersion>
Expand Down Expand Up @@ -129,21 +139,6 @@
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.38.2">
<recipientList>$DEFAULT_RECIPIENTS</recipientList>
<configuredTriggers>
<hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<email>
<recipientList></recipientList>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
</recipientProviders>
<attachmentsPattern></attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>false</compressBuildLog>
<replyTo></replyTo>
<contentType>project</contentType>
</email>
</hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<hudson.plugins.emailext.plugins.trigger.AbortedTrigger>
<email>
<recipientList></recipientList>
Expand Down
25 changes: 10 additions & 15 deletions jenkins-master/jobs/mozilla-aurora_remote/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
</hudson.model.ChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<EnvInjectJobProperty plugin="envinject@1.88">
<info>
<propertiesFilePath>$JENKINS_HOME/../.jenkins.properties</propertiesFilePath>
<loadFilesFromMaster>true</loadFilesFromMaster>
</info>
<on>true</on>
<keepJenkinsSystemVariables>true</keepJenkinsSystemVariables>
<keepBuildVariables>true</keepBuildVariables>
<contributors/>
</EnvInjectJobProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5">
<configVersion>2</configVersion>
Expand Down Expand Up @@ -129,21 +139,6 @@
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.38.2">
<recipientList>$DEFAULT_RECIPIENTS</recipientList>
<configuredTriggers>
<hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<email>
<recipientList></recipientList>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
</recipientProviders>
<attachmentsPattern></attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>false</compressBuildLog>
<replyTo></replyTo>
<contentType>project</contentType>
</email>
</hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<hudson.plugins.emailext.plugins.trigger.AbortedTrigger>
<email>
<recipientList></recipientList>
Expand Down
41 changes: 18 additions & 23 deletions jenkins-master/jobs/mozilla-aurora_update/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,25 @@
<description>The expected build id of Firefox after the update.</description>
<defaultValue>None</defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>TARGET_BUILD_REVISION</name>
<description>The expected revision of Firefox after the update.</description>
<defaultValue>None</defaultValue>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<EnvInjectJobProperty plugin="envinject@1.88">
<info>
<propertiesFilePath>$JENKINS_HOME/../.jenkins.properties</propertiesFilePath>
<propertiesContent>NSPR_LOG_MODULES=timestamp,nsHttp:3,nsHostResolver:5,append
NSPR_LOG_FILE=http.log</propertiesContent>
<loadFilesFromMaster>true</loadFilesFromMaster>
</info>
<on>true</on>
<keepJenkinsSystemVariables>true</keepJenkinsSystemVariables>
<keepBuildVariables>true</keepBuildVariables>
<contributors/>
</EnvInjectJobProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5">
<configVersion>2</configVersion>
Expand Down Expand Up @@ -118,7 +135,7 @@
<selector class="hudson.plugins.copyartifact.StatusBuildSelector"/>
</hudson.plugins.copyartifact.CopyArtifact>
<hudson.plugins.xshell.XShellBuilder plugin="xshell@0.9-SNAPSHOT">
<commandLine>python runtests.py --type=update --branch=mozilla-aurora --platform=$PLATFORM --build-type=$BUILD_TYPE --build-id=$BUILD_ID --build-locale=$LOCALE --update-channel=$CHANNEL --update-target-build-id=$TARGET_BUILD_ID</commandLine>
<commandLine>python runtests.py --type=update --branch=mozilla-aurora --platform=$PLATFORM --build-type=$BUILD_TYPE --build-id=$BUILD_ID --build-locale=$LOCALE --update-channel=$CHANNEL --update-target-build-id=$TARGET_BUILD_ID --update-target-revision=$TARGET_BUILD_REVISION</commandLine>
<executeFromWorkingDir>false</executeFromWorkingDir>
</hudson.plugins.xshell.XShellBuilder>
</builders>
Expand All @@ -133,21 +150,6 @@
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.38.2">
<recipientList>$DEFAULT_RECIPIENTS</recipientList>
<configuredTriggers>
<hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<email>
<recipientList></recipientList>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
</recipientProviders>
<attachmentsPattern></attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>false</compressBuildLog>
<replyTo></replyTo>
<contentType>project</contentType>
</email>
</hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<hudson.plugins.emailext.plugins.trigger.AbortedTrigger>
<email>
<recipientList></recipientList>
Expand Down Expand Up @@ -228,12 +230,5 @@ ${FAILED_TESTS}
<hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.4.0">
<colorMapName>xterm</colorMapName>
</hudson.plugins.ansicolor.AnsiColorBuildWrapper>
<EnvInjectBuildWrapper plugin="envinject@1.88">
<info>
<propertiesContent>NSPR_LOG_MODULES=timestamp,nsHttp:3,nsHostResolver:5,append
NSPR_LOG_FILE=http.log</propertiesContent>
<loadFilesFromMaster>false</loadFilesFromMaster>
</info>
</EnvInjectBuildWrapper>
</buildWrappers>
</project>
25 changes: 10 additions & 15 deletions jenkins-master/jobs/mozilla-central_functional/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
</hudson.model.ChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<EnvInjectJobProperty plugin="envinject@1.88">
<info>
<propertiesFilePath>$JENKINS_HOME/../.jenkins.properties</propertiesFilePath>
<loadFilesFromMaster>true</loadFilesFromMaster>
</info>
<on>true</on>
<keepJenkinsSystemVariables>true</keepJenkinsSystemVariables>
<keepBuildVariables>true</keepBuildVariables>
<contributors/>
</EnvInjectJobProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5">
<configVersion>2</configVersion>
Expand Down Expand Up @@ -129,21 +139,6 @@
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.38.2">
<recipientList>$DEFAULT_RECIPIENTS</recipientList>
<configuredTriggers>
<hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<email>
<recipientList></recipientList>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
</recipientProviders>
<attachmentsPattern></attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>false</compressBuildLog>
<replyTo></replyTo>
<contentType>project</contentType>
</email>
</hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<hudson.plugins.emailext.plugins.trigger.AbortedTrigger>
<email>
<recipientList></recipientList>
Expand Down
25 changes: 10 additions & 15 deletions jenkins-master/jobs/mozilla-central_remote/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
</hudson.model.ChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<EnvInjectJobProperty plugin="envinject@1.88">
<info>
<propertiesFilePath>$JENKINS_HOME/../.jenkins.properties</propertiesFilePath>
<loadFilesFromMaster>true</loadFilesFromMaster>
</info>
<on>true</on>
<keepJenkinsSystemVariables>true</keepJenkinsSystemVariables>
<keepBuildVariables>true</keepBuildVariables>
<contributors/>
</EnvInjectJobProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5">
<configVersion>2</configVersion>
Expand Down Expand Up @@ -129,21 +139,6 @@
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.38.2">
<recipientList>$DEFAULT_RECIPIENTS</recipientList>
<configuredTriggers>
<hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<email>
<recipientList></recipientList>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
</recipientProviders>
<attachmentsPattern></attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>false</compressBuildLog>
<replyTo></replyTo>
<contentType>project</contentType>
</email>
</hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<hudson.plugins.emailext.plugins.trigger.AbortedTrigger>
<email>
<recipientList></recipientList>
Expand Down
41 changes: 18 additions & 23 deletions jenkins-master/jobs/mozilla-central_update/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,25 @@
<description>The expected build id of Firefox after the update.</description>
<defaultValue>None</defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>TARGET_BUILD_REVISION</name>
<description>The expected revision of Firefox after the update.</description>
<defaultValue>None</defaultValue>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<EnvInjectJobProperty plugin="envinject@1.88">
<info>
<propertiesFilePath>$JENKINS_HOME/../.jenkins.properties</propertiesFilePath>
<propertiesContent>NSPR_LOG_MODULES=timestamp,nsHttp:3,nsHostResolver:5,append
NSPR_LOG_FILE=http.log</propertiesContent>
<loadFilesFromMaster>true</loadFilesFromMaster>
</info>
<on>true</on>
<keepJenkinsSystemVariables>true</keepJenkinsSystemVariables>
<keepBuildVariables>true</keepBuildVariables>
<contributors/>
</EnvInjectJobProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5">
<configVersion>2</configVersion>
Expand Down Expand Up @@ -118,7 +135,7 @@
<selector class="hudson.plugins.copyartifact.StatusBuildSelector"/>
</hudson.plugins.copyartifact.CopyArtifact>
<hudson.plugins.xshell.XShellBuilder plugin="xshell@0.9-SNAPSHOT">
<commandLine>python runtests.py --type=update --branch=mozilla-central --platform=$PLATFORM --build-type=$BUILD_TYPE --build-id=$BUILD_ID --build-locale=$LOCALE --update-channel=$CHANNEL --update-target-build-id=$TARGET_BUILD_ID</commandLine>
<commandLine>python runtests.py --type=update --branch=mozilla-central --platform=$PLATFORM --build-type=$BUILD_TYPE --build-id=$BUILD_ID --build-locale=$LOCALE --update-channel=$CHANNEL --update-target-build-id=$TARGET_BUILD_ID --update-target-revision=$TARGET_BUILD_REVISION</commandLine>
<executeFromWorkingDir>false</executeFromWorkingDir>
</hudson.plugins.xshell.XShellBuilder>
</builders>
Expand All @@ -133,21 +150,6 @@
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.38.2">
<recipientList>$DEFAULT_RECIPIENTS</recipientList>
<configuredTriggers>
<hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<email>
<recipientList></recipientList>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
</recipientProviders>
<attachmentsPattern></attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>false</compressBuildLog>
<replyTo></replyTo>
<contentType>project</contentType>
</email>
</hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<hudson.plugins.emailext.plugins.trigger.AbortedTrigger>
<email>
<recipientList></recipientList>
Expand Down Expand Up @@ -228,12 +230,5 @@ ${FAILED_TESTS}
<hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.4.0">
<colorMapName>xterm</colorMapName>
</hudson.plugins.ansicolor.AnsiColorBuildWrapper>
<EnvInjectBuildWrapper plugin="envinject@1.88">
<info>
<propertiesContent>NSPR_LOG_MODULES=timestamp,nsHttp:3,nsHostResolver:5,append
NSPR_LOG_FILE=http.log</propertiesContent>
<loadFilesFromMaster>false</loadFilesFromMaster>
</info>
</EnvInjectBuildWrapper>
</buildWrappers>
</project>
Loading

0 comments on commit 896f65e

Please sign in to comment.