2016-10-28 23:43:16 +03:00
branches :
- master
- auto
- try
2017-07-17 20:40:25 +03:00
context : f26-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
distro : fedora/26/atomic
- name : vmcheck2
distro : fedora/26/atomic
- name : vmcheck3
distro : fedora/26/atomic
container :
image : registry.fedoraproject.org/fedora:26
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-07-17 20:40:25 +03:00
distro : centos/7/atomic/alpha
2017-03-11 01:56:16 +03:00
- name : vmcheck2
2017-07-17 20:40:25 +03:00
distro : centos/7/atomic/alpha
2017-03-11 01:56:16 +03:00
- name : vmcheck3
2017-07-17 20:40:25 +03:00
distro : centos/7/atomic/alpha
2017-07-05 19:02:33 +03:00
container :
2017-09-12 16:20:04 +03:00
# FIXME remove this version binding when rpm-md repos are updated
image : registry.centos.org/centos/centos:7.3.1611
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 :
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-07-17 20:40:25 +03:00
# NB: when bumping 26 here, also bump fedora.repo, and compose script
2017-05-26 23:21:02 +03:00
2017-07-17 20:40:25 +03:00
context : f26-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
2016-12-03 02:07:08 +03:00
timeout : 30m
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-07-17 20:40:25 +03:00
distro : fedora/26/atomic
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-07-17 20:40:25 +03:00
registry.fedoraproject.org/fedora:26 /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 :
- compose.log
2017-07-27 21:27:31 +03:00
---
2017-09-29 17:01:18 +03:00
branches :
- master
- auto
- try
context : f26-to-27-ex-container
build : false
timeout : 30m
required : false
# See the f26-compose context for why we do things this way.
host :
distro : fedora/26/atomic
# We're not doing this bit yet since it breaks unless we use metalinks
# because f27 isn't released yet and released content is in a separate path.
# -e RPMOSTREE_COMPOSE_TEST_USE_REPOS=/etc/yum.repos.d.host
# -v /etc/yum.repos.d:/etc/yum.repos.d.host:ro
tests :
- docker run --privileged --rm
-v $(pwd):/srv/code -w /srv/code
registry.fedoraproject.org/fedora:26 /bin/sh -c
"./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
distro : fedora/26/atomic
container :
image : registry.fedoraproject.org/fedora:26
context : f26-sanity
2017-09-06 20:53:46 +03:00
# https://bugzilla.redhat.com/show_bug.cgi?id=1483553
#packages:
# - ansible
# - git
# - rsync
env :
CI_PKGS : ansible git rsync
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