cardano-tracer: added restart test case #6357
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a regression test that exercises restarting cardano-tracer and confirms it keeps logging without leaving stale files, backed by a dedicated config and cabal wiring for the new suite.
New restart harness drives the forwarder/tracer pair, restarts the tracer, asserts log contents, and checks rotation state so restarts don’t drop messages or leak artifacts (cardano-tracer/test/restart-test/restart-test.hs (line 16)).
Supplies a minimal test configuration that points the tracer at a predictable socket and log root (cardano-tracer/test/restart-test/restart-config.yaml (line 1)).
Registers the executable-style test suite and its tooling dependencies in the cabal file so it can be invoked via cabal test (cardano-tracer/cardano-tracer.cabal (line 443)).
Testing:
cabal test cardano-tracer:cardano-tracer-restart