Skip to content

Commit c6f7cfc

Browse files
committed
fix
1 parent cb1c52a commit c6f7cfc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

tools/flakeguard/cmd/generate_report.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func init() {
158158
GenerateReportCmd.Flags().String("action-run-id", "", "The GitHub Actions run ID (required if generate-pr-comment is set)")
159159
GenerateReportCmd.Flags().String("github-repository", "", "The GitHub repository in the format owner/repo (required)")
160160
GenerateReportCmd.Flags().Int64("github-run-id", 0, "The GitHub Actions run ID (required)")
161-
GenerateReportCmd.Flags().String("failed-tests-artifact-name", "failed-test-results-with-logs.json", "The name of the failed tests artifact (default 'failed-test-results-with-logs.json')")
161+
GenerateReportCmd.Flags().String("failed-logs-url", "", "Optional URL linking to additional logs for failed tests")
162162

163163
if err := GenerateReportCmd.MarkFlagRequired("aggregated-results-path"); err != nil {
164164
log.Error().Err(err).Msg("Error marking flag as required")

tools/flakeguard/reports/splunk.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ func SendReportToSplunk(splunkURL, splunkToken, splunkEvent string, report TestR
143143
}
144144
log.Info().Msgf("Example Run. See '%s' for the results that would be sent to splunk", exampleSplunkReportFileName)
145145
} else {
146-
fmt.Printf("Final sent: %v", reportData)
147146
resp, err := client.R().SetBody(reportData).Post("")
148147
if err != nil {
149148
splunkErrs = append(splunkErrs, fmt.Errorf("error sending report '%s' to Splunk: %w", report.ID, err))
@@ -191,8 +190,6 @@ func batchSplunkResults(results []SplunkTestResult) (batchData bytes.Buffer, res
191190
}
192191
resultTestNames = append(resultTestNames, result.Event.Data.TestName)
193192
}
194-
fmt.Println("Formatted Batch Data:")
195-
fmt.Println(batchData.String())
196193
return batchData, resultTestNames, nil
197194
}
198195

0 commit comments

Comments
 (0)