Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add TRON integration #14783

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

add TRON integration #14783

wants to merge 8 commits into from

Conversation

cfal
Copy link
Contributor

@cfal cfal commented Oct 15, 2024

No description provided.

}

func newFrom(reader io.Reader) (Key, error) {
privKeyECDSA, err := ecdsa.GenerateKey(curve, reader)

Check failure

Code scanning / CodeQL

Use of insufficient randomness as the key of a cryptographic algorithm High

This cryptographic algorithm depends on a
random number
generated with a cryptographically weak RNG.

Copilot Autofix AI 25 days ago

To fix the problem, we need to replace the use of the insecure math/rand package with the secure crypto/rand package for generating random numbers. This ensures that the randomness used in cryptographic operations is secure and not predictable.

  • Replace the NewRandReaderFromSeed function in core/internal/testutils/keystest/seedable_rand_reader.go to use crypto/rand instead of math/rand.
  • Update the MustNewInsecure function in core/services/keystore/keys/tronkey/key.go to use the updated secure random reader.
Suggested changeset 2
core/services/keystore/keys/tronkey/key.go

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/core/services/keystore/keys/tronkey/key.go b/core/services/keystore/keys/tronkey/key.go
--- a/core/services/keystore/keys/tronkey/key.go
+++ b/core/services/keystore/keys/tronkey/key.go
@@ -7,3 +7,3 @@
 	"fmt"
-	"io"
+	"github.com/smartcontractkit/chainlink/v2/core/internal/testutils/keystest"
 	"math/big"
@@ -60,4 +60,4 @@
 // This insecure function is used for testing purposes only
-func MustNewInsecure(reader io.Reader) Key {
-	key, err := newFrom(reader)
+func MustNewInsecure() Key {
+	key, err := newFrom(&keystest.cryptoRandReader{})
 	if err != nil {
EOF
@@ -7,3 +7,3 @@
"fmt"
"io"
"github.com/smartcontractkit/chainlink/v2/core/internal/testutils/keystest"
"math/big"
@@ -60,4 +60,4 @@
// This insecure function is used for testing purposes only
func MustNewInsecure(reader io.Reader) Key {
key, err := newFrom(reader)
func MustNewInsecure() Key {
key, err := newFrom(&keystest.cryptoRandReader{})
if err != nil {
core/internal/testutils/keystest/seedable_rand_reader.go
Outside changed files

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/core/internal/testutils/keystest/seedable_rand_reader.go b/core/internal/testutils/keystest/seedable_rand_reader.go
--- a/core/internal/testutils/keystest/seedable_rand_reader.go
+++ b/core/internal/testutils/keystest/seedable_rand_reader.go
@@ -4,3 +4,4 @@
 	"io"
-	"math/rand"
+	"crypto/rand"
+	"math/big"
 )
@@ -11,3 +12,16 @@
 func NewRandReaderFromSeed(seed int64) io.Reader {
-	return rand.New(rand.NewSource(seed))
+	return &cryptoRandReader{}
+}
+
+type cryptoRandReader struct{}
+
+func (r *cryptoRandReader) Read(p []byte) (n int, err error) {
+	for i := range p {
+		num, err := rand.Int(rand.Reader, big.NewInt(256))
+		if err != nil {
+			return 0, err
+		}
+		p[i] = byte(num.Int64())
+	}
+	return len(p), nil
 }
EOF
@@ -4,3 +4,4 @@
"io"
"math/rand"
"crypto/rand"
"math/big"
)
@@ -11,3 +12,16 @@
func NewRandReaderFromSeed(seed int64) io.Reader {
return rand.New(rand.NewSource(seed))
return &cryptoRandReader{}
}

type cryptoRandReader struct{}

func (r *cryptoRandReader) Read(p []byte) (n int, err error) {
for i := range p {
num, err := rand.Int(rand.Reader, big.NewInt(256))
if err != nil {
return 0, err
}
p[i] = byte(num.Int64())
}
return len(p), nil
}
Copilot is powered by AI and may make mistakes. Always verify output.
Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
@cfal cfal force-pushed the add-tron branch 2 times, most recently from 782a261 to ac8eace Compare October 17, 2024 21:17
Copy link
Contributor

github-actions bot commented Oct 17, 2024

AER Report: CI Core

aer_workflow , commit , Detect Changes , Clean Go Tidy & Generate , Core Tests (go_core_tests) , Core Tests (go_core_ccip_deployment_tests) , Core Tests (go_core_race_tests) , Core Tests (go_core_fuzz) , lint , SonarQube Scan

1. Struct field naming issue: Golang Lint

Source of Error:
core/services/chainlink/relayer_chain_interoperators_test.go:224:3: var-naming: struct field expectedTronRelayerIds should be expectedTronRelayerIDs (revive)
		expectedTronRelayerIds []types.RelayID
		^
**Why**: The struct field `expectedTronRelayerIds` does not follow the Go naming convention for acronyms, which should be in all caps (e.g., `expectedTronRelayerIDs`).

Suggested fix: Rename the struct field from expectedTronRelayerIds to expectedTronRelayerIDs.

2. Uncommitted changes after generate: Ensure clean after generate

Source of Error:
Ensure clean after generate	2024-10-17T21:26:24.7408132Z core/services/chainlink/mocks/general_config.go | 54 ++++
Ensure clean after generate	2024-10-17T21:26:24.7409148Z core/services/keystore/mocks/master.go | 27 ++
Ensure clean after generate	2024-10-17T21:26:24.7410460Z core/services/keystore/mocks/tron.go | 362 +++++++++++++++++++-----
Ensure clean after generate	2024-10-17T21:26:24.7411409Z 3 files changed, 371 insertions(+), 72 deletions(-)
Ensure clean after generate	2024-10-17T21:26:24.9829369Z ##[error]Process completed with exit code 1.
**Why**: There are uncommitted changes in the repository after running the generate command, indicating that the code generation step has modified some files.

Suggested fix: Commit the changes made by the generate command to the repository.

3. Invalid configuration: Core Tests (go_core_tests)

Source of Error:
Print Filtered Test Results	2024-10-17T21:32:03.9988996Z Error running app: invalid configuration: 4 errors:
Print Filtered Test Results	2024-10-17T21:32:03.9989177Z 	- EVM: 4 errors:
Print Filtered Test Results	2024-10-17T21:32:03.9989595Z 		- 1.ChainID: invalid value (1): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9990058Z 		- 1.Nodes.1.Name: invalid value (fake): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9990604Z 		- 1.Nodes.1.WSURL: invalid value (wss://foo.bar/ws): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9991176Z 		- 1.Nodes.1.HTTPURL: invalid value (https://foo.bar): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9991375Z 	- Cosmos: 3 errors:
Print Filtered Test Results	2024-10-17T21:32:03.9991842Z 		- 1.ChainID: invalid value (Malaga-420): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9992326Z 		- 1.Nodes.1.Name: invalid value (primary): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9992954Z 		- 1.Nodes.1.TendermintURL: invalid value (http://tender.mint): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9993150Z 	- Solana: 3 errors:
Print Filtered Test Results	2024-10-17T21:32:03.9993599Z 		- 1.ChainID: invalid value (mainnet): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9994076Z 		- 1.Nodes.1.Name: invalid value (primary): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9994628Z 		- 1.Nodes.1.URL: invalid value (http://solana.web): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9994844Z 	- Starknet: 3 errors:
Print Filtered Test Results	2024-10-17T21:32:03.9995279Z 		- 1.ChainID: invalid value (foobar): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9995882Z 		- 1.Nodes.1.Name: invalid value (primary): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9996424Z 		- 1.Nodes.1.URL: invalid value (http://stark.node): duplicate - must be unique
Print Filtered Test Results	2024-10-17T21:32:03.9996600Z [exit status 1]
**Why**: The configuration contains duplicate values for ChainID, Node names, and URLs, which must be unique.

Suggested fix: Ensure that all ChainID, Node names, and URLs in the configuration are unique.

4. Reflect slice index out of range: TestAuditLoggerConfig

Source of Error:
Print Filtered Test Results	2024-10-17T21:32:04.0016132Z ^[[0;31mpanic: reflect: slice index out of range [recovered] ^[[0m
Print Filtered Test Results	2024-10-17T21:32:04.0016327Z 	panic: reflect: slice index out of range
Print Filtered Test Results	2024-10-17T21:32:04.0016474Z goroutine 349 [running]:
Print Filtered Test Results	2024-10-17T21:32:04.0016695Z testing.tRunner.func1.2({0x3398100, 0x46f9750})
Print Filtered Test Results	2024-10-17T21:32:04.0017027Z 	/opt/hostedtoolcache/go/1.22.8/x64/src/testing/testing.go:1631 +0x24a
Print Filtered Test Results	2024-10-17T21:32:04.0017166Z testing.tRunner.func1()
Print Filtered Test Results	2024-10-17T21:32:04.0017487Z 	/opt/hostedtoolcache/go/1.22.8/x64/src/testing/testing.go:1634 +0x377
Print Filtered Test Results	2024-10-17T21:32:04.0017646Z panic({0x3398100?, 0x46f9750?})
Print Filtered Test Results	2024-10-17T21:32:04.0017948Z 	/opt/hostedtoolcache/go/1.22.8/x64/src/runtime/panic.go:770 +0x132
Print Filtered Test Results	2024-10-17T21:32:04.0018290Z reflect.Value.Index({0x33daea0?, 0xc000dd5f48?, 0xc00151cff8?}, 0x3508040?)
Print Filtered Test Results	2024-10-17T21:32:04.0018750Z 	/opt/hostedtoolcache/go/1.22.8/x64/src/reflect/value.go:1430 +0x167
Print Filtered Test Results	2024-10-17T21:32:04.0019604Z github.com/pelletier/go-toml/v2.(*decoder).handleArrayTableCollection(0xc001f4e500, {0x1, 0xc00151cff8}, {0x33daea0?, 0xc000dd5f48?, 0xc000074908?})
Print Filtered Test Results	2024-10-17T21:32:04.0020118Z 	/home/runner/go/pkg/mod/github.com/pelletier/go-toml/v2@v2.2.2/unmarshaler.go:423 +0x309
Print Filtered Test Results	2024-10-17T21:32:04.0020969Z github.com/pelletier/go-toml/v2.(*decoder).handleKeyPart(0xc001f4e500, {0x1, 0xc00151cff8}, {0x37eb5c0?, 0xc000dd5808?, 0xbf3005?}, 0xc000074a58, 0x43a2cd8)
Print Filtered Test Results	2024-10-17T21:32:04.0021468Z 	/home/runner/go/pkg/mod/github.com/pelletier/go-toml/v2@v2.2.2/unmarshaler.go:533 +0x78e
Print Filtered Test Results	2024-10-17T21:32:04.0022257Z github.com/pelletier/go-toml/v2.(*decoder).handleArrayTablePart(0xc00151cfc0?, {0x1, 0xc00151cff8}, {0x37eb5c0?, 0xc000dd5808?, 0xc001f4e500?})
Print Filtered Test Results	2024-10-17T21:32:04.0022750Z 	/home/runner/go/pkg/mod/github.com/pelletier/go-toml/v2@v2.2.2/unmarshaler.go:574 +0x66
Print Filtered Test Results	2024-10-17T21:32:04.0023478Z github.com/pelletier/go-toml/v2.(*decoder).handleArrayTable(0xc001f4e540?, {0x1, 0xc00151cff8}, {0x37eb5c0?, 0xc000dd5808?, 0x3011?})
Print Filtered Test Results	2024-10-17T21:32:04.0024079Z 	/home/runner/go/pkg/mod/github.com/pelletier/go-toml/v2@v2.2.2/unmarshaler.go:319 +0x65
Print Filtered Test Results	2024-10-17T21:32:04.0024814Z github.com/pelletier/go-toml/v2.(*decoder).handleRootExpression(0xc001f4e500, 0xc00151cfc0, {0x37eb5c0?, 0xc000dd5808?, 0x49bd36?})
Print Filtered Test Results	2024-10-17T21:32:04.0025307Z 	/home/runner/go/pkg/mod/github.com/pelletier/go-toml/v2@v2.2.2/unmarshaler.go:301 +0x156
Print Filtered Test Results	2024-10-17T21:32:04.0025906Z github.com/pelletier/go-toml/v2.(*decoder).fromParser(0xc001f4e500, {0x37eb5c0?, 0xc000dd5808?, 0xe6ec18?})
Print Filtered Test Results	2024-10-17T21:32:04.0026378Z 	/home/runner/go/pkg/mod/github.com/pelletier/go-toml/v2@v2.2.2/unmarshaler.go:257 +0xa5
Print Filtered Test Results	2024-10-17T21:32:04.0026922Z github.com/pelletier/go-toml/v2.(*decoder).FromParser(0xc001f4e500, {0x37467e0?, 0xc000dd5808?})
Print Filtered Test Results	2024-10-17T21:32:04.0027424Z 	/home/runner/go/pkg/mod/github.com/pelletier/go-toml/v2@v2.2.2/unmarshaler.go:242 +0x17d
Print Filtered Test Results	2024-10-17T21:32:04.0027922Z github.com/pelletier/go-toml/v2.(*Decoder).Decode(0xc000e6ecd0, {0x37467e0, 0xc000dd5808})
Print Filtered Test Results	2024-10-17T21:32:04.0028408Z 	/home/runner/go/pkg/mod/github.com/pelletier/go-toml/v2@v2.2.2/unmarshaler.go:135 +0x14f
Print Filtered Test Results	2024-10-17T21:32:04.0029122Z github.com/smartcontractkit/chainlink-common/pkg/config.DecodeTOML({0x4703aa0?, 0xc001fd3a40?}, {0x37467e0?, 0xc000dd5808?})
Print Filtered Test Results	2024-10-17T21:32:04.0029897Z 	/home/runner/go/pkg/mod/github.com/smartcontractkit/chainlink-common@v0.3.1-0.20241017135127-b283b1e14fa6/pkg/config/toml.go:14 +0x67
Print Filtered Test Results	2024-10-17T21:32:04.0030611Z github.com/smartcontractkit/chainlink/v2/core/services/chainlink.(*GeneralConfigOpts).parseConfig(0xc000dd5008, {0x3b24e20, 0x3045})
Print Filtered Test Results	2024-10-17T21:32:04.0031068Z 	/home/runner/work/chainlink/chainlink/core/services/chainlink/config_general.go:100 +0xcd
Print Filtered Test Results	2024-10-17T21:32:04.0031631Z github.com/smartcontractkit/chainlink/v2/core/services/chainlink.(*GeneralConfigOpts).parse(0xc000dd5008)
Print Filtered Test Results	2024-10-17T21:32:04.0032094Z 	/home/runner/work/chainlink/chainlink/core/services/chainlink/config_general.go:179 +0x9c
Print Filtered Test Results	2024-10-17T21:32:04.0032992Z github.com/smartcontractkit/chainlink/v2/core/services/chainlink.GeneralConfigOpts.New({{0xc001506250, 0x1, 0x1}, {0x0, 0x0, 0x0}, {{{0x0, 0x0, 0x0, 0x0, ...}, ...}, ...}, ...})
Print Filtered Test Results	2024-10-17T21:32:04.0033456Z 	/home/runner/work/chainlink/chainlink/core/services/chainlink/config_general.go:128 +0xae
Print Filtered Test Results	2024-10-17T21:32:04.0033998Z github.com/smartcontractkit/chainlink/v2/core/services/chainlink.TestAuditLoggerConfig(0xc0014e01a0)
Print Filtered Test Results	2024-10-17T21:32:04.0034519Z 	/home/runner/work/chainlink/chainlink/core/services/chainlink/config_audit_logger_test.go:13 +0xc5
Print Filtered Test Results	2024-10-17T21:32:04.0034708Z testing.tRunner(0xc0014e01a0, 0x43a1ed0)
Print Filtered Test Results	2024-10-17T21:32:04.0035024Z 	/opt/hostedtoolcache/go/1.22.8/x64/src/testing/testing.go:1689 +0xfb
Print Filtered Test Results	2024-10-17T21:32:04.0035219Z created by testing.(*T).Run in goroutine 1
Print Filtered Test Results	2024-10-17T21:32:04.0035667Z 	/opt/hostedtoolcache/go/1.22.8/x64/src/testing/testing.go:1742 +0x390
**Why**: The test is attempting to access an index in a slice that is out of range, causing a panic.

Suggested fix: Ensure that the slice being accessed has the expected length before attempting to access its elements.

5. Nil pointer dereference: TestKeyRing_Encrypt_Decrypt

Source of Error:
Print Filtered Test Results	2024-10-17T21:32:04.0217725Z ^[[0;31mpanic: runtime error: invalid memory address or nil pointer dereference [recovered] ^[[0m
Print Filtered Test Results	2024-10-17T21:32:04.0218189Z 	panic: runtime error: invalid memory address or nil pointer dereference
Print Filtered Test Results	2024-10-17T21:32:04.0218763Z ^[[0;31m[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x148ba33] ^[[0m
Print Filtered Test Results	2024-10-17T21:32:04.0218946Z gor
</cicore>
    
    
<operatoruici>

## AER Report: [Operator UI CI](https://github.com/smartcontractkit/chainlink/actions/runs/11437170378) ran successfully :white_check_mark:

[aer_workflow](https://github.com/smartcontractkit/chainlink/actions/runs/11437194463/job/31816207307) , [commit](https://github.com/smartcontractkit/chainlink/commit/c8c8a8776ebb052bf473168f9b2b13b69034d9a3)

</operatoruici>

Copy link
Contributor

github-actions bot commented Oct 21, 2024

AER Report: CI Core

aer_workflow , commit , Detect Changes , Scheduled Run Frequency , Clean Go Tidy & Generate , Flakeguard Root Project / Get Tests To Run , Core Tests (go_core_tests) , Core Tests (go_core_tests_integration) , GolangCI Lint (.) , Core Tests (go_core_ccip_deployment_tests) , GolangCI Lint (deployment) , Core Tests (go_core_fuzz) , Core Tests (go_core_race_tests) , test-scripts , Flakeguard Deployment Project / Get Tests To Run , Flakeguard Deployment Project / Run Tests , Flakeguard Deployment Project / Report , Flakeguard Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/web/auth,github.com/smartcontractkit/cha... , Flakeguard Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/services/keystore/keys/tronkey, ubuntu-l... , Flakeguard Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/services/chainlink, ubuntu-latest) , Flakeguard Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/services/job, ubuntu-latest) , Flakeguard Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/services/keystore, ubuntu-latest) , Flakeguard Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/web/resolver, ubuntu-latest) , Flakeguard Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/web, ubuntu-latest) , Flakeguard Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/cmd, ubuntu-latest) , lint , SonarQube Scan , Flakey Test Detection , Flakeguard Root Project / Report

1. Missing method for field "tronKeys":[Run Tests (github.com/smartcontractkit/chainlink/v2/core/web)]

Source of Error:
Run tests with flakeguard	2024-12-20T07:36:38.6284719Z Error running tests: failed to parse test results: failed to attribute panic to test, using regex web\.(Test[^\.\(]+) on these strings:
Run tests with flakeguard	2024-12-20T07:36:38.6285748Z panic: *resolver.Resolver does not resolve "Query": missing method for field "tronKeys" [recovered]
Run tests with flakeguard	2024-12-20T07:36:38.6286449Z 	panic: *resolver.Resolver does not resolve "Query": missing method for field "tronKeys"
Run tests with flakeguard	2024-12-20T07:36:38.6286768Z 
Run tests with flakeguard	2024-12-20T07:36:38.6286892Z goroutine 399 [running]:
Run tests with flakeguard	2024-12-20T07:36:38.6287234Z testing.tRunner.func1.2({0x638eea0, 0xc0011bc600})
Run tests with flakeguard	2024-12-20T07:36:38.6287766Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1632 +0x3fc
Run tests with flakeguard	2024-12-20T07:36:38.6288155Z testing.tRunner.func1()
Run tests with flakeguard	2024-12-20T07:36:38.6288556Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1635 +0x6b6
Run tests with flakeguard	2024-12-20T07:36:38.6289682Z panic({0x638eea0?, 0xc0011bc600?})
Run tests with flakeguard	2024-12-20T07:36:38.6290417Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/panic.go:785 +0x132
Run tests with flakeguard	2024-12-20T07:36:38.6291244Z github.com/graph-gophers/graphql-go.MustParseSchema(...)
Run tests with flakeguard	2024-12-20T07:36:38.6292565Z 	/home/runner/go/pkg/mod/github.com/graph-gophers/graphql-go@v1.5.0/graphql.go:67
Run tests with flakeguard	2024-12-20T07:36:38.6293810Z github.com/smartcontractkit/chainlink/v2/core/web.graphqlHandler({0x7d7bc70, 0xc0023e84e0})
Run tests with flakeguard	2024-12-20T07:36:38.6294791Z 	/home/runner/work/chainlink/chainlink/core/web/router.go:118 +0x2d8
Run tests with flakeguard	2024-12-20T07:36:38.6295883Z github.com/smartcontractkit/chainlink/v2/core/web.NewRouter({0x7d7bc70, 0xc0023e84e0}, 0x0)
Run tests with flakeguard	2024-12-20T07:36:38.6296974Z 	/home/runner/work/chainlink/chainlink/core/web/router.go:99 +0x10ad
Run tests with flakeguard	2024-12-20T07:36:38.6298309Z github.com/smartcontractkit/chainlink/v2/core/web.Router({0x7d63a30, 0xc000c4cb60}, {0x7d7bc70, 0xc0023e84e0}, 0x0)
Run tests with flakeguard	2024-12-20T07:36:38.6299505Z 	/home/runner/work/chainlink/chainlink/core/web/helpers.go:78 +0x4f
Run tests with flakeguard	2024-12-20T07:36:38.6300736Z github.com/smartcontractkit/chainlink/v2/core/internal/cltest.NewApplicationWithConfig({0x7d63a30, 0xc000c4cb60}, {0x7d81bb0, 0xc001e68c60}, {0x0, 0x0, 0x0})
Run tests with flakeguard	2024-12-20T07:36:38.6301645Z 	/home/runner/work/chainlink/chainlink/core/internal/cltest/cltest.go:518 +0x3328
Run tests with flakeguard	2024-12-20T07:36:38.6302394Z github.com/smartcontractkit/chainlink/v2/core/web_test.Test_FeaturesController_List(0xc000c4cb60)
Run tests with flakeguard	2024-12-20T07:36:38.6303094Z 	/home/runner/work/chainlink/chainlink/core/web/features_controller_test.go:19 +0x6c
Run tests with flakeguard	2024-12-20T07:36:38.6303574Z testing.tRunner(0xc000c4cb60, 0x767cdc0)
Run tests with flakeguard	2024-12-20T07:36:38.6304146Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1690 +0x227
Run tests with flakeguard	2024-12-20T07:36:38.6304588Z created by testing.(*T).Run in goroutine 1
Run tests with flakeguard	2024-12-20T07:36:38.6305022Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1743 +0x826
Run tests with flakeguard	2024-12-20T07:36:38.6305278Z 
Run tests with flakeguard	2024-12-20T07:36:38.6314379Z ##[error]Process completed with exit code 1.
**Why**: The panic occurred because the `*resolver.Resolver` does not implement the `Query` method for the `tronKeys` field, which is required by the GraphQL schema.

Suggested fix: Implement the Query method for the tronKeys field in the *resolver.Resolver struct to match the GraphQL schema requirements.

2. Missing method for field "tronKeys":[Run Tests (github.com/smartcontractkit/chainlink/v2/core/web/auth,github.com/smartcontractkit/chainlink/v2/core/web/presenters)]

Source of Error:
Run tests with flakeguard	2024-12-20T07:37:11.5149792Z Error running tests: failed to parse test results: failed to attribute panic to test, using regex auth\.(Test[^\.\(]+) on these strings:
Run tests with flakeguard	2024-12-20T07:37:11.5151730Z panic: *resolver.Resolver does not resolve "Query": missing method for field "tronKeys" [recovered]
Run tests with flakeguard	2024-12-20T07:37:11.5153110Z 	panic: *resolver.Resolver does not resolve "Query": missing method for field "tronKeys"
Run tests with flakeguard	2024-12-20T07:37:11.5155076Z 
Run tests with flakeguard	2024-12-20T07:37:11.5155504Z goroutine 328 [running]:
Run tests with flakeguard	2024-12-20T07:37:11.5156166Z testing.tRunner.func1.2({0x62ee240, 0xc001d54f90})
Run tests with flakeguard	2024-12-20T07:37:11.5157251Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1632 +0x3fc
Run tests with flakeguard	2024-12-20T07:37:11.5157947Z testing.tRunner.func1()
Run tests with flakeguard	2024-12-20T07:37:11.5158690Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1635 +0x6b6
Run tests with flakeguard	2024-12-20T07:37:11.5159400Z panic({0x62ee240?, 0xc001d54f90?})
Run tests with flakeguard	2024-12-20T07:37:11.5159914Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/panic.go:785 +0x132
Run tests with flakeguard	2024-12-20T07:37:11.5160448Z github.com/graph-gophers/graphql-go.MustParseSchema(...)
Run tests with flakeguard	2024-12-20T07:37:11.5161052Z 	/home/runner/go/pkg/mod/github.com/graph-gophers/graphql-go@v1.5.0/graphql.go:67
Run tests with flakeguard	2024-12-20T07:37:11.5161816Z github.com/smartcontractkit/chainlink/v2/core/web.graphqlHandler({0x7cb2560, 0xc000f6bba0})
Run tests with flakeguard	2024-12-20T07:37:11.5164103Z 	/home/runner/work/chainlink/chainlink/core/web/router.go:118 +0x2d8
Run tests with flakeguard	2024-12-20T07:37:11.5164875Z github.com/smartcontractkit/chainlink/v2/core/web.NewRouter({0x7cb2560, 0xc000f6bba0}, 0x0)
Run tests with flakeguard	2024-12-20T07:37:11.5165559Z 	/home/runner/work/chainlink/chainlink/core/web/router.go:99 +0x10ad
Run tests with flakeguard	2024-12-20T07:37:11.5166400Z github.com/smartcontractkit/chainlink/v2/core/web.Router({0x7c9a730, 0xc0010cfd40}, {0x7cb2560, 0xc000f6bba0}, 0x0)
Run tests with flakeguard	2024-12-20T07:37:11.5167141Z 	/home/runner/work/chainlink/chainlink/core/web/helpers.go:78 +0x4f
Run tests with flakeguard	2024-12-20T07:37:11.5168210Z github.com/smartcontractkit/chainlink/v2/core/internal/cltest.NewApplicationWithConfig({0x7c9a730, 0xc0010cfd40}, {0x7cb7d30, 0xc0017a3950}, {0x0, 0x0, 0x0})
Run tests with flakeguard	2024-12-20T07:37:11.5169115Z 	/home/runner/work/chainlink/chainlink/core/internal/cltest/cltest.go:518 +0x3328
Run tests with flakeguard	2024-12-20T07:37:11.5169910Z github.com/smartcontractkit/chainlink/v2/core/internal/cltest.NewApplicationEVMDisabled(0xc0010cfd40)
Run tests with flakeguard	2024-12-20T07:37:11.5170629Z 	/home/runner/work/chainlink/chainlink/core/internal/cltest/cltest.go:228 +0x65
Run tests with flakeguard	2024-12-20T07:37:11.5171347Z github.com/smartcontractkit/chainlink/v2/core/web/auth_test.TestRBAC_Routemap_Admin(0xc0010cfd40)
Run tests with flakeguard	2024-12-20T07:37:11.5172324Z 	/home/runner/work/chainlink/chainlink/core/web/auth/auth_test.go:340 +0x47
Run tests with flakeguard	2024-12-20T07:37:11.5172778Z testing.tRunner(0xc0010cfd40, 0x75c5aa8)
Run tests with flakeguard	2024-12-20T07:37:11.5173211Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1690 +0x227
Run tests with flakeguard	2024-12-20T07:37:11.5173636Z created by testing.(*T).Run in goroutine 1
Run tests with flakeguard	2024-12-20T07:37:11.5174069Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1743 +0x826
Run tests with flakeguard	2024-12-20T07:37:11.5174335Z 
Run tests with flakeguard	2024-12-20T07:37:11.5184442Z ##[error]Process completed with exit code 1.
**Why**: The panic occurred because the `*resolver.Resolver` does not implement the `Query` method for the `tronKeys` field, which is required by the GraphQL schema.

Suggested fix: Implement the Query method for the tronKeys field in the *resolver.Resolver struct to match the GraphQL schema requirements.

3. Missing method for field "tronKeys":[Run Tests (github.com/smartcontractkit/chainlink/v2/core/cmd)]

Source of Error:
Run tests with flakeguard	2024-12-20T07:36:48.2371833Z Error running tests: failed to parse test results: failed to attribute panic to test, using regex cmd\.(Test[^\.\(]+) on these strings:
Run tests with flakeguard	2024-12-20T07:36:48.2372830Z panic: *resolver.Resolver does not resolve "Query": missing method for field "tronKeys" [recovered]
Run tests with flakeguard	2024-12-20T07:36:48.2373508Z 	panic: *resolver.Resolver does not resolve "Query": missing method for field "tronKeys"
Run tests with flakeguard	2024-12-20T07:36:48.2373828Z 
Run tests with flakeguard	2024-12-20T07:36:48.2373942Z goroutine 339 [running]:
Run tests with flakeguard	2024-12-20T07:36:48.2374280Z testing.tRunner.func1.2({0x814f420, 0xc001df8d80})
Run tests with flakeguard	2024-12-20T07:36:48.2374815Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1632 +0x3fc
Run tests with flakeguard	2024-12-20T07:36:48.2375219Z testing.tRunner.func1()
Run tests with flakeguard	2024-12-20T07:36:48.2375850Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1635 +0x6b6
Run tests with flakeguard	2024-12-20T07:36:48.2376536Z panic({0x814f420?, 0xc001df8d80?})
Run tests with flakeguard	2024-12-20T07:36:48.2377263Z 	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/panic.go:785 +0x132
Run tests with flakeguard	2024-12-20T07:36:48.2378114Z github.com/graph-gophers/graphql-go.MustParseSchema(...)
Run tests with flakeguard	2024-12-20T07:36:48.2379508Z 	/home/runner/go/pkg/mod/github.com/graph-gophers/graphql-go@v1.5.0/graphql.go:67
Run tests with flakeguard	2024-12-20T07:36:48.2380775Z github.com/smartcontractkit/chainlink/v2/core/web.graphqlHandler({0x9c0cab0, 0xc001ba5d40})
Run tests with flakeguard	2024-12-20T07:36:48.2383206Z 	/home/runner/work/chainlink/chainlink/core/web/router.go:118 +0x2d8
Run tests with flakeguard	2024-12-20T07:36:48.2384277Z github.com/smartcontractkit/chainlink/v2/core/web.NewRouter({0x9c0cab0, 0xc001ba5d40}, 0x0)
Run tests with flakeguard	2024-12-20T07:36:48.2385316Z 	/home/runner/work/chainlink/chainlink/core/web/router.go:99 +0x10ad
Run tests with flakeguard	2024-12-20T07:36:48.2386473Z github.com
</cicore>
    
    























<operatoruici>

## AER Report: [Operator UI CI](https://github.com/smartcontractkit/chainlink/actions/runs/12427354529) ran successfully :white_check_mark:

[aer_workflow](https://github.com/smartcontractkit/chainlink/actions/runs/12427371996/job/34697075873) , [commit](https://github.com/smartcontractkit/chainlink/commit/3c241fdca49ecccbe2f7fac013040eca64b0e56e)

</operatoruici>

Copy link
Contributor

github-actions bot commented Nov 7, 2024

Flaky Test Detector for ./go.mod project has failed ❌

Ran new or updated tests between develop and bbcd1ff (add-tron).

View Flaky Detector Details | Compare Changes

Failed Tests

Ran 1267 tests in total for all affected test packages. Below are the tests identified as flaky, with a pass ratio lower than the 100% threshold:

TestPackage                                                       TestName                                          PassRatio           RunCount   Skipped
---------                                                         ---------                                         ---------           ---------  ---------
github.com/smartcontractkit/chainlink/v2/core/cmd                 TestSetupTronRelayer/no_plugin                    0%                  1          false
github.com/smartcontractkit/chainlink/v2/core/cmd                 TestSetupTronRelayer/plugin                       0%                  1          false
github.com/smartcontractkit/chainlink/v2/core/services/chainlink  TestAuditLoggerConfig                             0%                  1          false
github.com/smartcontractkit/chainlink/v2/core/cmd                 TestSetupTronRelayer                              0%                  1          false
github.com/smartcontractkit/chainlink/v2/core/cmd                 TestSetupTronRelayer/plugin_env_parsing_fails     0%                  1          false
github.com/smartcontractkit/chainlink/v2/core/cmd                 TestSetupTronRelayer/plugin_already_registered    0%                  1          false
github.com/smartcontractkit/chainlink/v2/core/web/resolver        TestResolver_ConfigV2/partial                     0%                  1          false
github.com/smartcontractkit/chainlink/v2/core/web/resolver        TestResolver_ConfigV2                             0%                  1          false
github.com/smartcontractkit/chainlink/v2/core/services/keystore   TestKeyRing_Encrypt_Decrypt                       0%                  1          false
github.com/smartcontractkit/chainlink/v2/core/services/keystore   TestKeyRing_Encrypt_Decrypt/test_encrypt/decrypt  0%                  1          false
github.com/smartcontractkit/chainlink/v2/core/services/job        TestRunner_Error_Callback_AsyncJob                66.66666666666666%  3          false

@cfal cfal force-pushed the add-tron branch 3 times, most recently from 44f490e to 8d45d7f Compare November 27, 2024 09:51
Copy link
Contributor

github-actions bot commented Dec 9, 2024

Flakeguard Summary

Setting Value
Project github.com/smartcontractkit/chainlink/v2
Max Pass Ratio 100.00%
Test Run Count 24
Race Detection false
Excluded Tests TestChainComponents

Found Flaky Tests ❌

Category Total
Tests 1,264
Panicked Tests 3
Raced Tests 0
Flaky Tests 16
Flaky Test Ratio 1.26%
Runs 3,792
Passes 3,756
Failures 36
Skips 0
Pass Ratio 99.05%
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestSetupTronRelayer 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 10ms Unknown
TestSetupTronRelayer/no_plugin 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 0s Unknown
TestSetupTronRelayer/plugin 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 0s Unknown
TestSetupTronRelayer/plugin_already_registered 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 0s Unknown
TestSetupTronRelayer/plugin_env_parsing_fails 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 0s Unknown
TestShell_ListETHKeys_Error 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 1.253333333s Unknown
TestAuditLoggerConfig 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink true 0s Unknown
TestKeyRing_Encrypt_Decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 0s @smartcontractkit/foundations, @smartcontractkit/core
TestKeyRing_Encrypt_Decrypt/test_encrypt/decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 33.333333ms @smartcontractkit/foundations, @smartcontractkit/core
TestETHKeysController_ChainSuccess_UpdateNonce 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.283333333s Unknown
TestETHKeysController_DeleteSuccess 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.283333333s Unknown
TestPipelineRunsController_Index_Pagination 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.353333333s Unknown
TestPipelineRunsController_Show_HappyPath 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.336666666s Unknown
TestTransfersController_CreateSuccess_From_BalanceMonitorDisabled 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.27s Unknown
TestResolver_ConfigV2 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 3.333333ms @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core
TestResolver_ConfigV2/partial 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 96.666666ms @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core

Copy link
Contributor

Flakeguard Summary

Setting Value
Project github.com/smartcontractkit/chainlink/v2
Max Pass Ratio 100.00%
Test Run Count 21
Race Detection false
Excluded Tests TestChainComponents

Found Flaky Tests ❌

Category Total
Tests 986
Panicked Tests 3
Raced Tests 0
Flaky Tests 12
Flaky Test Ratio 1.21%
Runs 2,958
Passes 2,934
Failures 24
Skips 0
Pass Ratio 99.18%
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestAuditLoggerConfig 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink true 0s Unknown
TestKeyRing_Encrypt_Decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 0s @smartcontractkit/foundations, @smartcontractkit/core
TestKeyRing_Encrypt_Decrypt/test_encrypt/decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 30ms @smartcontractkit/foundations, @smartcontractkit/core
TestETHKeysController_ChainFailure_InvalidAbandon 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.343333333s Unknown
TestETHKeysController_ChainSuccess_ResetWithAbandon 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.38s Unknown
TestETHKeysController_DeleteSuccess 33.33% false false false 3 1 2 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.32s Unknown
TestETHKeysController_Index_NotDev 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.27s Unknown
TestPipelineRunsController_Index_HappyPath 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.313333333s Unknown
TestPipelineRunsController_Show_HappyPath 33.33% false false false 3 1 2 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.35s Unknown
TestTransfersController_CreateSuccess_From_WEI 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.4s Unknown
TestResolver_ConfigV2 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 0s @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core
TestResolver_ConfigV2/partial 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 100ms @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and 66d9cb7 (add-tron).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestAuditLoggerConfig 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink true 0s Unknown
TestKeyRing_Encrypt_Decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 0s @smartcontractkit/foundations, @smartcontractkit/core
TestKeyRing_Encrypt_Decrypt/test_encrypt/decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 30ms @smartcontractkit/foundations, @smartcontractkit/core
TestResolver_ConfigV2 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 0s @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core
TestResolver_ConfigV2/partial 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 83.333333ms @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and 1aab870 (add-tron).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestSetupTronRelayer 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 10ms Unknown
TestSetupTronRelayer/no_plugin 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 0s Unknown
TestSetupTronRelayer/plugin 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 0s Unknown
TestSetupTronRelayer/plugin_already_registered 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 0s Unknown
TestSetupTronRelayer/plugin_env_parsing_fails 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 0s Unknown
TestShell_ListETHKeys_Error 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 1.213333333s Unknown
TestAuditLoggerConfig 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink true 0s Unknown
TestKeyRing_Encrypt_Decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 0s @smartcontractkit/foundations, @smartcontractkit/core
TestKeyRing_Encrypt_Decrypt/test_encrypt/decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 36.666666ms @smartcontractkit/foundations, @smartcontractkit/core
TestETHKeysController_ChainSuccess_ResetWithAbandon 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.39s Unknown
TestETHKeysController_Index_Errors 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.303333333s Unknown
TestPipelineRunsController_Index_Pagination 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.52s Unknown
TestTransfersController_CreateSuccess_From_BalanceMonitorDisabled 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.243333333s Unknown
TestResolver_ConfigV2 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 0s @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core
TestResolver_ConfigV2/partial 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 140ms @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and 7c21e64 (add-tron).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestAuditLoggerConfig 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink true 0s Unknown
TestKeyRing_Encrypt_Decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 0s @smartcontractkit/foundations, @smartcontractkit/core
TestKeyRing_Encrypt_Decrypt/test_encrypt/decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 30ms @smartcontractkit/foundations, @smartcontractkit/core
TestETHKeysController_ChainSuccess_ResetWithAbandon 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.383333333s Unknown
TestETHKeysController_Index_NotDev 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.36s Unknown
TestPipelineRunsController_Index_HappyPath 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.383333333s Unknown
TestTransfersController_CreateSuccess_From 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.34s Unknown
TestTransfersController_CreateSuccess_From_BalanceMonitorDisabled 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.323333333s Unknown
TestResolver_ConfigV2 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 0s @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core
TestResolver_ConfigV2/partial 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 103.333333ms @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and abbd11d (add-tron).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestShell_ListETHKeys_Error 33.33% false false false 3 1 2 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 1.263333333s Unknown
TestAuditLoggerConfig 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink true 0s Unknown
TestRunner_Success_Callback_AsyncJob 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/services/job false 23.943333333s @smartcontractkit/foundations, @smartcontractkit/core
TestKeyRing_Encrypt_Decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 0s @smartcontractkit/foundations, @smartcontractkit/core
TestKeyRing_Encrypt_Decrypt/test_encrypt/decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 30ms @smartcontractkit/foundations, @smartcontractkit/core
TestETHKeysController_ChainSuccess_Disable 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.24s Unknown
TestETHKeysController_ChainSuccess_ResetWithAbandon 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.283333333s Unknown
TestETHKeysController_Index_Errors 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.333333333s Unknown
TestPipelineRunsController_Index_GlobalHappyPath 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.21s Unknown
TestPipelineRunsController_Show_HappyPath 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.36s Unknown
TestTransfersController_CreateSuccess_From 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.286666666s Unknown
TestTransfersController_CreateSuccess_From_WEI 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.293333333s Unknown
TestResolver_ConfigV2 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 0s @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core
TestResolver_ConfigV2/partial 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 83.333333ms @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

@cfal cfal force-pushed the add-tron branch 2 times, most recently from 8b5bea7 to ab60f01 Compare December 12, 2024 19:48
Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and ab60f01 (add-tron).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestShell_ListETHKeys 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 1.3s Unknown
TestShell_ListETHKeys_Error 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 1.253333333s Unknown
TestAuditLoggerConfig 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink true 0s Unknown
TestKeyRing_Encrypt_Decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 0s @smartcontractkit/foundations, @smartcontractkit/core
TestKeyRing_Encrypt_Decrypt/test_encrypt/decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 30ms @smartcontractkit/foundations, @smartcontractkit/core
TestETHKeysController_ChainFailure_InvalidEnabled 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.3s Unknown
TestETHKeysController_ChainFailure_MissingChainID 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.3s Unknown
TestETHKeysController_DeleteSuccess 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.373333333s Unknown
TestETHKeysController_Index_Errors 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.253333333s Unknown
TestETHKeysController_Index_NotDev 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.29s Unknown
TestETHKeysController_Index_Success 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.293333333s Unknown
TestTransfersController_TransferBalanceToLowError 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.226666666s Unknown
TestResolver_ConfigV2 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 0s @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core
TestResolver_ConfigV2/partial 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/web/resolver false 83.333333ms @smartcontractkit/deployment-automation, @smartcontractkit/foundations, @smartcontractkit/core

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and 87c0503 (add-tron).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestShell_ImportExportETHKey_WithChains 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 1.343333333s Unknown
TestConfig_Marshal 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink false 40ms Unknown
TestConfig_Marshal/full 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink false 10ms Unknown
TestConfig_Marshal/multi-chain 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink false 0s Unknown
TestConfig_Validate 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink false 10ms Unknown
TestConfig_Validate/invalid 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink false 10ms Unknown
TestCoreRelayerChainInteroperators 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink false 10ms Unknown
TestCoreRelayerChainInteroperators/2_tron_chains_with_2_nodes 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/chainlink false 0s Unknown
TestKeyRing_Encrypt_Decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 0s @smartcontractkit/foundations, @smartcontractkit/core
TestKeyRing_Encrypt_Decrypt/test_encrypt/decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 30ms @smartcontractkit/foundations, @smartcontractkit/core
TestETHKeysController_ChainSuccess_UpdateNonce 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.26s Unknown
TestETHKeysController_Index_Success 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.28s Unknown
TestPipelineRunsController_Index_HappyPath 66.67% false false false 3 2 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.34s Unknown

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

@cfal cfal requested review from jmank88 and calvwang9 December 13, 2024 10:01
Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and 86f8cfd (add-tron).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestShell_CreateETHKey 77.78% false false false 9 7 2 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 1.278888888s Unknown
TestShell_ImportExportETHKey_NoChains 88.89% false false false 9 8 1 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 1.334444444s Unknown
TestShell_ImportExportETHKey_WithChains 88.89% false false false 9 8 1 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 1.3s Unknown
TestShell_ListETHKeys_Error 77.78% false false false 9 7 2 0 github.com/smartcontractkit/chainlink/v2/core/cmd false 1.254444444s Unknown
TestETHKeysController_ChainFailure_InvalidAbandon 88.89% false false false 9 8 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.346666666s Unknown
TestETHKeysController_ChainFailure_InvalidEnabled 77.78% false false false 9 7 2 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.315555555s Unknown
TestETHKeysController_ChainFailure_MissingChainID 88.89% false false false 9 8 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.285555555s Unknown
TestETHKeysController_ChainSuccess_ResetWithAbandon 88.89% false false false 9 8 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.323333333s Unknown
TestETHKeysController_ChainSuccess_UpdateNonce 77.78% false false false 9 7 2 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.324444444s Unknown
TestETHKeysController_DeleteSuccess 88.89% false false false 9 8 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.247777777s Unknown
TestETHKeysController_Index_Errors 88.89% false false false 9 8 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.28s Unknown
TestPipelineRunsController_Index_HappyPath 88.89% false false false 9 8 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.338888888s Unknown
TestPipelineRunsController_Index_Pagination 88.89% false false false 9 8 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.351111111s Unknown
TestPipelineRunsController_Show_HappyPath 88.89% false false false 9 8 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.44s Unknown
TestTransfersController_CreateSuccess_From 88.89% false false false 9 8 1 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.318888888s Unknown
TestTransfersController_CreateSuccess_From_BalanceMonitorDisabled 77.78% false false false 9 7 2 0 github.com/smartcontractkit/chainlink/v2/core/web false 1.33s Unknown

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

Copy link
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.

should we add the tronKeys to the graphql too? Example for Aptos

@archseer
Copy link
Contributor

Yeah let's do that, it'll make integration in the UI/JD config possible

@cfal
Copy link
Contributor Author

cfal commented Dec 18, 2024

added to graphql

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and ef751a7 (add-tron).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestKeyRing_Encrypt_Decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 0s @smartcontractkit/foundations, @smartcontractkit/core

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and dcbbc27 (add-tron).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestKeyRing_Encrypt_Decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 0s @smartcontractkit/foundations, @smartcontractkit/core

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.


// TronLoopKeystore implements the [github.com/smartcontractkit/chainlink-common/pkg/loop.Keystore] interface and
// handles signing for Tron messages.
type TronLoopKeystore struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
type TronLoopKeystore struct {
type TronLOOPKeystore struct {

Comment on lines 30 to 31
// Address represents the 21 byte address of an Tron account.
type Address []byte
Copy link
Contributor

Choose a reason for hiding this comment

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

If it is fixed at 21 bytes, did you consider using an array for the underlying type?

Suggested change
// Address represents the 21 byte address of an Tron account.
type Address []byte
// Address represents the 21 byte address of an Tron account.
type Address [21]byte

}

// HexToAddress returns Address with byte values of s.
// If s is larger than len(h), s will be cropped from the left.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is true currently

Suggested change
// If s is larger than len(h), s will be cropped from the left.
// If s is larger than len(h), s will be cropped from the left.

Copy link
Contributor

Choose a reason for hiding this comment

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

changed the implementation of this slightly, although not sure if its actually used at the moment

Comment on lines 26 to 30
// Tron address should should have 20 bytes + 4 checksum + 1 Prefix
AddressLength = 20
)

// Address represents the 21 byte address of an Tron account.
Copy link
Contributor

Choose a reason for hiding this comment

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

So are addresses 20, 21, or 25 (20+4+1)?

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and 3c241fd (add-tron).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestKeyRing_Encrypt_Decrypt 0.00% true false false 3 0 3 0 github.com/smartcontractkit/chainlink/v2/core/services/keystore true 0s @smartcontractkit/foundations, @smartcontractkit/core

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

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.

5 participants