Skip to content

Commit 52d2cec

Browse files
authored
Merge branch 'master' into port-52941
2 parents 917a849 + 257e910 commit 52d2cec

File tree

177 files changed

+3096
-4769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+3096
-4769
lines changed

.ci/docs

+3-62
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,6 @@
1-
@Library('salt@1.1') _
1+
@Library('salt@master-1.5') _
22

3-
// Define the maximum time, in hours, that a test run should run for
4-
def global_timeout = 2
5-
6-
properties([
7-
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
8-
])
9-
10-
// Only set milestones on PR builds
11-
if (env.CHANGE_ID) {
12-
// Be sure to cancel any previously running builds
13-
def buildNumber = env.BUILD_NUMBER as int
14-
if (buildNumber > 1) {
15-
// This will cancel the previous build which also defined a matching milestone
16-
milestone(buildNumber - 1)
17-
}
18-
// Define a milestone for this build so that, if another build starts, this one will be aborted
19-
milestone(buildNumber)
20-
}
21-
22-
def shell_header
23-
24-
wrappedNode('docs', global_timeout, '#jenkins-prod-pr') {
25-
26-
shell_header = ''
27-
// Checkout the repo
28-
stage('checkout-scm') {
29-
cleanWs notFailBuild: true
30-
checkout scm
31-
}
32-
33-
// Setup the kitchen required bundle
34-
stage('Setup') {
35-
sh shell_header + '''
36-
eval "$(pyenv init -)"
37-
pyenv --version
38-
pyenv install --skip-existing 3.6.8
39-
pyenv shell 3.6.8
40-
python --version
41-
pip install -U nox-py2
42-
nox --version
43-
'''
44-
}
45-
46-
stage('Build HTML Docs') {
47-
sh shell_header + '''
48-
eval "$(pyenv init -)"
49-
pyenv shell 3.6.8
50-
nox -e 'docs-html(compress=True)'
51-
'''
52-
archiveArtifacts artifacts: 'doc/html-archive.tar.gz'
53-
}
54-
55-
stage('Build Man Pages') {
56-
sh shell_header + '''
57-
eval "$(pyenv init -)"
58-
pyenv shell 3.6.8
59-
nox -e 'docs-man(compress=True, update=False)'
60-
'''
61-
archiveArtifacts artifacts: 'doc/man-archive.tar.gz'
62-
}
63-
}
3+
runDocs(
4+
env: env)
645

656
// vim: ft=groovy

.ci/kitchen-amazon1-py2

+12-44
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,16 @@
1-
@Library('salt@master-1.3') _
1+
@Library('salt@master-1.5') _
22

3-
// Define the maximum time, in hours, that a test run should run for
4-
def testrun_timeout = 6
5-
6-
def distro_name = 'amazon'
7-
def distro_version = '1'
8-
def python_version = 'py2'
9-
def nox_env_name = 'runtests-zeromq'
10-
def golden_images_branch = 'master'
11-
def nox_passthrough_opts = '--ssh-tests'
12-
def concurrent_builds = 1
13-
def use_spot_instances = true
14-
def jenkins_slave_label = 'kitchen-slave'
15-
16-
properties([
17-
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30')),
18-
parameters([
19-
booleanParam(defaultValue: true, description: 'Run full test suite', name: 'runFull')
20-
])
21-
])
22-
23-
// Only set milestones on PR builds
24-
if (env.CHANGE_ID) {
25-
// Be sure to cancel any previously running builds
26-
def buildNumber = env.BUILD_NUMBER as int
27-
if (buildNumber > concurrent_builds) {
28-
// This will cancel the previous build which also defined a matching milestone
29-
milestone(buildNumber - concurrent_builds)
30-
}
31-
// Define a milestone for this build so that, if another build starts, this one will be aborted
32-
milestone(buildNumber)
33-
}
34-
35-
runTests(
3+
runTestSuite(
4+
concurrent_builds: 1,
5+
distro_name: 'amazon',
6+
distro_version: '1',
367
env: env,
37-
distro_name: distro_name,
38-
distro_version: distro_version,
39-
python_version: python_version,
40-
golden_images_branch: golden_images_branch,
41-
nox_env_name: nox_env_name,
42-
nox_passthrough_opts: nox_passthrough_opts,
43-
testrun_timeout: testrun_timeout,
44-
run_full: params.runFull,
45-
use_spot_instances: use_spot_instances,
46-
jenkins_slave_label: jenkins_slave_label)
8+
golden_images_branch: 'master',
9+
jenkins_slave_label: 'kitchen-slave',
10+
nox_env_name: 'runtests-zeromq',
11+
nox_passthrough_opts: '--ssh-tests',
12+
python_version: 'py2',
13+
testrun_timeout: 6,
14+
use_spot_instances: true)
4715

4816
// vim: ft=groovy

