netdata_netdata/tests
Austin S. Hemmelgarn 804fd4ce54
Prefer Protobuf’s own CMake config over CMake's FindProtobuf. (#17128)
* Prefer Protobuf’s own CMake config over CMake's FindProtobuf.

The FindProtobuf CMake module shipped by upstream CMake is broken for
Protobuf version 22.0 and newer because it does not correctly pull in
the new Abseil dependencies. Protobuf itself sometimes ships a CMake
Package Configuration module that _does_ work correctly, so use that in
preference to the Find module shipped with CMake.

Upstream bug reference: https://gitlab.kitware.com/cmake/cmake/-/issues/24321

* Properly handle protoc executable.

* Restructure to explicitly handle fallback case ourselves.

This allows proper handling of compatibility code in a way that actually
works for us without us needing to ship a special module to handle the
compatibility case.

* Switch to bundling protobuf via CMake instead of an external script.

* Fix handling of Protobuf inclusion.

- Add correct include directories for protoc.
- Skip installing protobuf when installing the agent.

* Drop spurious quotation marks.

* Properly fix generator expression for protoc include paths.

* Properly default to bundling protobuf in installer code.

* Disable ASAN in unit tests.

It doesn’t work with the modified protobuf handling and per discussion
with the team is non-critical.

* Change comment based on review.

* Revert "Disable ASAN in unit tests."

This reverts commit 6cb98b1b59.

* Disable IPMI and NFACCT plugins for unit tests.

We don’t actually have any unit tests for them, and they cause issues
building reliably in the unit testing environment.

* Disable ASAN for Abseil and Protobuf when vendoring them.

* Switch to commit hashes for protobuf/abseil.

* Restructure to better encapsulate protobuf handling as it’s own module.

* Fix up bundled protobuf version handling.

Google has complicated rules for C++ build environment support, so we
really need to be checking compiler versions and not _just_ C++ standard
version.

* Fix warnings about invalid defines.
2024-03-20 07:13:44 -04:00
..
acls Common pattern for web and alarms together with two bug fixes (#6783) 2019-09-29 11:10:35 +02:00
alarm_repetition change api.netdata.cloud to app.netdata.cloud (#15538) 2023-07-26 12:38:02 +03:00
api Move web/ under src/ (#16992) 2024-02-12 14:11:49 +02:00
ebpf Revert "Refactor RRD code. (#15423)" (#15723) 2023-08-03 13:13:36 +03:00
exporting Remove backends subsystem (#12146) 2022-03-15 11:50:24 +01:00
health_mgmtapi Move web/ under src/ (#16992) 2024-02-12 14:11:49 +02:00
k6 Initial script for API load testing (#5892) 2019-05-16 15:15:51 +02:00
profile Remove config macros that are always set. (#16994) 2024-02-12 13:27:10 +02:00
template_dimension Spelling build (#10428) 2021-04-05 08:18:11 -04:00
urls Common pattern for web and alarms together with two bug fixes (#6783) 2019-09-29 11:10:35 +02:00
run-unit-tests.sh Prefer Protobuf’s own CMake config over CMake's FindProtobuf. (#17128) 2024-03-20 07:13:44 -04:00
stress.sh Common pattern for web and alarms together with two bug fixes (#6783) 2019-09-29 11:10:35 +02:00