Context
Audit in docs/v1-rc1-test-audit.md §3.
The NCCL FR receiver is the moat's flagship receiver. Today:
FuzzParseFRPickle covers the safe-pickle parser.
nccl_fr_test.go covers emit in isolation.
- No test wires the full receiver factory → file-watch → emit-to-consumer chain against a binary
.pkl fixture.
Fix
Add module/receiver/ncclfrreceiver/nccl_fr_integration_test.go that:
- Instantiates the receiver via its factory + a real
componenttest.NewNopHost.
- Points the watch path at a temp dir.
- Drops one of the committed
.pkl fixtures from module/pkg/nccl/fr_parser/testdata/ into the dir.
- Asserts the consumer receives exactly one emit, the resource attributes carry
nccl.fr.source_path, and selftel IncEmissions fired once.
Use the upstream consumertest.LogsSink shape that pyspy/integration_helper_test.go already follows for the precedent.
Acceptance
- New test passes under
-race.
- Skips cleanly on Windows if hostpath behaviour diverges (use
//go:build !windows only if necessary).
Effort
M (~1 day). Adopt-over-build: upstream componenttest + consumertest.
Context
Audit in
docs/v1-rc1-test-audit.md§3.The NCCL FR receiver is the moat's flagship receiver. Today:
FuzzParseFRPicklecovers the safe-pickle parser.nccl_fr_test.gocoversemitin isolation..pklfixture.Fix
Add
module/receiver/ncclfrreceiver/nccl_fr_integration_test.gothat:componenttest.NewNopHost..pklfixtures frommodule/pkg/nccl/fr_parser/testdata/into the dir.nccl.fr.source_path, andselftelIncEmissionsfired once.Use the upstream
consumertest.LogsSinkshape thatpyspy/integration_helper_test.goalready follows for the precedent.Acceptance
-race.//go:build !windowsonly if necessary).Effort
M (~1 day). Adopt-over-build: upstream
componenttest+consumertest.