kubo/test/sharness/lib
Hector Sanjuan 15f723a15e
Some checks failed
CodeQL / codeql (push) Has been cancelled
Docker Build / docker-build (push) Has been cancelled
Gateway Conformance / gateway-conformance (push) Has been cancelled
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Has been cancelled
Go Build / go-build (push) Has been cancelled
Go Check / go-check (push) Has been cancelled
Go Lint / go-lint (push) Has been cancelled
Go Test / go-test (push) Has been cancelled
Interop / interop-prep (push) Has been cancelled
Sharness / sharness-test (push) Has been cancelled
Spell Check / spellcheck (push) Has been cancelled
Interop / helia-interop (push) Has been cancelled
Interop / ipfs-webui (push) Has been cancelled
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>
2025-08-24 14:30:35 +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-24 14:30:35 +02:00