Draft
Conversation
Contributor
|
I see you updated files related to
|
Contributor
|
✅ No conflicts with other open PRs targeting |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.




This branch simplifies ChIP integration across local CRE and system tests by making Chip Router the single ingress entrypoint for workflow telemetry. Instead of having different tests reason about different ChIP paths, both lightweight test sinks and real ChIP / Beholder now sit behind the same router, which removes the old ingress ownership split and makes the topology much easier to understand.
Before this change, the ChIP path depended on the test. Most tests started their own test sink and, when running in parallel, relied on a programmatic fanout to avoid port collisions. A smaller set of tests used real ChIP / Beholder instead, with different startup, different ports, and different reasoning about where workflow events were actually going. That meant there was no single mental model for “how ChIP works in tests”, and understanding failures required knowing which path a given test had taken and how ingress ownership was being managed in that case.
It also meant that combining the two modes was awkward. If you wanted to run a test against the lightweight sink for assertions but also have real Beholder running so you could explore the same events in Red Panda, you had to work around ingress-port ownership manually. In practice that made “test sink for assertions + real Beholder for exploration” much harder than it should have been.
After this change, there is one ingress owner: Chip Router on 50051. Nodes always publish to that same entrypoint. Test sinks no longer pretend to be ingress owners; they start on ephemeral ports and subscribe behind the router. Real ChIP / Beholder also no longer competes for the ingress port; it runs downstream and subscribes through the same mechanism. The result is that the transport topology is the same regardless of whether a test uses a lightweight sink or the full ChIP stack, so the distinction between those modes is reduced to what the downstream consumer does with the events, not how telemetry reaches it.
That also makes mixed usage straightforward. A test can keep using its lightweight sink for assertions while real Beholder subscribes at the same time and receives the same event stream for interactive inspection. So one concrete benefit of this branch is that it becomes easy to use Beholder as an observability tool alongside normal sink-based tests, instead of treating those two modes as mutually exclusive.
It also turns Chip Router into standard environment infrastructure rather than a one-off extra. The router is now wired into normal environment startup, persisted in the main local CRE state, configurable through the env TOMLs, and managed like the other required images. That includes setup support, local image aliasing, runtime image override via environment variable, and updated docs in both chainlink and CTF so the architecture and operational flow match the code.
Before, the router path was operationally special: it had separate lifecycle handling, weaker setup guarantees, and more room for local drift between code, config, and docs. After this change, the router follows the same environment contract as the rest of local CRE. You can see it in the env TOML, set it up through env setup, override its image explicitly when needed, and rely on it being started as part of the environment itself rather than as an ad hoc side path. So the main gain is not just fewer port conflicts, but a more uniform, more composable, and much more explainable ChIP model across local development and tests.
Requires: