2016-10-28 23:43:16 +03:00
branches :
- master
- auto
- try
2017-11-17 22:15:50 +03:00
context : f27-primary
2016-11-22 17:29:29 +03:00
2016-12-06 22:45:49 +03:00
required : true
2017-07-17 20:40:25 +03:00
cluster :
hosts :
- name : vmcheck1
2017-11-17 22:15:50 +03:00
distro : fedora/27/atomic
2017-07-17 20:40:25 +03:00
- name : vmcheck2
2017-11-17 22:15:50 +03:00
distro : fedora/27/atomic
2017-07-17 20:40:25 +03:00
- name : vmcheck3
2017-11-17 22:15:50 +03:00
distro : fedora/27/atomic
2017-07-17 20:40:25 +03:00
container :
2017-11-17 22:15:50 +03:00
image : registry.fedoraproject.org/fedora:27
2016-11-12 00:21:39 +03:00
2017-07-17 20:40:25 +03:00
env :
HOSTS : vmcheck1 vmcheck2 vmcheck3
2017-09-19 17:40:35 +03:00
# TODO use -fsanitize=address
CFLAGS : '-fsanitize=undefined -fsanitize-undefined-trap-on-error -O2 -Wp,-D_FORTIFY_SOURCE=2'
ASAN_OPTIONS : 'detect_leaks=0' # Right now we're not fully clean, but this gets us use-after-free etc
2017-09-06 20:53:46 +03:00
CI_PKGS : rsync
2017-05-12 17:18:50 +03:00
2016-10-28 23:43:16 +03:00
tests :
2017-05-11 21:28:49 +03:00
- ci/ci-commitmessage-submodules.sh
2017-06-22 00:09:03 +03:00
- ci/codestyle.sh
2017-07-05 19:02:33 +03:00
- ci/build-check.sh
2017-07-17 20:40:25 +03:00
- make vmcheck
2017-07-05 19:02:33 +03:00
2017-07-17 20:40:25 +03:00
timeout : 60m
2017-06-08 23:17:33 +03:00
2017-07-17 20:40:25 +03:00
artifacts :
- test-suite.log
2017-09-19 17:40:35 +03:00
- config.log
2017-07-17 20:40:25 +03:00
- vmcheck
2017-06-08 23:17:33 +03:00
---
inherit : true
2017-07-17 20:40:25 +03:00
context : c7-primary
2016-11-22 17:29:29 +03:00
2016-12-07 23:14:54 +03:00
required : true
2016-12-06 22:45:49 +03:00
2016-11-22 17:29:29 +03:00
cluster :
hosts :
2017-03-11 01:56:16 +03:00
- name : vmcheck1
2017-11-09 22:24:15 +03:00
distro : centos/7/atomic/smoketested
2017-03-11 01:56:16 +03:00
- name : vmcheck2
2017-11-09 22:24:15 +03:00
distro : centos/7/atomic/smoketested
2017-03-11 01:56:16 +03:00
- name : vmcheck3
2017-11-09 22:24:15 +03:00
distro : centos/7/atomic/smoketested
2017-07-05 19:02:33 +03:00
container :
2017-10-24 17:44:28 +03:00
image : registry.centos.org/centos/centos:7
2017-07-05 19:02:33 +03:00
2017-09-19 17:40:35 +03:00
# We only want the sanitizers on Fedora
env :
HOSTS : vmcheck1 vmcheck2 vmcheck3
CFLAGS : ''
2017-07-17 20:40:25 +03:00
extra-repos :
- name : atomic-centos-continuous
baseurl : https://ci.centos.org/artifacts/sig-atomic/rdgo/centos-continuous/build
gpgcheck : 0
2017-07-05 19:02:33 +03:00
tests :
2018-02-14 16:56:51 +03:00
# we're still on devmapper here; we need to expand rootfs for tests
- for vm in vmcheck{1..3}; do ssh $vm lvresize -r -L +5G atomicos/root; done
2017-07-17 20:40:25 +03:00
- yum install -y epel-release
- ci/build-check.sh
2017-07-05 19:02:33 +03:00
- make vmcheck
---
2017-07-05 19:01:31 +03:00
branches :
- master
- auto
- try
2017-12-02 22:45:58 +03:00
# NB: when bumping 27 here, also bump fedora.repo, and compose script
2017-05-26 23:21:02 +03:00
2017-12-02 22:45:58 +03:00
context : f27-compose
2017-07-05 19:01:31 +03:00
2016-12-03 02:07:08 +03:00
build : false
2017-07-05 19:01:31 +03:00
2017-12-02 22:45:58 +03:00
timeout : 40m
2016-12-03 02:07:08 +03:00
2017-07-05 19:01:31 +03:00
required : true
2016-12-03 02:07:08 +03:00
# This test case wants an "unprivileged container with bubblewrap",
# which we don't have right now; so just provision a VM and do a
# docker --privileged run.
host :
2017-12-02 22:45:58 +03:00
distro : fedora/27/atomic
2018-01-09 18:46:23 +03:00
# Compose tests are slow and should be parallelized
specs :
cpus : 4
2016-12-03 02:07:08 +03:00
Add releasever opt, avoid opening up host's rpmdb in treecompose
Closes: https://github.com/projectatomic/rpm-ostree/issues/546
Previously, we'd open up the host's rpmdb for both `compose tree`
and `ex container`. In the first case, because we require root, we'd
succeed. For `ex container`, we'd spew an error.
Fixing this was trickier than I thought. First because there was
*also* a libdnf bug here: https://github.com/rpm-software-management/libdnf/pull/307
Second, there's a compatibility hazard here for anyone using `.repo` files that
reference `$releasever`. This actually happened to me with `ex container` as I'd
just done a `ln -s /etc/yum.repos.d/fedora.repo rpmmd.repos.d`. I fixed
that first by doing a `sed -i -e 's,$releasever,26,' rpmmd.repos.d/*.repo`.
As far as I can see today, none of Fedora Atomic or CentOS AH rely on this. But
in order to enhance compatibility, let's add a "releasever" option. This makes
it easier again to reuse stock `.repo` files if we wanted to do so.
(Also, I realized we can just use `/usr/share/empty` as *the* canonical immutable
empty directory)
Closes: #875
Approved by: jlebon
2017-07-13 19:37:41 +03:00
# Copy yum.repos.d to get any injected repos from the host, which
# will point to a closer mirror. Note we substitute $releasever
# since https://github.com/projectatomic/rpm-ostree/pull/875
2016-12-03 02:07:08 +03:00
tests :
2017-05-26 23:21:02 +03:00
- docker run --privileged --rm
2017-09-29 17:01:18 +03:00
-e RPMOSTREE_COMPOSE_TEST_USE_REPOS=/etc/yum.repos.d.host
2017-05-26 23:21:02 +03:00
-v /etc/yum.repos.d:/etc/yum.repos.d.host:ro
-v $(pwd):/srv/code -w /srv/code
2017-12-02 22:45:58 +03:00
registry.fedoraproject.org/fedora:27 /bin/sh -c
2017-09-29 17:01:18 +03:00
"./ci/build.sh && make install && ./tests/compose"
2016-12-09 01:31:20 +03:00
artifacts :
2018-01-08 22:54:10 +03:00
- test-compose-logs
2017-07-27 21:27:31 +03:00
---
2017-09-29 17:01:18 +03:00
branches :
- master
- auto
- try
2017-12-02 22:45:58 +03:00
context : f27-ex-container
2017-09-29 17:01:18 +03:00
build : false
timeout : 30m
required : false
2017-12-02 22:45:58 +03:00
# See the f27-compose context for why we do things this way.
2017-09-29 17:01:18 +03:00
host :
2017-12-02 22:45:58 +03:00
distro : fedora/27/atomic
2017-09-29 17:01:18 +03:00
tests :
- docker run --privileged --rm
2017-12-02 22:45:58 +03:00
-e RPMOSTREE_COMPOSE_TEST_USE_REPOS=/etc/yum.repos.d.host
-v /etc/yum.repos.d:/etc/yum.repos.d.host:ro
2017-09-29 17:01:18 +03:00
-v $(pwd):/srv/code -w /srv/code
2017-12-02 22:45:58 +03:00
registry.fedoraproject.org/fedora:27 /bin/sh -c
2017-09-29 17:01:18 +03:00
"./ci/build.sh && make install && adduser unpriv && setfacl -m u:unpriv:rwX . && runuser -u unpriv ./tests/ex-container"
artifacts :
- ex-container-logs
---
2017-07-27 21:27:31 +03:00
branches :
- master
- auto
- try
cluster :
hosts :
- name : testnode
2017-11-22 19:17:21 +03:00
distro : fedora/27/atomic
2017-07-27 21:27:31 +03:00
container :
2017-11-22 19:17:21 +03:00
image : registry.fedoraproject.org/fedora:27
2017-07-27 21:27:31 +03:00
2017-11-22 19:17:21 +03:00
context : f27-sanity
2017-07-27 21:27:31 +03:00
2017-09-06 20:53:46 +03:00
# https://bugzilla.redhat.com/show_bug.cgi?id=1483553
#packages:
# - ansible
# - git
# - rsync
env :
2017-11-22 19:17:21 +03:00
CI_PKGS : git rsync python-virtualenv
2017-07-27 21:27:31 +03:00
tests :
- ci/build.sh
2017-09-06 20:53:46 +03:00
- git clone https://github.com/projectatomic/atomic-host-tests
2017-07-27 21:27:31 +03:00
- make vmoverlay HOSTS=testnode
- cd atomic-host-tests && ./.test_director