Commit Graph

23 Commits

Author SHA1 Message Date
Karel Zak e2463a8f92 github: fix asciidoctror dependence
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-29 18:56:12 +02:00
Karel Zak 1d997bbbec github: add ruby-asciidoctor to CI-build
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-29 15:26:37 +02:00
Evgeny Vereshchagin a7c22c164b ci: trigger CiFuzz for the master branch only
CIFuzz and OSS-Fuzz are in sync with the master branch so it would
probably make sense to avoid running it for long-lived branches.

Inspired by https://github.com/karelzak/util-linux/pull/1248#issuecomment-776342252

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
2021-02-15 13:25:19 +00:00
Karel Zak 56fc4adac9 github: fix distcheck job
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-02-05 15:21:56 +01:00
Karel Zak 63900c506b github: add 'distcheck' workflow job
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-02-05 15:03:49 +01:00
Frantisek Sumsal f30ec3eee6 ci: run the build test for each pull request 2021-02-01 12:00:30 +01:00
Frantisek Sumsal eed6393d14 ci: build both w/ and w/o sanitizers on GH Actions 2021-02-01 12:00:30 +01:00
Frantisek Sumsal b17a386004 ci: code cleanup 2021-02-01 12:00:30 +01:00
Frantisek Sumsal 81edf9f0da ci: deal with uninstrumented binaries using instrumented libs
All `eject` tests were failing under ASan, since they call /bin/mount,
which is uninstrumented, but it picks up the instrumented `libblkid`
library, causing ASan to complain:

gcc:
ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
eject: unmount of `/home/runner/work/util-linux/util-linux/tests/output/eject/umount-by-disk-mounted-mnt' failed

clang:
/bin/umount: symbol lookup error: /home/runner/work/util-linux/util-linux/.libs/libblkid.so.1: undefined symbol: __sancov_lowest_stack
eject: unmount of `/home/runner/work/util-linux/util-linux/tests/output/eject/umount-by-disk-mounted-mnt' failed

Subsequently, all tests which require the `scsi_debug` module get skipped,
since it's still in use due to the failed umount:

fdisk: align 512/4K                   ... SKIPPED (cannot remove scsi_debug module (rmmod))
fdisk: align 512/4K +alignment_offset ... SKIPPED (cannot remove scsi_debug module (rmmod))
fdisk: align 512/4K +MD               ... SKIPPED (cannot remove scsi_debug module (rmmod))

In case of gcc this can be easily resolved by setting $LD_PRELOAD to the
respective ASan library. clang makes this a bit more difficult, since it
compiles the ASan library statically, so firstly we need to force dynamic
linking (via -shared-asan), and then add the runtime DSO path to the
linker cache, since it's in a non-standard path.
2021-02-01 12:00:30 +01:00
Frantisek Sumsal 0388289e3a ci: use the correct compiler version 2021-02-01 11:54:31 +01:00
Frantisek Sumsal 4076d51e2e ci: 'downgrade' Ubuntu version to Bionic
Since the current Ubuntu Focal image in GH Actions is missing the
`kernel-modules-extra` package with the `scsi_debug` module[0], let's
change the distro flag from `ubuntu-20.04` (Focal) to `ubuntu-latest`
(currently Bionic, as Focal is still in the beta phase).

[0] https://github.community/t/missing-scsi-debug-linux-kernel-module-on-gh-actions/157698
2021-01-30 19:11:23 +01:00
Karel Zak 67f2918a6b github: enable ci-build for all basic branches
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-01-26 15:52:41 +01:00
Karel Zak bf32069382 github: make sure compiler is defined
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-01-26 12:39:22 +01:00
Karel Zak cf82a233eb github: CC fix export
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-01-26 12:09:01 +01:00
Karel Zak 025c43dfe1 github: export CC and CXX
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-01-26 11:56:33 +01:00
Karel Zak 8b6019e65a github: remove distcheck
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-01-26 09:44:44 +01:00
Karel Zak 830a871e16 github: cleanup cibuild.sh
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-01-25 17:32:17 +01:00
Karel Zak 48575df6e8 github: fix btrfs package name
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-01-25 17:13:51 +01:00
Karel Zak 263db7f6bf github: fix cibuild typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-01-25 16:57:06 +01:00
Karel Zak 84cccd3eb5 github: add build workflow
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-01-25 16:54:38 +01:00
Sami Kerola a371c3f71e
cifuzz: reindent yaml file
Fixex two yamllint indentation warning, the truthy is false positive.

    util-linux $ yamllint ./.github/workflows/cifuzz.yml
      6:1       warning  truthy value should be one of [false, true]  (truthy)
      14:2      error    wrong indentation: expected 2 but found 1  (indentation)
      22:4      error    wrong indentation: expected 5 but found 3  (indentation)

Reference: https://github.com/adrienverge/yamllint
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2020-11-14 15:22:34 +00:00
Evgeny Vereshchagin 2bb8c73696 cifuzz: turn on MSan
Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
2020-08-06 15:36:45 +00:00
Evgeny Vereshchagin b9b65bffc3 travis: turn on CIFuzz
Signed-off-by: Karel Zak <kzak@redhat.com>
2020-07-03 11:19:14 +02:00