kubo/test/sharness/lib
Hector Sanjuan 46324f085d fix: disable telemetry in test profile (#10931)
* Tests: disable telemetry in tests by default

Disable the plugin in cli tests and sharness by default. Enable only in
telemetry tests.

There are cases when tests get stuck or get killed and leave daemons hanging around. We don't want to be getting telemetry from those.

* sharness: attempt to fix

* sharness: add missing --bool flag

* fix(ci): add omitempty to Plugin.Config field

The sharness problem is that when the telemetry plugin is configured
initially with 'ipfs config --bool', it creates a structure without
the 'Config: null' field, but when the config is copied and replaced,
it expects the structure to be preserved.

Adding omitempty ensures the Config field is omitted from JSON when
nil, making the config structure consistent between initial creation
and replacement operations.

---------

Co-authored-by: Marcin Rataj <lidel@lidel.org>
(cherry picked from commit 15f723a15e)
2025-08-27 16:26:50 +02:00
..
install-sharness.sh chore: boxo v0.23.0 and go-libp2p v0.36.3 (#10507) 2024-09-05 23:52:19 +02:00
iptb-lib.sh chore: upgrade go-libp2p-kad-dht (#10378) 2024-04-04 12:56:19 +00:00
test-aggregate-junit-reports.sh test: port CircleCI to GH Actions and improve sharness reporting (#9355) 2023-01-14 00:49:52 +01:00
test-aggregate-results.sh sharness: 2 space indent 2017-10-04 13:39:14 +02:00
test-lib-hashes.sh test: fix sharness tests for welcome docs changes 2020-04-20 11:23:30 -07:00
test-lib.sh fix: disable telemetry in test profile (#10931) 2025-08-27 16:26:50 +02:00