@@ -8,10 +8,11 @@ import (
88 "strings"
99 "testing"
1010
11- "github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard/reports"
12- "github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard/utils"
1311 "github.com/stretchr/testify/assert"
1412 "github.com/stretchr/testify/require"
13+
14+ "github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard/reports"
15+ "github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard/utils"
1516)
1617
1718var (
@@ -541,6 +542,46 @@ func TestAttributePanicToTest(t *testing.T) {
541542 " logger.go:146: 2025-03-08T03:14:04.490Z\t INFO\t changeset/jd_register_nodes.go:91\t registered node\t {\" version\" : \" unset@unset\" , \" name\" : \" node1\" , \" id\" : \" node:{id:\\ \" 895776f5ba0cc11c570a47b5cc3dbb8771da9262cfb545cd5d48251796af7f1d\\ \" public_key:\\ \" 895776f5ba0cc11c570a47b5cc3dbb8771da9262cfb545cd5d48251796af7f1d\\ \" is_enabled:true is_connected:true labels:{key:\\ \" product\\ \" value:\\ \" test-product\\ \" } labels:{key:\\ \" environment\\ \" value:\\ \" test-env\\ \" } labels:{key:\\ \" nodeType\\ \" value:\\ \" bootstrap\\ \" } labels:{key:\\ \" don-0-don1\\ \" }\" }" ,
542543 },
543544 },
545+ {
546+ name : "no test name in panic" ,
547+ expectedTestName : "UnknownTestPanic" ,
548+ expectedTimeout : false ,
549+ outputs : []string {
550+ "panic: reflect: Elem of invalid type bool" ,
551+ "goroutine 104182 [running]:" ,
552+ "reflect.elem(0xc0569d9998?)" ,
553+ "\t /opt/hostedtoolcache/go/1.24.0/x64/src/reflect/type.go:733 +0x9a" ,
554+ "reflect.(*rtype).Elem(0xa4dd940?)" ,
555+ "\t /opt/hostedtoolcache/go/1.24.0/x64/src/reflect/type.go:737 +0x15" ,
556+ "github.com/smartcontractkit/chainlink-solana/pkg/solana/chainreader.setPollingFilterOverrides(0x0, {0xc052040510, 0x1, 0xc?})" ,
557+ "\t /home/runner/go/pkg/mod/github.com/smartcontractkit/[email protected] /pkg/solana/chainreader/chain_reader.go:942 +0x492" ,
558+ "github.com/smartcontractkit/chainlink-solana/pkg/solana/chainreader.(*ContractReaderService).addEventRead(_, _, {_, _}, {_, _}, {{0xc0544c4270, 0x9}, {0xc0544c4280, 0xc}, ...}, ...)" ,
559+ "\t /home/runner/go/pkg/mod/github.com/smartcontractkit/[email protected] /pkg/solana/chainreader/chain_reader.go:605 +0x13d" ,
560+ "github.com/smartcontractkit/chainlink-solana/pkg/solana/chainreader.(*ContractReaderService).initNamespace(0xc054472540, 0xc01c37d440?)" ,
561+ "\t /home/runner/go/pkg/mod/github.com/smartcontractkit/[email protected] /pkg/solana/chainreader/chain_reader.go:443 +0x28b" ,
562+ "github.com/smartcontractkit/chainlink-solana/pkg/solana/chainreader.NewContractReaderService({0x7fcf8b532040?, 0xc015b223e0?}, {0xc6ac960, 0xc05464e470}, {0xc0544384e0?, {0xc01c37d440?, 0xc054163b84?, 0xc054163b80?}}, {0x7fcf8071c7a0, 0xc0157928c0})" ,
563+ "\t /home/runner/go/pkg/mod/github.com/smartcontractkit/[email protected] /pkg/solana/chainreader/chain_reader.go:97 +0x287" ,
564+ "github.com/smartcontractkit/chainlink-solana/pkg/solana.(*Relayer).NewContractReader(0xc015b2e150, {0x4d0102030cb384f5?, 0xb938300b5ca1aa13?}, {0xc05469c000, 0x1eedf, 0x20000})" ,
565+ "\t /home/runner/go/pkg/mod/github.com/smartcontractkit/[email protected] /pkg/solana/relay.go:160 +0x205" ,
566+ "github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/oraclecreator.(*pluginOracleCreator).createReadersAndWriters(_, {_, _}, {_, _}, _, {0x3, {0x0, 0xa, 0x93, ...}, ...}, ...)" ,
567+ "\t /home/runner/work/chainlink/chainlink/core/capabilities/ccip/oraclecreator/plugin.go:446 +0x338" ,
568+ "github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/oraclecreator.(*pluginOracleCreator).Create(0xc033a69ad0, {0xc6f5a10, 0xc02e4f9a40}, 0x3, {0x3, {0x0, 0xa, 0x93, 0x8f, 0x67, ...}, ...})" ,
569+ "\t /home/runner/work/chainlink/chainlink/core/capabilities/ccip/oraclecreator/plugin.go:215 +0xc0c" ,
570+ "github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/launcher.createDON({0xc6f5a10, 0xc02e4f9a40}, {0x7fcf8b533ad0, 0xc015b97340}, {0xb6, 0x5e, 0x31, 0xd0, 0x35, 0xef, ...}, ...)" ,
571+ "\t /home/runner/work/chainlink/chainlink/core/capabilities/ccip/launcher/launcher.go:367 +0x451" ,
572+ "github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/launcher.(*launcher).processAdded(0xc015723080, {0xc6f5a10, 0xc02e4f9a40}, 0xc053de2ff0)" ,
573+ "\t /home/runner/work/chainlink/chainlink/core/capabilities/ccip/launcher/launcher.go:254 +0x239" ,
574+ "github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/launcher.(*launcher).processDiff(0xc015723080, {0xc6f5a10, 0xc02e4f9a40}, {0xc053de2ff0?, 0xc053de3020?, 0xc053de3050?})" ,
575+ "\t /home/runner/work/chainlink/chainlink/core/capabilities/ccip/launcher/launcher.go:192 +0x68" ,
576+ "github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/launcher.(*launcher).tick(0xc015723080, {0xc6f5a10, 0xc02e4f9a40})" ,
577+ "\t /home/runner/work/chainlink/chainlink/core/capabilities/ccip/launcher/launcher.go:178 +0x20b" ,
578+ "github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/launcher.(*launcher).monitor(0xc015723080)" ,
579+ "\t /home/runner/work/chainlink/chainlink/core/capabilities/ccip/launcher/launcher.go:152 +0x112" ,
580+ "created by github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/launcher.(*launcher).Start.func1 in goroutine 1335" ,
581+ "\t /home/runner/work/chainlink/chainlink/core/capabilities/ccip/launcher/launcher.go:134 +0xa5" ,
582+ "FAIL\t github.com/smartcontractkit/chainlink/deployment/ccip/changeset/solana\t 184.801s" ,
583+ },
584+ },
544585 {
545586 name : "empty" ,
546587 expectedTestName : "" ,
@@ -550,9 +591,7 @@ func TestAttributePanicToTest(t *testing.T) {
550591 }
551592
552593 for _ , tc := range testCases {
553- tc := tc // capture range variable
554594 t .Run (tc .name , func (t * testing.T ) {
555- t .Parallel ()
556595 testName , timeout , err := attributePanicToTest (tc .outputs )
557596 assert .Equal (t , tc .expectedTimeout , timeout , "timeout flag mismatch" )
558597 if tc .expectedTestName == "" {
@@ -598,8 +637,6 @@ func TestAttributeRaceToTest(t *testing.T) {
598637 for _ , testCase := range testCases {
599638 tc := testCase
600639 t .Run (tc .name , func (t * testing.T ) {
601- t .Parallel ()
602-
603640 testName , err := attributeRaceToTest (tc .packageName , tc .raceEntries )
604641 if tc .expectedTestName == "" {
605642 require .Error (t , err )
0 commit comments