Commit Graph
8 Commits
Author SHA1 Message Date
Jacob Dahl b3e343c153 ci(codecov): disable the PR comment
The comment reports a patch percentage and a project total that is mostly
SITL coverage carried forward from main, but not which lines are uncovered,
so it adds noise to every PR without telling the author what to test. The
informational patch and project statuses stay and link to the line-level
report.

Assisted-by: Claude:claude-opus-5-5
2026-09-27 22:30:38 -07:00
Ramon Roche 939b420488 ci(codecov): upload unit test coverage (#28869)
* ci(codecov): upload unit test coverage and limit SITL coverage to main

Coverage on main came from a single standard_vtol SITL flight, unit tests
were never uploaded, and the Coverage build never hit ccache because
ccache 4.9.1 (Ubuntu 24.04) rejects -fprofile-update=atomic. The flag only
keeps hit counts exact under thread races; line coverage is unaffected and
lcov already ignores the resulting negative counts.

Unit tests now build with coverage and upload as the unittests flag on
every PR and push to main. standard_vtol builds as Coverage on main only
and uploads as sitl-vtol, carried forward on PRs. codecov.yml sets the
default branch, informational project/patch statuses and ignores.
Per-build-type ccache keys stop the Coverage and RelWithDebInfo jobs from
overwriting each other's cache.

Fixes #28862

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Ramon Roche <mrpollo@gmail.com>

* ci(codecov): run unit test coverage as its own job

The Coverage build shifts EKF replay float output, so running it in the
Unit Tests job made the change indication step auto-commit new baselines
to the PR branch. Unit Tests goes back to the plain build and a separate
job produces the unittests upload. disable_search keeps the Codecov
uploader to the lcov report instead of running gcov over the build tree.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Ramon Roche <mrpollo@gmail.com>

---------

Signed-off-by: Ramon Roche <mrpollo@gmail.com>
2026-09-26 19:11:53 -07:00
Daniel Agar f2eefb4e7a codecov: remove notifications until we can address false reporting
I don't think we're quite ready for codecov reporting on every PR. The initial report seems to work fine, but there are various issues that result in bogus reporting when additional commits are added or after a rebase.
2020-02-08 13:26:21 -05:00
Daniel Agar a82428c5fd codecov: try to relax notifications 2020-02-04 11:03:33 -05:00
Daniel Agar d089bacb1b codecov notification changes
- require the reporting of 5 builds to try and prevent Github actions + Jenkins race condition
 - don't report if there's no change
2020-01-30 21:50:59 -05:00
Lorenz Meier b14e5568d3 Codecov: Adjust target to current range
This is required to enable CI.
2020-01-28 08:59:25 +01:00
Lorenz Meier f9e0f6f494 Coverage: Ignore examples and unused apps
These paths are unused code that is not part of the supported set.
2020-01-28 08:59:25 +01:00
Lorenz Meier 06db4b9227 MAVSDK tests: Enable coverage testing
This enables minimal coverage testing for multicopters.
2020-01-28 08:59:25 +01:00