.ci/kitchen-amazon2-py2

+12-44
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,16 @@
1-
@Library('salt@master-1.3') _
1+
@Library('salt@master-1.5') _
22

3-
// Define the maximum time, in hours, that a test run should run for
4-
def testrun_timeout = 6
5-
6-
def distro_name = 'amazon'
7-
def distro_version = '2'
8-
def python_version = 'py2'
9-
def nox_env_name = 'runtests-zeromq'
10-
def golden_images_branch = 'master'
11-
def nox_passthrough_opts = '--ssh-tests'
12-
def concurrent_builds = 1
13-
def use_spot_instances = true
14-
def jenkins_slave_label = 'kitchen-slave'
15-
16-
properties([
17-
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30')),
18-
parameters([
19-
booleanParam(defaultValue: true, description: 'Run full test suite', name: 'runFull')
20-
])
21-
])
22-
23-
// Only set milestones on PR builds
24-
if (env.CHANGE_ID) {
25-
// Be sure to cancel any previously running builds
26-
def buildNumber = env.BUILD_NUMBER as int
27-
if (buildNumber > concurrent_builds) {
28-
// This will cancel the previous build which also defined a matching milestone
29-
milestone(buildNumber - concurrent_builds)
30-
}
31-
// Define a milestone for this build so that, if another build starts, this one will be aborted
32-
milestone(buildNumber)
33-
}
34-
35-
runTests(
3+
runTestSuite(
4+
concurrent_builds: 1,
5+
distro_name: 'amazon',
6+
distro_version: '2',
367
env: env,
37-
distro_name: distro_name,
38-
distro_version: distro_version,
39-
python_version: python_version,
40-
golden_images_branch: golden_images_branch,
41-
nox_env_name: nox_env_name,
42-
nox_passthrough_opts: nox_passthrough_opts,
43-
testrun_timeout: testrun_timeout,
44-
run_full: params.runFull,
45-
use_spot_instances: use_spot_instances,
46-
jenkins_slave_label: jenkins_slave_label)
8+
golden_images_branch: 'master',
9+
jenkins_slave_label: 'kitchen-slave',
10+
nox_env_name: 'runtests-zeromq',
11+
nox_passthrough_opts: '--ssh-tests',
12+
python_version: 'py2',
13+
testrun_timeout: 6,
14+
use_spot_instances: true)
4715

4816
// vim: ft=groovy

.ci/kitchen-amazon2-py3

+12-44
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,16 @@
1-
@Library('salt@master-1.3') _
1+
@Library('salt@master-1.5') _
22

3-
// Define the maximum time, in hours, that a test run should run for
4-
def testrun_timeout = 6
5-
6-
def distro_name = 'amazon'
7-
def distro_version = '2'
8-
def python_version = 'py3'
9-
def nox_env_name = 'runtests-zeromq'
10-
def golden_images_branch = 'master'
11-
def nox_passthrough_opts = '--ssh-tests'
12-
def concurrent_builds = 1
13-
def use_spot_instances = true
14-
def jenkins_slave_label = 'kitchen-slave'
15-
16-
properties([
17-
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30')),
18-
parameters([
19-
booleanParam(defaultValue: true, description: 'Run full test suite', name: 'runFull')
20-
])
21-
])
22-
23-
// Only set milestones on PR builds
24-
if (env.CHANGE_ID) {
25-
// Be sure to cancel any previously running builds
26-
def buildNumber = env.BUILD_NUMBER as int
27-
if (buildNumber > concurrent_builds) {
28-
// This will cancel the previous build which also defined a matching milestone
29-
milestone(buildNumber - concurrent_builds)
30-
}
31-
// Define a milestone for this build so that, if another build starts, this one will be aborted
32-
milestone(buildNumber)
33-
}
34-
35-
runTests(
3+
runTestSuite(
4+
concurrent_builds: 1,
5+
distro_name: 'amazon',
6+
distro_version: '2',
367
env: env,
37-
distro_name: distro_name,
38-
distro_version: distro_version,
39-
python_version: python_version,
40-
golden_images_branch: golden_images_branch,
41-
nox_env_name: nox_env_name,
42-
nox_passthrough_opts: nox_passthrough_opts,
43-
testrun_timeout: testrun_timeout,
44-
run_full: params.runFull,
45-
use_spot_instances: use_spot_instances,
46-
jenkins_slave_label: jenkins_slave_label)
8+
golden_images_branch: 'master',
9+
jenkins_slave_label: 'kitchen-slave',
10+
nox_env_name: 'runtests-zeromq',
11+
nox_passthrough_opts: '--ssh-tests',
12+
python_version: 'py3',
13+
testrun_timeout: 6,
14+
use_spot_instances: true)
4715

4816
// vim: ft=groovy

.ci/kitchen-archlts-py2

+12-44
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,16 @@
1-
@Library('salt@master-1.3') _
1+
@Library('salt@master-1.5') _
22

3-
// Define the maximum time, in hours, that a test run should run for
4-
def testrun_timeout = 6
5-
6-
def distro_name = 'arch'
7-
def distro_version = 'lts'
8-
def python_version = 'py2'
9-
def nox_env_name = 'runtests-zeromq'
10-
def golden_images_branch = 'master'
11-
def nox_passthrough_opts = '-n integration.modules.test_pkg'
12-
def concurrent_builds = 1
13-
def use_spot_instances = true
14-
def jenkins_slave_label = 'kitchen-slave'
15-
16-
properties([
17-
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30')),
18-
parameters([
19-
booleanParam(defaultValue: true, description: 'Run full test suite', name: 'runFull')
20-
])
21-
])
22-
23-
// Only set milestones on PR builds
24-
if (env.CHANGE_ID) {
25-
// Be sure to cancel any previously running builds
26-
def buildNumber = env.BUILD_NUMBER as int
27-
if (buildNumber > concurrent_builds) {
28-
// This will cancel the previous build which also defined a matching milestone
29-
milestone(buildNumber - concurrent_builds)
30-
}
31-
// Define a milestone for this build so that, if another build starts, this one will be aborted
32-
milestone(buildNumber)
33-
}
34-
35-
runTests(
3+
runTestSuite(
4+
concurrent_builds: 1,
5+
distro_name: 'arch',
6+
distro_version: 'lts',
367
env: env,
37-
distro_name: distro_name,
38-
distro_version: distro_version,
39-
python_version: python_version,
40-
golden_images_branch: golden_images_branch,
41-
nox_env_name: nox_env_name,
42-
nox_passthrough_opts: nox_passthrough_opts,
43-
testrun_timeout: testrun_timeout,
44-
run_full: params.runFull,
45-
use_spot_instances: use_spot_instances,
46-
jenkins_slave_label: jenkins_slave_label)
8+
golden_images_branch: 'master',
9+
jenkins_slave_label: 'kitchen-slave',
10+
nox_env_name: 'runtests-zeromq',
11+
nox_passthrough_opts: '-n integration.modules.test_pkg',
12+
python_version: 'py2',
13+
testrun_timeout: 6,
14+
use_spot_instances: true)
4715

4816
// vim: ft=groovy

.ci/kitchen-archlts-py3

+12-44
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,16 @@
1-
@Library('salt@master-1.3') _
1+
@Library('salt@master-1.5') _
22

3-
// Define the maximum time, in hours, that a test run should run for
4-
def testrun_timeout = 6
5-
6-
def distro_name = 'arch'
7-
def distro_version = 'lts'
8-
def python_version = 'py3'
9-
def nox_env_name = 'runtests-zeromq'
10-
def golden_images_branch = 'master'
11-
def nox_passthrough_opts = '-n integration.modules.test_pkg'
12-
def concurrent_builds = 1
13-
def use_spot_instances = true
14-
def jenkins_slave_label = 'kitchen-slave'
15-
16-
properties([
17-
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30')),
18-
parameters([
19-
booleanParam(defaultValue: true, description: 'Run full test suite', name: 'runFull')
20-
])
21-
])
22-
23-
// Only set milestones on PR builds
24-
if (env.CHANGE_ID) {
25-
// Be sure to cancel any previously running builds
26-
def buildNumber = env.BUILD_NUMBER as int
27-
if (buildNumber > concurrent_builds) {
28-
// This will cancel the previous build which also defined a matching milestone
29-
milestone(buildNumber - concurrent_builds)
30-
}
31-
// Define a milestone for this build so that, if another build starts, this one will be aborted
32-
milestone(buildNumber)
33-
}
34-
35-
runTests(
3+
runTestSuite(
4+
concurrent_builds: 1,
5+
distro_name: 'arch',
6+
distro_version: 'lts',
367
env: env,
37-
distro_name: distro_name,
38-
distro_version: distro_version,
39-
python_version: python_version,
40-
golden_images_branch: golden_images_branch,
41-
nox_env_name: nox_env_name,
42-
nox_passthrough_opts: nox_passthrough_opts,
43-
testrun_timeout: testrun_timeout,
44-
run_full: params.runFull,
45-
use_spot_instances: use_spot_instances,
46-
jenkins_slave_label: jenkins_slave_label)
8+
golden_images_branch: 'master',
9+
jenkins_slave_label: 'kitchen-slave',
10+
nox_env_name: 'runtests-zeromq',
11+
nox_passthrough_opts: '-n integration.modules.test_pkg',
12+
python_version: 'py3',
13+
testrun_timeout: 6,
14+
use_spot_instances: true)
4715

4816
// vim: ft=groovy

0 commit comments

Comments
 (0)