File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
internal/cmd/operator-sdk/scorecard Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ # entries is a list of entries to include in
2
+ # release notes and/or the migration guide
3
+ entries :
4
+ - description : >
5
+ scorecard will now printout test results, if any, even when there is a context timeout.
6
+ This will allow underlying errors from a test to be shown helping users address the issues.
7
+
8
+ # kind is one of:
9
+ # - addition
10
+ # - change
11
+ # - deprecation
12
+ # - removal
13
+ # - bugfix
14
+ kind: "change"
15
+
16
+ # Is this a breaking change?
17
+ breaking: false
Original file line number Diff line number Diff line change @@ -233,6 +233,12 @@ func (c *scorecardCmd) run() (err error) {
233
233
234
234
scorecardTests , err = o .Run (ctx )
235
235
if err != nil {
236
+ // if we got a timeout; printout the test results if there are any
237
+ if err == context .DeadlineExceeded {
238
+ if errpo := c .printOutput (scorecardTests ); errpo != nil {
239
+ log .Fatal (errpo )
240
+ }
241
+ }
236
242
return fmt .Errorf ("error running tests %w" , err )
237
243
}
238
244
}
You can’t perform that action at this time.
0 commit comments