Skip to content

Commit 3a7f8d0

Browse files
chore: bump chainlink-testing-framework (#728)
Bump CTF to v0.14.0 and adjust the CTFAnvilProvider such that it clients may provide a container name. This is needed for scenarios where one needs to spawn multiple anvil containers -- such as the fork-test integration tests. --- OPT-403
1 parent 9e501d5 commit 3a7f8d0

File tree

6 files changed

+95
-6
lines changed

6 files changed

+95
-6
lines changed

.changeset/hip-pandas-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"chainlink-deployments-framework": patch
3+
---
4+
5+
chore: bump CTF to v0.14.0

chain/evm/provider/ctf_anvil_provider.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ type CTFAnvilChainProviderConfig struct {
249249
// DefaultNetwork once
250250
Once *sync.Once
251251

252+
// Optional: name given to the anvil container
253+
Name string
254+
252255
// Required: ConfirmFunctor is a type that generates a confirmation function for transactions.
253256
// Use ConfirmFuncGeth to use the Geth client for transaction confirmation, or
254257
// ConfirmFuncSeth to use the Seth client for transaction confirmation with richer debugging.
@@ -581,6 +584,7 @@ func (p *CTFAnvilChainProvider) startContainer(ctx context.Context, chainID stri
581584

582585
// Create the input for the Anvil blockchain network
583586
input := &blockchain.Input{
587+
ContainerName: p.config.Name,
584588
Type: blockchain.TypeAnvil,
585589
ChainID: chainID,
586590
Port: portStr,

engine/cld/environment/anvil.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ func newAnvilChains(
254254
}
255255

256256
config := evmprov.CTFAnvilChainProviderConfig{
257+
Name: fmt.Sprintf("anvil-fork-%d", network.ChainSelector),
257258
Once: &once,
258259
ConfirmFunctor: evmprov.ConfirmFuncGeth(3 * time.Minute),
259260
DockerCmdParamsOverrides: []string{"--auto-impersonate"},

engine/cld/legacy/cli/mcmsv2/execute_fork_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func Test_executeFork(t *testing.T) { //nolint:paralleltest
5353

5454
// initialize anvil container with main blockchain
5555
anvilConfig := cldfchainprovider.CTFAnvilChainProviderConfig{
56+
Name: "anvil-main-blockchain",
5657
Once: &sync.Once{},
5758
ConfirmFunctor: cldfchainprovider.ConfirmFuncGeth(3 * time.Minute),
5859
Image: "f4hrenh9it/foundry:latest",

go.mod

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ require (
2121
github.com/gagliardetto/solana-go v1.13.0
2222
github.com/go-resty/resty/v2 v2.17.1
2323
github.com/goccy/go-yaml v1.19.2
24-
github.com/google/go-cmp v0.7.0
2524
github.com/google/uuid v1.6.0
2625
github.com/jarcoal/httpmock v1.4.1
2726
github.com/olekukonko/tablewriter v0.0.5
@@ -35,7 +34,7 @@ require (
3534
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5
3635
github.com/smartcontractkit/chainlink-protos/job-distributor v0.17.0
3736
github.com/smartcontractkit/chainlink-protos/op-catalog v0.0.4
38-
github.com/smartcontractkit/chainlink-testing-framework/framework v0.13.9
37+
github.com/smartcontractkit/chainlink-testing-framework/framework v0.14.0
3938
github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.2
4039
github.com/smartcontractkit/chainlink-ton v0.0.0-20260204205804-642f6ebe4e7e
4140
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250815105909-75499abc4335
@@ -70,20 +69,41 @@ require (
7069
github.com/creachadair/mds v0.13.4 // indirect
7170
github.com/dchest/siphash v1.2.3 // indirect
7271
github.com/emicklei/dot v1.6.2 // indirect
72+
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
7373
github.com/ethereum/c-kzg-4844/v2 v2.1.5 // indirect
7474
github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab // indirect
7575
github.com/ferranbt/fastssz v0.1.4 // indirect
76+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
77+
github.com/go-openapi/jsonreference v0.21.0 // indirect
78+
github.com/go-openapi/swag v0.23.0 // indirect
7679
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
80+
github.com/google/gnostic-models v0.6.9 // indirect
81+
github.com/google/go-cmp v0.7.0 // indirect
82+
github.com/google/gofuzz v1.2.0 // indirect
83+
github.com/josharian/intern v1.0.0 // indirect
7784
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
7885
github.com/lib/pq v1.10.9 // indirect
7986
github.com/minio/sha256-simd v1.0.1 // indirect
87+
github.com/moby/spdystream v0.5.0 // indirect
88+
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
8089
github.com/smartcontractkit/chainlink-common v0.9.6-0.20260114142648-bd9e1b483e96 // indirect
8190
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10 // indirect
8291
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20251124151448-0448aefdaab9 // indirect
8392
github.com/smartcontractkit/chainlink-protos/linking-service/go v0.0.0-20251002192024-d2ad9222409b // indirect
8493
github.com/stellar/go-xdr v0.0.0-20231122183749-b53fb00bcac2 // indirect
8594
go.yaml.in/yaml/v3 v3.0.4 // indirect
95+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
96+
gopkg.in/inf.v0 v0.9.1 // indirect
8697
gopkg.in/yaml.v2 v2.4.0 // indirect
98+
k8s.io/api v0.32.3 // indirect
99+
k8s.io/apimachinery v0.32.3 // indirect
100+
k8s.io/client-go v0.32.3 // indirect
101+
k8s.io/klog/v2 v2.130.1 // indirect
102+
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect
103+
k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 // indirect
104+
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
105+
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect
106+
sigs.k8s.io/yaml v1.4.0 // indirect
87107
)
88108

89109
require (

0 commit comments

Comments
 (0)