[commit: ghc] wip/jenkins: Rework handling of nofib (29dc4be)
git at git.haskell.org
git at git.haskell.org
Thu Jul 27 20:51:52 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/jenkins
Link : http://ghc.haskell.org/trac/ghc/changeset/29dc4be06cca2a223539dcdd6ede2fc18c092c68/ghc
>---------------------------------------------------------------
commit 29dc4be06cca2a223539dcdd6ede2fc18c092c68
Author: Ben Gamari <ben at smart-cactus.org>
Date: Mon Jun 5 13:32:37 2017 -0400
Rework handling of nofib
Given that we want the measurements to be stable it makes sense to do these on a
separate, quiet machine.
>---------------------------------------------------------------
29dc4be06cca2a223539dcdd6ede2fc18c092c68
Jenkinsfile | 32 +++++++++++++++++++++-----------
1 file changed, 21 insertions(+), 11 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 6fc89ae..adf8058 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -96,6 +96,13 @@ parallel (
*/
)
+if (params.runNofib) {
+ node(label: 'linux && amd64 && perf') {
+ nofib(targetTriple: 'x86_64-linux-gnu')
+ }
+}
+
+
def withMingw(String msystem, Closure f) {
// Derived from msys2's /etc/msystem
def msysRoot = 'C:\\msys64'
@@ -252,7 +259,6 @@ def withGhcBinDist(String targetTriple, Closure f) {
def testGhc(params) {
String targetTriple = params?.targetTriple
String makeCmd = params?.makeCmd ?: 'make'
- boolean runNofib = params?.runNofib
withGhcBinDist(targetTriple) {
stage('Configure') {
@@ -276,18 +282,22 @@ def testGhc(params) {
sh "${makeCmd} -Ctestsuite/tests stage=2 LOCAL=0 BINDIST=YES THREADS=${env.THREADS} ${target}"
sh "${makeCmd} -Ctestsuite/tests/stage1 stage=1 LOCAL=0 BINDIST=YES THREADS=${env.THREADS} ${target}"
}
+ }
+}
+def nofib(params) {
+ String targetTriple = params?.targetTriple
+ String makeCmd = params?.makeCmd ?: 'make'
+ withGhcBinDist(targetTriple) {
stage('Run nofib') {
- if (runNofib) {
- installPkgs(['regex-compat'])
- sh """
- cd nofib
- ${makeCmd} clean
- ${makeCmd} boot
- ${makeCmd} >../nofib.log 2>&1
- """
- archiveArtifacts artifacts: 'nofib.log'
- }
+ installPkgs(['regex-compat'])
+ sh """
+ cd nofib
+ ${makeCmd} clean
+ ${makeCmd} boot
+ ${makeCmd} >../nofib.log 2>&1
+ """
+ archiveArtifacts artifacts: 'nofib.log'
}
}
}
More information about the ghc-commits
mailing list