You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added a new configuration option
`error-log-snippet-number-of-lines`. This provides control over the
number of lines displayed in error log snippets.
* Set the default value for `error-log-snippet-number-of-lines` to 3.
* Implemented a maximum character limit of 65536 for all error log
snippets. This addressed potential issues with exceeding the GitHub
Check Run API character limit for logs.
* Removed a previously hardcoded constant for log snippet lines,
replacing it with the new configurable setting.
* Updated the documentation to describe the new configuration and the
character limit.
Jira: https://issues.redhat.com/browse/SRVKP-8165
Co-authored-by: Cursor <[email protected]>
Signed-off-by: Chmouel Boudjnah <[email protected]>
Copy file name to clipboardExpand all lines: docs/content/docs/install/settings.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -254,13 +254,22 @@ A few settings are available to configure this feature:
254
254
Enable or disable the feature to show a log snippet of the failed task when
255
255
there is an error in a PipelineRun.
256
256
257
-
Due to the constraints of the different GIT provider APIs, it will show the last
258
-
3 lines of the first container from the first task that has exited with an
259
-
error in the PipelineRun.
257
+
Due to the constraints of the different GIT provider APIs, it will show a
258
+
configurable number of lines of the first container from the first task that
259
+
has exited with an error in the PipelineRun. The number of lines is controlled
260
+
by the `error-log-snippet-number-of-lines` setting (see below).
260
261
261
-
If it find any strings matching the values of secrets attached to the
262
+
If it finds any strings matching the values of secrets attached to the
262
263
PipelineRun it will replace it with the placeholder `******`
263
264
265
+
* `error-log-snippet-number-of-lines`
266
+
267
+
default: `3`
268
+
269
+
How many lines to show in the error log snippets when `error-log-snippet` is set to `"true"`.
270
+
When using GitHub APP the GitHub Check interface [has a limit of 65535 characters](https://docs.github.com/en/rest/checks/runs?apiVersion=2022-11-28#create-a-check-run),
271
+
so you may want to be conservative with this setting.
272
+
264
273
* `error-detection-from-container-logs`
265
274
266
275
Enable or disable the inspection of the container logs to detect error message
0 commit comments