2016-10-19 19:37:54 +03:00
branches :
- master
- auto
- try
2016-12-07 00:29:39 +03:00
required : true
2017-03-28 20:29:38 +03:00
context : f25-sanitizer
2016-12-07 00:29:39 +03:00
2016-10-19 19:37:54 +03:00
container :
2016-10-19 23:49:56 +03:00
image : projectatomic/ostree-tester
2016-10-19 19:37:54 +03:00
2016-12-08 05:26:43 +03:00
packages :
- libasan
2017-03-30 23:47:57 +03:00
- git
2017-03-23 20:06:07 +03:00
- coccinelle
2016-12-08 05:26:43 +03:00
2016-11-09 05:37:43 +03:00
env :
2017-03-28 20:29:38 +03:00
CFLAGS : '-fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address -O2 -Wp,-D_FORTIFY_SOURCE=2'
2016-12-08 05:26:43 +03:00
ASAN_OPTIONS : 'detect_leaks=0' # Right now we're not fully clean, but this gets us use-after-free etc
# TODO when we're doing leak checks: G_SLICE: "always-malloc"
2016-11-09 05:37:43 +03:00
build :
config-opts : >
--prefix=/usr
--libdir=/usr/lib64
2017-05-08 17:44:43 +03:00
--enable-installed-tests=exclusive
2016-11-09 05:37:43 +03:00
--enable-gtk-doc
2017-05-08 17:44:43 +03:00
# The g-d-t-r timeout is for test-pull-many.sh; if tweaking this,
# also be sure to change the other cases below
2016-10-19 19:37:54 +03:00
tests :
- make syntax-check
2017-03-30 23:47:57 +03:00
- ./tests/ci-commitmessage-submodules.sh
2016-10-19 19:37:54 +03:00
- make check
2017-05-08 17:44:43 +03:00
- /bin/sh -c 'gnome-desktop-testing-runner -p 0 --timeout $((10 * 60)) libostree/'
2016-10-19 19:37:54 +03:00
timeout : 30m
artifacts :
- test-suite.log
2016-10-27 19:03:04 +03:00
---
inherit : true
2016-12-07 00:29:39 +03:00
required : true
2016-10-27 19:03:04 +03:00
2017-03-28 20:29:38 +03:00
context : f25-clang
2016-10-27 19:03:04 +03:00
2016-11-09 05:37:43 +03:00
env :
CC : 'clang'
CFLAGS : '-Werror=unused-variable'
tests :
2016-10-27 19:03:04 +03:00
artifacts :
oxidation: Add implementation of bupsplit in Rust
This is an initial drop of "oxidation", or adding implementation
of components in Rust. The bupsplit code is a good target - no
dependencies, just computation.
Translation into Rust had a few twists -
- The C code relies a lot on overflowing unsigned ints, and
also on the C promotion rules for e.g. `uint8_t -> int32_t`
- There were some odd loops that I introduced bugs in while
translating...in particular, the function always returns `len`,
but I mistakenly translated to `len+1`, resulting in an OOB
read on the C side, which was hard to debug.
On the plus side, an off-by-one array indexing in the Rust code paniced nicely.
In practice, we'll need a lot more build infrastructure to make this work, such
as using `cargo vendor` when producing build artifacts for example. Also, Cargo
is yet another thing we need to cache.
Where do we go with this? Well, I think we should merge this, it's not a lot of
code. We can just have it be an alternative CI target. Should we do a lot more
right now? Probably not immediately, but I find the medium/long term prospects
pretty exciting!
Closes: #656
Approved by: jlebon
2017-01-25 05:43:53 +03:00
---
inherit : true
context : f25-rust
packages :
- cargo
build :
config-opts : >
--prefix=/usr
--libdir=/usr/lib64
--enable-gtk-doc
--enable-rust
env :
CC : 'gcc'
tests :
- make check TESTS=tests/test-rollsum
2017-05-19 17:39:48 +03:00
artifacts :
- test-suite.log
---
inherit : true
context : f25-experimental-api
build :
config-opts : >
--prefix=/usr
--libdir=/usr/lib64
--enable-gtk-doc
--enable-experimental-api
env :
CC : 'gcc'
tests :
- make check
- /bin/sh -c 'gnome-desktop-testing-runner -p 0 --timeout $((10 * 60)) libostree/'
artifacts :
- test-suite.log
2016-12-08 05:02:30 +03:00
---
inherit : true
required : true
2017-03-28 20:29:38 +03:00
context : f25-curl-openssl
2016-12-08 05:02:30 +03:00
packages :
- pkgconfig(libcurl)
2017-03-13 21:41:14 +03:00
- pkgconfig(openssl)
2016-12-08 05:02:30 +03:00
build :
config-opts : >
--prefix=/usr
--libdir=/usr/lib64
2017-05-08 17:44:43 +03:00
--enable-installed-tests=exclusive
2016-12-08 05:02:30 +03:00
--enable-gtk-doc
--with-curl
2017-03-13 21:41:14 +03:00
--with-openssl
2016-12-08 05:02:30 +03:00
tests :
- make check
2017-05-08 17:44:43 +03:00
- /bin/sh -c 'gnome-desktop-testing-runner -p 0 --timeout $((10 * 60)) libostree/'
2016-12-08 05:02:30 +03:00
oxidation: Add implementation of bupsplit in Rust
This is an initial drop of "oxidation", or adding implementation
of components in Rust. The bupsplit code is a good target - no
dependencies, just computation.
Translation into Rust had a few twists -
- The C code relies a lot on overflowing unsigned ints, and
also on the C promotion rules for e.g. `uint8_t -> int32_t`
- There were some odd loops that I introduced bugs in while
translating...in particular, the function always returns `len`,
but I mistakenly translated to `len+1`, resulting in an OOB
read on the C side, which was hard to debug.
On the plus side, an off-by-one array indexing in the Rust code paniced nicely.
In practice, we'll need a lot more build infrastructure to make this work, such
as using `cargo vendor` when producing build artifacts for example. Also, Cargo
is yet another thing we need to cache.
Where do we go with this? Well, I think we should merge this, it's not a lot of
code. We can just have it be an alternative CI target. Should we do a lot more
right now? Probably not immediately, but I find the medium/long term prospects
pretty exciting!
Closes: #656
Approved by: jlebon
2017-01-25 05:43:53 +03:00
artifacts :
- test-suite.log
2017-04-24 21:40:06 +03:00
---
inherit : false
branches :
- master
- auto
- try
context : f25ah-insttest
required : false
cluster :
hosts :
- name : vmcheck
distro : fedora/25/atomic
container :
image : projectatomic/ostree-tester
build :
config-opts : >
--prefix=/usr
--libdir=/usr/lib64
--enable-gtk-doc
# Copy the build from the container to the host; ideally down the line
# this is installing an RPM via https://github.com/jlebon/redhat-ci/issues/10
tests :
- make install DESTDIR=$(pwd)/insttree
- rsync -rl -e 'ssh -o User=root' . vmcheck:ostree/
2017-05-08 23:44:42 +03:00
- ssh root@vmcheck './ostree/tests/installed/fah-prep.sh && ostree admin unlock && rsync -rlv ./ostree/insttree/usr/ /usr/ && ./ostree/tests/installed/run.sh'
2017-04-24 21:40:06 +03:00
artifacts :
- test-suite.log
2017-04-28 16:32:35 +03:00
---
inherit : false
branches :
- master
- auto
- try
context : f25-flatpak
required : false
# 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 :
distro : fedora/25/atomic
2017-05-02 01:02:27 +03:00
specs :
ram : 4096 # build-bundle is a static delta, which needs RAM right now
2017-04-28 16:32:35 +03:00
tests :
- docker run --rm --privileged -v $(pwd):/srv/code registry.fedoraproject.org/fedora:25 /bin/sh -c "cd /srv/code && ./ci/flatpak.sh"
artifacts :
- test-suite.log