Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit cd89e45

Browse files
authored
remove success info from slack message and only include failed lanes (#539)
## Motivation ## Solution
1 parent f219100 commit cd89e45

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

integration-tests/ccip-tests/testreporters/ccip.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,22 +241,19 @@ func (r *CCIPTestReporter) SendSlackNotification(t *testing.T, slackClient *slac
241241
"Run Duration = %.0fm "+
242242
"\nNumber of ccip-send= %d"+
243243
"\nNo of failed requests = %d", r.duration.Minutes(), lane.TotalRequests, lane.FailedCountsByPhase[E2E]))
244-
} else {
245-
msgTexts = append(msgTexts,
246-
fmt.Sprintf("lane %s :white_check_mark:", name),
247-
fmt.Sprintf(
248-
"Run Duration = %.0fm "+
249-
"\nNumber of ccip-send= %d", r.duration.Minutes(), lane.TotalRequests))
250244
}
251245
}
252246

253247
msgTexts = append(msgTexts, fmt.Sprintf(
254248
"\nTest Run Summary created on _remote-test-runner_ at _%s_\nNotifying <@%s>",
255249
r.reportFilePath, testreporters.SlackUserID))
250+
if r.namespace == "" {
251+
r.SetNamespace("ccip")
252+
}
256253
messageBlocks := testreporters.SlackNotifyBlocks(headerText, r.namespace, msgTexts)
257254
ts, err := testreporters.SendSlackMessage(slackClient, slack.MsgOptionBlocks(messageBlocks...))
258255
if err != nil {
259-
return err
256+
return fmt.Errorf("failed to send slack message: %w messageBlocks = %v", err, messageBlocks)
260257
}
261258

262259
return testreporters.UploadSlackFile(slackClient, slack.FileUploadParameters{

integration-tests/ccip-tests/testsetups/ccip.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -695,12 +695,6 @@ func CCIPDefaultTestSetUp(
695695
}
696696
}
697697
}
698-
if namespace == "" {
699-
if value, set := os.LookupEnv(config.EnvVarNamespace); set && value != "" {
700-
namespace = value
701-
}
702-
}
703-
704698
setUpArgs.Cfg.TestGroupInput.SetTestRunName(namespace)
705699
_, err = os.Stat(setUpArgs.LaneConfigFile)
706700
if err == nil {

0 commit comments

Comments
 (0)