Commit Graph

11 Commits

Author SHA1 Message Date
Ashley Pittman
e3bd7de517 Install all test/build python packages from requirements.txt
Have GitHub actions setup python on runners and install
all python dependencies via pip.

Signed-off-by: Ashley Pittman <ashley@pittman.co.uk>
2024-03-27 17:26:14 +01:00
Bernd Schubert
e547a66566
ci-build.sh: Fix checking for function arguments (#909)
Checking for an emtpy string actually doesn't work for $@,
so just check for number of arguments.

Co-authored-by: Bernd Schubert <bschubert@ddn.com>
2024-03-20 16:43:54 +01:00
Bernd Schubert
99ef7a93ea ci-build.sh: Add back test without versioned symbols
Commit b1cdc497 ("ci-build.sh: Run ASAN and UBSAN at the same time")
also accidentally removed the test for versioned symbols.

Also export clang/clang++ to make sure new shells get it.
2024-03-20 12:37:15 +01:00
Bernd Schubert
255de0b78a Build clang/sanitized build first
This was stalling - easier to check what happens
when it fails fast. And in general, sanitized
builds are faster than valgrind and detect almost
as much errors as valgrind (same level would be
achieved with MSAN, but that is hard to use),
so failures can be detected faster whan sanitizers
run first.
2024-03-20 12:32:39 +01:00
Bernd Schubert
f041818c63 Add back s-bit for compiled fusermount
This is also needed by some tests and was accidentally removed
in commit aab146eea8
2024-03-20 12:32:39 +01:00
Bernd Schubert
71a97226e8 Fix test failures: Create missing mount dir
Tests were failing because mount dir was missing.
Unclear to me why this became only recently an issue
(github internal - out of the sudden tests were hanging).
2024-03-20 12:32:30 +01:00
Bernd Schubert
38d40c5bc1 ci-build.sh: Reduce pytest --maxfail from 99 to 1
We want to see errors - reduce allowed errors.
With --maxfail=99 tests out of the sudden started to hang
in github, without a change in libfuse (I had actually tested
to previous release tags). With --maxfail=1 pytest aborts
and we see failing github.

Also increase python log level to NOTSET - NOTSET should print
all messages.

Also use "pytest" has wrapper for "python3 -m"
2024-03-20 09:09:29 +01:00
Bernd Schubert
aab146eea8 ci-build.sh: Always install and add s-bit for fusermount3
As per pull #898, fusermount3 had a severe issue that
should have been detected by ASAN. I guess tests used
the system default and not the sanitized binary.
Order of execution of fusermount3 is to try
1) full install path
if that fails
2) just fusermount3

So tests should be fixed by installing libfuse, setting the s-bit
on fusermount3 and then to run the tests.
2024-03-07 11:56:30 +01:00
Bernd Schubert
b1cdc497b8 ci-build.sh: Run ASAN and UBSAN at the same time
Also set halt_on_error=1 to make UBSAN to fail if it
would find something.
2024-03-07 11:56:30 +01:00
Matthias Goergens
7555d032a2 Fix meson deprecation warning
Also for rest of CI
2023-04-07 14:01:16 +01:00
Nikolaus Rath
17e8b3e273 Migrate from Travis to Github actions
With current Ubuntu, Valgrind apparently does not like clang debug info, so do not run
valgrind with clang-compiled binaries.
2023-02-20 20:28:12 +00:00