Add support for running tox with PyPy and use it for Marconi
This works by installing PyPy from the Ubuntu PPA, and then invoking `tox -e pypy` (similar to all the other Python buidlers). PyPy shares nodes with the Python3 builders. Change-Id: Ibf683c1995b0f5c04c93c56010befb222b386d7a
This commit is contained in:
parent
6641c29e5d
commit
32db246dd3
@ -497,9 +497,10 @@ node /^precisepy3k-?\d+.*\.slave\.openstack\.org$/ {
|
|||||||
include openstack_project
|
include openstack_project
|
||||||
include openstack_project::puppet_cron
|
include openstack_project::puppet_cron
|
||||||
class { 'openstack_project::slave':
|
class { 'openstack_project::slave':
|
||||||
ssh_key => $openstack_project::jenkins_ssh_key,
|
ssh_key => $openstack_project::jenkins_ssh_key,
|
||||||
sysadmins => hiera('sysadmins'),
|
sysadmins => hiera('sysadmins'),
|
||||||
python3 => true,
|
python3 => true,
|
||||||
|
include_pypy => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -507,9 +508,10 @@ node /^precisepy3k-dev\d+.*\.slave\.openstack\.org$/ {
|
|||||||
include openstack_project
|
include openstack_project
|
||||||
include openstack_project::puppet_cron
|
include openstack_project::puppet_cron
|
||||||
class { 'openstack_project::slave':
|
class { 'openstack_project::slave':
|
||||||
ssh_key => $openstack_project::jenkins_dev_ssh_key,
|
ssh_key => $openstack_project::jenkins_dev_ssh_key,
|
||||||
sysadmins => hiera('sysadmins'),
|
sysadmins => hiera('sysadmins'),
|
||||||
python3 => true,
|
python3 => true,
|
||||||
|
include_pypy => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ class jenkins::slave(
|
|||||||
$bare = false,
|
$bare = false,
|
||||||
$user = true,
|
$user = true,
|
||||||
$python3 = false,
|
$python3 = false,
|
||||||
|
$include_pypy = false
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include pip
|
include pip
|
||||||
@ -340,6 +341,14 @@ class jenkins::slave(
|
|||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
command => '/sbin/sysctl -p /etc/sysctl.d/10-ptrace.conf',
|
command => '/sbin/sysctl -p /etc/sysctl.d/10-ptrace.conf',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $include_pypy {
|
||||||
|
apt::ppa { 'ppa:pypy/pypy': }
|
||||||
|
package { 'pypy':
|
||||||
|
ensure => present,
|
||||||
|
require => Apt::Ppa['ppa:pypy/pypy']
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/rsyslog.d/99-maxsize.conf':
|
file { '/etc/rsyslog.d/99-maxsize.conf':
|
||||||
|
@ -146,6 +146,11 @@
|
|||||||
builders:
|
builders:
|
||||||
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 33 {github-org} {project}"
|
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 33 {github-org} {project}"
|
||||||
|
|
||||||
|
- builder:
|
||||||
|
name: pypy
|
||||||
|
builders:
|
||||||
|
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh py {github-org} {project}"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: assert-no-extra-files
|
name: assert-no-extra-files
|
||||||
builders:
|
builders:
|
||||||
|
@ -739,6 +739,7 @@
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- python-jobs
|
- python-jobs
|
||||||
|
- gate-{name}-pypy
|
||||||
|
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
|
@ -116,6 +116,28 @@
|
|||||||
|
|
||||||
node: precisepy3k
|
node: precisepy3k
|
||||||
|
|
||||||
|
- job-template:
|
||||||
|
name: 'gate-{name}-pypy'
|
||||||
|
|
||||||
|
wrappers:
|
||||||
|
- timeout:
|
||||||
|
timeout: 40
|
||||||
|
fail: true
|
||||||
|
- timestamps
|
||||||
|
|
||||||
|
builders:
|
||||||
|
- gerrit-git-prep
|
||||||
|
- pypy:
|
||||||
|
github-org: '{github-org}'
|
||||||
|
project: '{name}'
|
||||||
|
- assert-no-extra-files
|
||||||
|
|
||||||
|
publishers:
|
||||||
|
- test-results
|
||||||
|
- console-log
|
||||||
|
|
||||||
|
node: precisepy3k
|
||||||
|
|
||||||
- job-template:
|
- job-template:
|
||||||
name: 'gate-{name}-docs'
|
name: 'gate-{name}-docs'
|
||||||
|
|
||||||
|
@ -1678,11 +1678,13 @@ projects:
|
|||||||
- gate-marconi-python26
|
- gate-marconi-python26
|
||||||
- gate-marconi-python27
|
- gate-marconi-python27
|
||||||
- gate-marconi-python33
|
- gate-marconi-python33
|
||||||
|
- gate-marconi-pypy
|
||||||
gate:
|
gate:
|
||||||
- gate-marconi-pep8
|
- gate-marconi-pep8
|
||||||
- gate-marconi-python26
|
- gate-marconi-python26
|
||||||
- gate-marconi-python27
|
- gate-marconi-python27
|
||||||
- gate-marconi-python33
|
- gate-marconi-python33
|
||||||
|
- gate-marconi-pypy
|
||||||
|
|
||||||
- name: stackforge/staccato
|
- name: stackforge/staccato
|
||||||
check:
|
check:
|
||||||
|
@ -5,7 +5,8 @@ class openstack_project::slave (
|
|||||||
$certname = $::fqdn,
|
$certname = $::fqdn,
|
||||||
$ssh_key = '',
|
$ssh_key = '',
|
||||||
$sysadmins = [],
|
$sysadmins = [],
|
||||||
$python3 = false
|
$python3 = false,
|
||||||
|
$include_pypy = false
|
||||||
) {
|
) {
|
||||||
include openstack_project
|
include openstack_project
|
||||||
include openstack_project::tmpcleanup
|
include openstack_project::tmpcleanup
|
||||||
@ -16,9 +17,10 @@ class openstack_project::slave (
|
|||||||
sysadmins => $sysadmins,
|
sysadmins => $sysadmins,
|
||||||
}
|
}
|
||||||
class { 'jenkins::slave':
|
class { 'jenkins::slave':
|
||||||
bare => $bare,
|
bare => $bare,
|
||||||
ssh_key => $ssh_key,
|
ssh_key => $ssh_key,
|
||||||
python3 => $python3,
|
python3 => $python3,
|
||||||
|
include_pypy => $include_pypy,
|
||||||
}
|
}
|
||||||
class { 'salt':
|
class { 'salt':
|
||||||
salt_master => 'ci-puppetmaster.openstack.org',
|
salt_master => 'ci-puppetmaster.openstack.org',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user