Skip to content

Commit

Permalink
Revert "cleaning up delve entrypoint integ tests and minor refactorin…
Browse files Browse the repository at this point in the history
…g for clarity"

This reverts commit 6cec7f1.
  • Loading branch information
lukaszcl committed Sep 26, 2024
1 parent b323a8b commit bdd5c9a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 36 deletions.
3 changes: 1 addition & 2 deletions core/services/ocr2/plugins/ccip/internal/pricegetter/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ func (d *DynamicPriceGetter) performBatchCalls(ctx context.Context, batchCallsPe
func (d *DynamicPriceGetter) performBatchCall(ctx context.Context, chainID uint64, batchCalls *batchCallsForChain, prices map[cciptypes.Address]*big.Int) (err error) {
nbDecimalCalls := len(batchCalls.decimalCalls)
nbLatestRoundDataCalls := len(batchCalls.decimalCalls)
nbCalls := len(batchCalls.decimalCalls)

// Retrieve contract reader for the chain
contractReader := d.contractReaders[chainID]
Expand Down Expand Up @@ -199,7 +198,7 @@ func (d *DynamicPriceGetter) performBatchCall(ctx context.Context, chainID uint6
decimalsCR := make([]uint8, 0, nbDecimalCalls)
latestRoundCR := make([]aggregator_v3_interface.LatestRoundData, 0, nbDecimalCalls)
var respErr error
for j := range nbCalls {
for j := range nbDecimalCalls {
contractName := fmt.Sprintf("%v_%v", OFFCHAIN_AGGREGATOR, j)
offchainAggregatorRespSlice := result[contractName]

Expand Down
52 changes: 18 additions & 34 deletions integration-tests/docker/test_env/cl_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ type ClNode struct {
UserEmail string `json:"userEmail"`
UserPassword string `json:"userPassword"`
AlwaysPullImage bool `json:"-"`
RemoteDebugger bool `json:"-"`
t *testing.T
l zerolog.Logger
}
Expand Down Expand Up @@ -146,8 +145,6 @@ func NewClNode(networks []string, imageName, imageVersion string, nodeConfig *ch
NodeConfig: nodeConfig,
PostgresDb: pgDb,
l: log.Logger,
// TODO CCIP-3447 drill user specified config through to set RemoteDebugger
RemoteDebugger: false,
}
n.SetDefaultHooks()
for _, opt := range opts {
Expand Down Expand Up @@ -445,43 +442,30 @@ func (n *ClNode) getContainerRequest(secrets string) (
adminCredsPath := "/home/admin-credentials.txt"
apiCredsPath := "/home/api-credentials.txt"

entrypoint := []string{
"chainlink",
"-c", configPath,
"-s", secretsPath,
"node", "start", "-d",
"-p", adminCredsPath,
"-a", apiCredsPath,
}

if n.RemoteDebugger {
entrypoint = []string{
"/home/chainlink/go/bin/dlv",
"exec",
"/usr/local/bin/chainlink",
"--accept-multiclient",
"--headless",
"--listen=0.0.0.0:40000",
"--api-version=2",
"--continue",
"--",
"chainlink",
"-c", configPath,
"-s", secretsPath,
"node", "start", "-d",
"-p", adminCredsPath,
"-a", apiCredsPath,
}
}

return &tc.ContainerRequest{
Name: n.ContainerName,
AlwaysPullImage: n.AlwaysPullImage,
Image: fmt.Sprintf("%s:%s", n.ContainerImage, n.ContainerVersion),
ExposedPorts: []string{"6688/tcp", test_env.NatPortFormat("40000")},
Env: n.ContainerEnvs,
Entrypoint: entrypoint,
Networks: append(n.Networks, "tracing"),
Entrypoint: []string{
//"/home/chainlink/go/bin/dlv",
//"exec",
//"/usr/local/bin/chainlink",
//"--accept-multiclient",
//"--headless",
//"--listen=0.0.0.0:40000",
//"--api-version=2",
//"--continue",
//"--",
"chainlink",
"-c", configPath,
"-s", secretsPath,
"node", "start", "-d",
"-p", adminCredsPath,
"-a", apiCredsPath,
},
Networks: append(n.Networks, "tracing"),
WaitingFor: tcwait.ForHTTP("/readyz").
WithPort("6688/tcp").
WithStartupTimeout(n.StartupTimeout).
Expand Down

0 comments on commit bdd5c9a

Please sign in to comment.