Skip to content

Commit 4cbd900

Browse files
committed
[MERGE #982] Remove exception for missing clang 3.8 toolchain; update CI config.
Merge pull request #982 from dilijev:linux-ci-m Tested these changes in the linux-ci branch and no breaks resulted.
2 parents 2740f5e + 341f914 commit 4cbd900

File tree

3 files changed

+42
-37
lines changed

3 files changed

+42
-37
lines changed

build.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ if [[ ${#_CXX} > 0 || ${#_CC} > 0 ]]; then
111111

112112
if [[ ! -f $_CXX || ! -f $_CC ]]; then
113113
echo "ERROR: Custom compiler not found on given path"
114-
# TODO change this to exit 1 once clang requirement on build machines is satisfied
115-
exit 0
114+
exit 1
116115
fi
117116
else
118117
RET_VAL=$(SAFE_RUN 'c++ --version')
@@ -127,8 +126,7 @@ else
127126
echo ""
128127
echo "You could use clang++ from a custom location."
129128
PRINT_USAGE
130-
# TODO change this to exit 1 once clang requirement on build machines is satisfied
131-
exit 0
129+
exit 1
132130
fi
133131
fi
134132
fi

netci.groovy

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def dailyRegex = 'dailies'
2929
// Only generate PR check triggers for the version of netci.groovy in the master branch
3030
// since those PR checks will apply for all branches.
3131
def jobTypesToGenerate = [false]
32-
if (branch == 'master') {
32+
if (branch.startsWith('master')) {
3333
// OK to generate PR checks (this ensures we only generate one set of them)
3434
jobTypesToGenerate += true
3535
}
@@ -122,6 +122,8 @@ def CreateLinuxBuildTasks = { machine, configTag, linuxBranch, nonDefaultTaskSet
122122
// params: Project, BaseTaskName, IsPullRequest (appends '_prtest')
123123
def jobName = Utilities.getFullJobName(project, config, isPR)
124124

125+
def testableConfig = buildType in ['debug']
126+
125127
def infoScript = 'bash jenkins/get_system_info.sh'
126128
def debugFlag = buildType == 'debug' ? '--debug' : ''
127129
def buildScript = "bash ./build.sh -j=`nproc` ${debugFlag} --cxx=/usr/bin/clang++-3.8 --cc=/usr/bin/clang-3.8"
@@ -131,7 +133,9 @@ def CreateLinuxBuildTasks = { machine, configTag, linuxBranch, nonDefaultTaskSet
131133
steps {
132134
shell(infoScript)
133135
shell(buildScript)
134-
shell(testScript)
136+
if (testableConfig) {
137+
shell(testScript)
138+
}
135139
}
136140
}
137141

@@ -211,29 +215,31 @@ CreateBuildTasks('Windows_NT', null, null, null, true, null, null)
211215
// DAILY BUILD TASKS
212216
// -----------------
213217

214-
// build and test on Windows 7 with VS 2013 (Dev12/MsBuild12)
215-
CreateBuildTasks('Windows 7', 'daily_dev12', 'msbuild12', '-win7 -includeSlow', false,
216-
/* excludeConfigIf */ { isPR, buildArch, buildType -> (buildArch == 'arm') },
217-
/* nonDefaultTaskSetup */ { newJob, isPR, config ->
218-
DailyBuildTaskSetup(newJob, isPR,
219-
"Windows 7 ${config}",
220-
'(dev12|legacy)\\s+tests')})
221-
222-
// build and test on the usual configuration (VS 2015) with -includeSlow
223-
CreateBuildTasks('Windows_NT', 'daily_slow', null, '-includeSlow', false,
224-
/* excludeConfigIf */ null,
225-
/* nonDefaultTaskSetup */ { newJob, isPR, config ->
226-
DailyBuildTaskSetup(newJob, isPR,
227-
"Windows ${config}",
228-
'slow\\s+tests')})
229-
230-
// build and test on the usual configuration (VS 2015) with JIT disabled
231-
CreateBuildTasks('Windows_NT', 'daily_disablejit', '"/p:BuildJIT=false"', '-disablejit', true,
232-
/* excludeConfigIf */ null,
233-
/* nonDefaultTaskSetup */ { newJob, isPR, config ->
234-
DailyBuildTaskSetup(newJob, isPR,
235-
"Windows ${config}",
236-
'(disablejit|nojit)\\s+tests')})
218+
if (!branch.endsWith('-ci')) {
219+
// build and test on Windows 7 with VS 2013 (Dev12/MsBuild12)
220+
CreateBuildTasks('Windows 7', 'daily_dev12', 'msbuild12', '-win7 -includeSlow', false,
221+
/* excludeConfigIf */ { isPR, buildArch, buildType -> (buildArch == 'arm') },
222+
/* nonDefaultTaskSetup */ { newJob, isPR, config ->
223+
DailyBuildTaskSetup(newJob, isPR,
224+
"Windows 7 ${config}",
225+
'(dev12|legacy)\\s+tests')})
226+
227+
// build and test on the usual configuration (VS 2015) with -includeSlow
228+
CreateBuildTasks('Windows_NT', 'daily_slow', null, '-includeSlow', false,
229+
/* excludeConfigIf */ null,
230+
/* nonDefaultTaskSetup */ { newJob, isPR, config ->
231+
DailyBuildTaskSetup(newJob, isPR,
232+
"Windows ${config}",
233+
'slow\\s+tests')})
234+
235+
// build and test on the usual configuration (VS 2015) with JIT disabled
236+
CreateBuildTasks('Windows_NT', 'daily_disablejit', '"/p:BuildJIT=false"', '-disablejit', true,
237+
/* excludeConfigIf */ null,
238+
/* nonDefaultTaskSetup */ { newJob, isPR, config ->
239+
DailyBuildTaskSetup(newJob, isPR,
240+
"Windows ${config}",
241+
'(disablejit|nojit)\\s+tests')})
242+
}
237243

238244
// ----------------
239245
// CODE STYLE TASKS
@@ -246,16 +252,18 @@ CreateStyleCheckTasks('./jenkins/check_copyright.sh', 'ubuntu_check_copyright',
246252
// LINUX BUILD TASKS
247253
// -----------------
248254

249-
if (branch == 'linux') {
255+
if (branch.startsWith('linux')) {
250256
osString = 'Ubuntu16.04'
251257

252258
// PR checks
253259
CreateLinuxBuildTasks(osString, "ubuntu", branch, null)
254260

255261
// daily builds
256-
CreateLinuxBuildTasks(osString, "daily_ubuntu", branch,
257-
/* nonDefaultTaskSetup */ { newJob, isPR, config ->
258-
DailyBuildTaskSetup(newJob, isPR,
259-
"Ubuntu ${config}",
260-
'linux\\s+tests')})
262+
if (!branch.endsWith('-ci')) {
263+
CreateLinuxBuildTasks(osString, "daily_ubuntu", branch,
264+
/* nonDefaultTaskSetup */ { newJob, isPR, config ->
265+
DailyBuildTaskSetup(newJob, isPR,
266+
"Ubuntu ${config}",
267+
'linux\\s+tests')})
268+
}
261269
}

test/runtests.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ ch_path="$test_path/../BuildLinux/ch"
1010

1111
if [ ! -f $ch_path ]; then
1212
echo 'ch not found- exiting'
13-
# TODO change this to exit 1 once clang requirement on build machines is satisfied
14-
exit 0
13+
exit 1
1514
fi
1615

1716
"$test_path/runtests.py" Basics/hello.js

0 commit comments

Comments
 (0)