Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis updates: Alpine builds and codecov reports #81

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

gicmo
Copy link
Owner

@gicmo gicmo commented Sep 3, 2019

  • Include Alpine in the build matrix.
  • Send coverage results to codecov.io

This is actually required for Alpine container builds because musl
libc, used by Alpine, does not have a compat implementation of
copy_file_range (introduce in Linux 4.5) and the kernel used by
trusty is < 4.5 and thus bolt_copy_bytes will fail, because
copy_file_range will fail.
The Dockerfile for testing on alpine (which uses the musl libc) is
already present and used on Gitlab CI, so lets also use it on
travis.
Instead of provisioning the /build dir in the build script, do it
while building the container.
Create an OS specific build path (build-$OS) outside the container
and mount it to /build within the container. This allows us to
capture artifacts (build logs, coverage reports) and used them
from outside the container.
After a successful build, submit the coverage to codecov.io. The
information is provided by the fedora container build.
@codecov

This comment has been minimized.

@codecov
Copy link

codecov bot commented Sep 3, 2019

Codecov Report

Merging #81 into master will decrease coverage by 25.54%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #81       +/-   ##
===========================================
- Coverage   88.98%   63.44%   -25.55%     
===========================================
  Files          83       83               
  Lines       13059    13060        +1     
  Branches     4022     3944       -78     
===========================================
- Hits        11621     8286     -3335     
- Misses       1438     1696      +258     
- Partials        0     3078     +3078
Impacted Files Coverage Δ
tests/bolt-test.h 0% <0%> (-100%) ⬇️
common/bolt-io.h 0% <0%> (-100%) ⬇️
boltd/bolt-bouncer.h 0% <0%> (-100%) ⬇️
boltd/bolt-udev.h 0% <0%> (-100%) ⬇️
boltd/bolt-domain.h 0% <0%> (-100%) ⬇️
boltd/bolt-watchdog.h 0% <0%> (-100%) ⬇️
boltd/bolt-key.h 0% <0%> (-100%) ⬇️
boltd/bolt-log.h 0% <0%> (-100%) ⬇️
cli/bolt-client.h 0% <0%> (-100%) ⬇️
boltd/bolt-auth.h 0% <0%> (-100%) ⬇️
... and 72 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ccbead4...81d3e3f. Read the comment docs.

Fedora 30 is the current stable (since quite a while). The bolt
package wont be updated in < 30, so test with the latest stable.
Create artifacts from the build logs for all containers.
Running it outside seems to lead to wrong results. Try inside.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant