13 Commits

Author SHA1 Message Date
Rainer Gerhards
9e0ecb5f8d
ci: improve Codecov uploads; deflake kafka topics
Motivation: code coverage reports were incomplete. This lays a better
base for consistent reporting via GitHub Actions, with room for follow-ups.
It also removes a test flake source in Kafka jobs.

Impact: CI/tests only; no runtime behavior or ABI changes expected.

Before: Coverage uploads were inconsistent; Kafka tests could hang while
reading from /dev/urandom to generate topic names.
After: Coverage is collected with lcov and uploaded via a dedicated GH
Action; Kafka topics use fast $RANDOM-based hex, avoiding early-boot
entropy stalls.

Technical details:
- Add two workflows: "codecov base" and "codecov kafka" on Ubuntu 24.04.
  Use lcov capture with unexecuted blocks and prune common noise; upload
  with token for same-repo PRs and tokenless for forks.
- Update .codecov.yml: add path fixes for container (/rsyslog) and
  runner layouts; explicitly set comment: false and patch: false.
- Bump actions/checkout to v4 in existing workflows; add an actionlint
  job to catch YAML problems early.
- Switch codecov jobs in container matrix to 24.04 images.
- Improve run-ci.sh lcov invocation to be more tolerant of line/macro
  mismatches.
- Testbench: replace /dev/urandom topic generation with 8-char hex from
  $RANDOM; adjust diag.sh path/quoting for zookeeper helper.
2025-09-08 16:02:01 +02:00
Rainer Gerhards
56c113d187
CI: small update to codecov config 2025-09-04 13:05:33 +02:00
Rainer Gerhards
51c57e944a
CodeCov: set threshold for contrib modules
This was not set, so even small changes triggered a CodeCov fail.
Now aligned with main project.
2019-06-05 09:15:19 +02:00
Rainer Gerhards
9885d71b13
CodeCov: disable patch analysis again - provides false positives
... and quite a lot of them. I also admit that I find the patch
status hard to understand and pretty useless.
2019-04-30 19:04:05 +02:00
Rainer Gerhards
32f037901f
codecov: enable patch review again (trying to get better info)
The current PR status info from CodeCov provides barely helpful
info. We reenable patch review in the hope this gets it more
useful.
2019-04-15 12:32:27 +02:00
Rainer Gerhards
9e731c4fcf
CodeCov: split off contrib modules from main project 2019-04-10 09:29:02 +02:00
Rainer Gerhards
e48f93633d
relax CodeCov.com settings a bit
Coverage varies a bit more due to known flakiness, so no point
in unnecessarily flagging PRs as bad. Same issue with per-PR
coverage, which doesn't make much sense with current state.
2018-11-30 11:39:27 +01:00
Rainer Gerhards
b59e8e9cc5
CodeCov: permit slight drop of coverage but still go "OK" 2018-10-28 15:00:00 +01:00
Rainer Gerhards
97b61f63da
CodeCov: fix typo in file exclusion 2018-10-23 17:21:25 +02:00
Rainer Gerhards
041f0f15c7
CodeCov: adjust config
hopefully this avoids false positive CI fail reports
2018-10-12 19:00:06 +02:00
Rainer Gerhards
d73c6225be
exclude KSI components from CodeCov
.. as they are not testable under CI runs.

see also https://github.com/rsyslog/rsyslog/issues/3073
2018-09-30 18:44:12 +02:00
Rainer Gerhards
76754bc2da
CI: customize CodeCov settings
Initial customization, to be changed as we begin to really use the tool.
2018-09-22 11:32:21 +02:00
Rainer Gerhards
8c38d3647f
CI: add valgrind suppressions for -coverage gcc option
These suppressions are always used, as they can never be caused by
actual program code. So it doesn't hurt to always use them.

Also add some support for CodeCov tool.
2018-09-21 18:34:38 +02:00