Skip to content

Conversation

@dhaidashenko
Copy link
Collaborator

Chain Read limits enforcement broke the CRE EVM Read Tests. To fix them, the test was split into smaller parts, each tested separately.

@cl-sonarqube-production
Copy link

@dhaidashenko dhaidashenko marked this pull request as ready for review January 9, 2026 17:22
@dhaidashenko dhaidashenko requested review from a team as code owners January 9, 2026 17:22
defer func() {
if r := recover(); r != nil {
runtime.Logger().Error("recovered from panic", "recovered", r, "stack", string(debug.Stack()))
err = fmt.Errorf("panic: %v", r)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Return error instead of panic to clean up logs

}
}
t.Logger.Error(fmt.Sprintf(format, args...))
panic(fmt.Sprintf(format, args...)) // panic to stop execution
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

panic here was redundat as require always calls FailNow, which panics to abort workflow execution

@dhaidashenko dhaidashenko requested a review from jmank88 January 9, 2026 17:24
@jmank88 jmank88 merged commit 9f7c264 into PLEX-2111-chain-read-set Jan 9, 2026
311 of 314 checks passed
@jmank88 jmank88 deleted the fix/cre-chain-read-tests branch January 9, 2026 19:09
github-merge-queue bot pushed a commit that referenced this pull request Feb 3, 2026
* core/services/workflows/v2: expand limited ChainSet method set

* CRE Fix Chain Reads Tests in Response to Read Limits Enforcement  (#20762)

* Improve logging

* addd testcase name to cfg

* Refactor EVM Read Test

* remove redundant method

* fix linter

* go generate

* bump common

* Switch to ChipTestSink

* Remove concurrent execution to avoid nonce race during workflow removal

* Fix nolint

---------

Co-authored-by: Dmytro Haidashenko <34754799+dhaidashenko@users.noreply.github.com>
Co-authored-by: Dmytro Haidashenko <dmytro.haidashenko@smartcontract.com>
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