Skip to content

[CRE-4955] Add sharding test with EVM logtrigger acks. - #23278

Open
pavel-raykov wants to merge 4 commits into
developfrom
test-shard-ack
Open

[CRE-4955] Add sharding test with EVM logtrigger acks.#23278
pavel-raykov wants to merge 4 commits into
developfrom
test-shard-ack

Conversation

@pavel-raykov

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@trunk-io

trunk-io Bot commented Jul 30, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@pavel-raykov pavel-raykov changed the title [CRE-4955] Add test [CRE-4955] Add sharding test with EVM logtrigger acks. Jul 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 — system/smoke test behavior is expanded (additional subtest) and now relies on background EVM event emission + ACK log scanning, which can affect test stability and runtime.

Purpose: Extend the CRE sharding smoke test to exercise sharding with an EVM LogTrigger workflow (and verify trigger ACKs), alongside the existing cron-trigger workflow path.

Changes:

  • Split sharding coverage into two subtests: cron-trigger and EVM LogTrigger-triggered sharding, with ACK verification for the latter.
  • Parameterized the expected user-log substring used to detect workflow executions (instead of hardcoding the cron log message).
  • Refactored EVM log trigger event emission into shared helpers for reuse across tests.

Areas needing scrupulous human review:

  • The background event emission goroutine lifecycle/cancellation semantics and its interaction with test teardown/timeouts.
  • The reuse of a shared sharding test environment across sequential subtests and any state caching that may still leak across runs.

Reviewed changes

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

File Description
system-tests/tests/smoke/cre/sharding_test.go Adds cron + EVM LogTrigger sharding variants and makes execution detection depend on a passed-in expected log substring.
system-tests/tests/smoke/cre/evm_capability_test.go Uses the shared EVM log trigger event emitter helper instead of inline ticker logic.
system-tests/tests/smoke/cre/cre_suite_test.go Runs sharding as two subtests and resets OperationsBundle between them to avoid cached changeset behavior.
system-tests/tests/smoke/cre/capability_helpers.go Introduces shared helpers for EVM log trigger background event emission and event submission.

Comment thread system-tests/tests/smoke/cre/capability_helpers.go
Comment thread system-tests/tests/smoke/cre/capability_helpers.go Outdated
@cl-sonarqube-production

Copy link
Copy Markdown

@pavel-raykov
pavel-raykov marked this pull request as ready for review July 30, 2026 12:59
@pavel-raykov
pavel-raykov requested review from a team as code owners July 30, 2026 12:59
@pavel-raykov
pavel-raykov requested a review from mchain0 July 30, 2026 12:59
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.

2 participants