Skip to content

Commit 0c55f7d

Browse files
authored
ci(jenkins): run tests without async hooks on Node.js nightly (#1277)
1 parent 85c0a23 commit 0c55f7d

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed
File renamed without changes.

.ci/.jenkins_rc_nodejs.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
NODEJS_VERSION:
2+
- "12"
3+
- "11"
4+
- "10"
5+
- "8"
6+
- "6"

Jenkinsfile

+27-5
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pipeline {
171171
unstash 'source'
172172
dir("${BASE_DIR}"){
173173
script {
174-
def node = readYaml(file: '.ci/.jenkins_edge_nodejs.yml')
174+
def node = readYaml(file: '.ci/.jenkins_nightly_nodejs.yml')
175175
def parallelTasks = [:]
176176
node['NODEJS_VERSION'].each{ version ->
177177
parallelTasks["Node.js-${version}-nightly"] = generateStep(version: version, edge: true)
@@ -182,6 +182,28 @@ pipeline {
182182
}
183183
}
184184
}
185+
stage('Nightly Test - No async hooks') {
186+
agent { label 'docker && immutable' }
187+
environment {
188+
NVM_NODEJS_ORG_MIRROR = "https://nodejs.org/download/nightly/"
189+
}
190+
steps {
191+
withGithubNotify(context: 'Nightly No Async Hooks Test', tab: 'tests') {
192+
deleteDir()
193+
unstash 'source'
194+
dir("${BASE_DIR}"){
195+
script {
196+
def node = readYaml(file: '.ci/.jenkins_nightly_nodejs.yml')
197+
def parallelTasks = [:]
198+
node['NODEJS_VERSION'].findAll{ it != '6' }.each{ version ->
199+
parallelTasks["Node.js-${version}-nightly-no-async-hooks"] = generateStep(version: version, edge: true, disableAsyncHooks: true)
200+
}
201+
parallel(parallelTasks)
202+
}
203+
}
204+
}
205+
}
206+
}
185207
stage('RC Test') {
186208
agent { label 'docker && immutable' }
187209
environment {
@@ -193,7 +215,7 @@ pipeline {
193215
unstash 'source'
194216
dir("${BASE_DIR}"){
195217
script {
196-
def node = readYaml(file: '.ci/.jenkins_edge_nodejs.yml')
218+
def node = readYaml(file: '.ci/.jenkins_rc_nodejs.yml')
197219
def parallelTasks = [:]
198220
node['NODEJS_VERSION'].each { version ->
199221
parallelTasks["Node.js-${version}-rc"] = generateStep(version: version, edge: true)
@@ -210,15 +232,15 @@ pipeline {
210232
NVM_NODEJS_ORG_MIRROR = "https://nodejs.org/download/rc/"
211233
}
212234
steps {
213-
withGithubNotify(context: 'RC No Asyn Hooks Test', tab: 'tests') {
235+
withGithubNotify(context: 'RC No Async Hooks Test', tab: 'tests') {
214236
deleteDir()
215237
unstash 'source'
216238
dir("${BASE_DIR}"){
217239
script {
218-
def node = readYaml(file: '.ci/.jenkins_edge_nodejs.yml')
240+
def node = readYaml(file: '.ci/.jenkins_rc_nodejs.yml')
219241
def parallelTasks = [:]
220242
node['NODEJS_VERSION'].findAll{ it != '6' }.each{ version ->
221-
parallelTasks["Node.js-${version}-nightly-no_async_hooks"] = generateStep(version: version, edge: true, disableAsyncHooks: true)
243+
parallelTasks["Node.js-${version}-rc-no-async-hooks"] = generateStep(version: version, edge: true, disableAsyncHooks: true)
222244
}
223245
parallel(parallelTasks)
224246
}

0 commit comments

Comments
 (0)