Skip to content

test: remove test_helpers.Apply functions#65

Merged
jkongie merged 1 commit into
mainfrom
remove-test-apply-functions
May 22, 2026
Merged

test: remove test_helpers.Apply functions#65
jkongie merged 1 commit into
mainfrom
remove-test-apply-functions

Conversation

@jkongie
Copy link
Copy Markdown
Collaborator

@jkongie jkongie commented May 22, 2026

Removes tests Apply functions from test helpers and updates the tests.

This function should not have been part of the public API.

@jkongie jkongie requested a review from a team as a code owner May 22, 2026 00:55
Copilot AI review requested due to automatic review settings May 22, 2026 00:55
@github-actions
Copy link
Copy Markdown

👋 jkongie, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

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

This PR removes the Apply/Configure test helper APIs from pkg/cldfutil/changeset (since they should not be part of the public API) and updates affected tests to execute changesets via the test runtime (runtime.Exec / runtime.ChangesetTask).

Changes:

  • Deleted the ConfiguredChangeSet/Configure/Apply/ApplyChangesets helpers from pkg/cldfutil/changeset/test_helpers.go.
  • Updated EVM operations and MCMS+Timelock tests to execute changesets through the engine/test/runtime task runner.
  • Adjusted tests to read environments from the runtime rather than from the removed helpers.

Reviewed changes

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

File Description
pkg/family/evm/operations/utils_test.go Replaces use of removed changeset helpers with runtime.Exec(runtime.ChangesetTask(...)) and uses rt.Environment() for state loading.
pkg/cldfutil/changeset/test_helpers.go Removes the Apply/Configure helper APIs, leaving only LINK funding/balance helpers.
legacy/mcms/changesets/deploy_mcms_with_timelock_test.go Migrates the test to runtime-based changeset execution, but currently contains environment/state handling issues.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread legacy/mcms/changesets/deploy_mcms_with_timelock_test.go
Comment thread legacy/mcms/changesets/deploy_mcms_with_timelock_test.go
Comment thread legacy/mcms/changesets/deploy_mcms_with_timelock_test.go
@jkongie jkongie changed the title tests: remove test_helpers.Apply functions test: remove test_helpers.Apply functions May 22, 2026
@jkongie jkongie force-pushed the remove-test-apply-functions branch from b2a41ef to c411f5b Compare May 22, 2026 01:09
Removes tests `Apply functions` from test helpers and updates the tests.

This function should not have been part of the public API.
Copilot AI review requested due to automatic review settings May 22, 2026 01:10
@jkongie jkongie force-pushed the remove-test-apply-functions branch from c411f5b to 5f4bbbf Compare May 22, 2026 01:10
@cl-sonarqube-production
Copy link
Copy Markdown

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

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

)
require.NoError(t, err)
mcmsState, err = evmstate.MaybeLoadMCMSWithTimelockState(updatedEnv, []uint64{selector})

@@ -201,19 +199,18 @@ func TestAddEVMCallSequenceToCSOutput_ProposalCombination(t *testing.T) {

// Deploy MCMS+Timelock to both chains. Real deployments are required because
// AddEVMCallSequenceToCSOutput → BuildProposalFromBatchesV2 reads OpCount from
Copy link
Copy Markdown
Collaborator

@graham-chainlink graham-chainlink left a comment

Choose a reason for hiding this comment

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

Nice one!

@jkongie jkongie merged commit f7d1387 into main May 22, 2026
20 checks passed
@jkongie jkongie deleted the remove-test-apply-functions branch May 22, 2026 03:08
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