core/services/chainlink/config.go: merge RawConfigs using expected fields - #14433
Conversation
|
0048f6b to
2e87568
Compare
AER Report: CI Coreaer_workflow , commit , Detect Changes , Clean Go Tidy & Generate , lint , Core Tests (go_core_tests) , Core Tests (go_core_ccip_deployment_tests) , Core Tests (go_core_race_tests) , Core Tests (go_core_fuzz) , SonarQube Scan 1. Error return value not checked: [Golang Lint]Source of Error:core/services/chainlink/config.go:66:17: Error return value of `(github.com/smartcontractkit/chainlink/v2/core/services/chainlink.RawConfig).SetFrom` is not checked (errcheck)
rs[i].SetFrom(config)
^Suggested fix: Add error handling for the 2. Variable naming issues: [Golang Lint]Source of Error:core/services/chainlink/config.go:60:3: var-naming: var chainId should be chainID (revive)
chainId := config.ChainID()
^
core/services/chainlink/config.go:62:4: var-naming: var otherChainId should be otherChainID (revive)
otherChainId := r.ChainID()
^
core/services/chainlink/config.go:82:2: var-naming: var chainIds should be chainIDs (revive)
chainIds := commonconfig.UniqueStrings{}
^
core/services/chainlink/config.go:84:3: var-naming: var chainId should be chainID (revive)
chainId := config.ChainID()
^
core/services/chainlink/config.go:112:2: var-naming: var chainId should be chainID (revive)
chainId := c.ChainID()
^Suggested fix: Rename the variables from 3. Redundant nil check: [Golang Lint]Source of Error:core/services/chainlink/config.go:117:5: S1009: should omit nil check; len() for []string is defined as zero (gosimple)
if nodeNames == nil || len(nodeNames) == 0 {
^Suggested fix: Remove the AER Report: Operator UI CI ran successfully ✅ |
2e87568 to
f3d4531
Compare
AER Report: CI Core ran successfully ✅AER Report: Operator UI CI ran successfully ✅ |
f3d4531 to
1feb9eb
Compare
1feb9eb to
2c14de1
Compare
|
@cfal can you clean up this PR and get it merged please? Aptos staging got affected by some config reorgs and I believe this will fix it. |
2c14de1 to
8d14950
Compare
8d14950 to
e9bf7df
Compare
7acf14c to
db1952a
Compare
79a356a to
c7ed17d
Compare
…ChainID and Node Name values
…erging raw configs
…parse, only in ValidateConfig
69b8628 to
8a95670
Compare




No description provided.