Skip to content

[DX-3609] migrate GRPC source tests to ChIP test sink#21795

Merged
Tofel merged 1 commit intodevelopfrom
dx-3609-grpc-source-tests-test-sink
Apr 1, 2026
Merged

[DX-3609] migrate GRPC source tests to ChIP test sink#21795
Tofel merged 1 commit intodevelopfrom
dx-3609-grpc-source-tests-test-sink

Conversation

@Tofel
Copy link
Copy Markdown
Contributor

@Tofel Tofel commented Mar 31, 2026

No description provided.

@Tofel Tofel changed the title migrate GRPC source tests to ChIP test sink [DX-3609] migrate GRPC source tests to ChIP test sink Mar 31, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 31, 2026

✅ No conflicts with other open PRs targeting develop

@trunk-io
Copy link
Copy Markdown

trunk-io bot commented Mar 31, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@Tofel Tofel marked this pull request as ready for review March 31, 2026 09:35
@Tofel Tofel requested review from a team as code owners March 31, 2026 09:35
Copilot AI review requested due to automatic review settings March 31, 2026 09:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Risk Rating: MEDIUM (shared system-test helper + behavior changes in a lifecycle smoke test)

This PR migrates the gRPC source system tests from using a Beholder subscription to using the CHiP test sink, and updates lifecycle assertions to match workflow lifecycle v2 events coming from CHiP.

Changes:

  • Add a generic proto.Message safe-send helper and a CHiP publish handler that demuxes workflow lifecycle v2 events.
  • Update v2_grpc_source_test to start a CHiP test sink instead of Beholder and to assert lifecycle events by workflow ID.
  • Simplify “isolation baseline” checks by verifying node health instead of relying on a contract workflow activation event.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
system-tests/tests/test-helpers/chip_testsink_helpers.go Adds safeSendProtoMessage and GetWorkflowV2LifecyclePublishFn to support routing workflow v2 lifecycle events from CHiP into tests.
system-tests/tests/smoke/cre/v2_grpc_source_test.go Replaces Beholder event listening with CHiP sink, updates lifecycle assertions to filter by workflow ID, and adjusts helper logic accordingly.

Scrupulous human review focus areas:

  • assertWorkflowEvent / assertNoWorkflowActivated channel-read loops (closed-channel behavior can create tight loops).
  • GetWorkflowV2LifecyclePublishFn unmarshalling + event type routing (ensuring CHiP event payloads and types align with what the test expects).
  • Workflow ID normalization/matching logic (ensuring CHiP emits the same ID format as hex.EncodeToString([32]byte)).

Reviewer recommendations (from .github/CODEOWNERS):

  • @smartcontractkit/foundations, @smartcontractkit/core (default owners apply to these paths)

@Tofel Tofel force-pushed the dx-3609-grpc-source-tests-test-sink branch from 18e0c48 to e4c451e Compare March 31, 2026 12:58
@cl-sonarqube-production
Copy link
Copy Markdown

@Tofel Tofel enabled auto-merge April 1, 2026 13:27
@Tofel Tofel added this pull request to the merge queue Apr 1, 2026
Merged via the queue into develop with commit 74a3a16 Apr 1, 2026
116 checks passed
@Tofel Tofel deleted the dx-3609-grpc-source-tests-test-sink branch April 1, 2026 13:51
prashantkumar1982 pushed a commit that referenced this pull request Apr 2, 2026
migrate GRPC source tests to ChIP test sink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants