Skip to content
GitLab
Next
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gitlab-runner
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1,985
Issues
1,985
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
213
Merge Requests
213
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GitLab.org
gitlab-runner
Commits
06a425a5
Commit
06a425a5
authored
May 31, 2015
by
Kamil Trzciński
💬
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to overwrite build log limit
parent
076477cf
Pipeline
#36136
failed with stage
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
3 deletions
+9
-3
CHANGELOG.md
CHANGELOG.md
+2
-0
common/config.go
common/config.go
+1
-0
common/consts.go
common/consts.go
+1
-1
docs/configuration/advanced-configuration.md
docs/configuration/advanced-configuration.md
+1
-0
executors/executor_abstract.go
executors/executor_abstract.go
+4
-2
No files found.
CHANGELOG.md
View file @
06a425a5
v 0.4.0
-
Added CI=true and GITLAB_CI=true to environment variables
-
Added output_limit (in kilobytes) to runner config which allows to enlarge default build log size
-
Make the debug log human readable
-
Make default build log limit set to 4096 (4MB)
-
Updated kardianos service to fix OSX service installation
-
Updated logrus to make console output readable on Windows
-
Change default log level to warning
...
...
common/config.go
View file @
06a425a5
...
...
@@ -49,6 +49,7 @@ type RunnerConfig struct {
Shell
*
string
`toml:"shell" json:"shell"`
DisableVerbose
*
bool
`toml:"disable_verbose" json:"disable_verbose"`
OutputLimit
*
int
`toml:"output_limit"`
SSH
*
ssh
.
Config
`toml:"ssh" json:"ssh"`
Docker
*
DockerConfig
`toml:"docker" json:"docker"`
...
...
common/consts.go
View file @
06a425a5
...
...
@@ -12,5 +12,5 @@ const HealthyChecks = 3
const
HealthCheckInterval
=
3600
const
DefaultWaitForServicesTimeout
=
30
const
ShutdownTimeout
=
30
const
MaxTraceOutputSize
=
1024
*
1024
// 1MB
const
DefaultOutputLimit
=
4096
// 4MB in kilobytes
const
ForceTraceSentInterval
time
.
Duration
=
300
docs/configuration/advanced-configuration.md
View file @
06a425a5
...
...
@@ -30,6 +30,7 @@ This defines one runner entry.
|
`builds_dir`
| directory where builds will be stored in context of selected executor (Locally, Docker, SSH) |
|
`environment`
| append or overwrite environment variables |
|
`disable_verbose`
| don't print run commands |
|
`output_limit`
| set maximum build log size in kilobytes, by default set to 4096 (4MB) |
Example:
...
...
executors/executor_abstract.go
View file @
06a425a5
...
...
@@ -32,6 +32,8 @@ func (e *AbstractExecutor) ReadTrace(pipe *io.PipeReader) {
defer
e
.
Debugln
(
"ReadTrace finished"
)
traceStopped
:=
false
traceOutputLimit
:=
helpers
.
NonZeroOrDefault
(
e
.
Config
.
OutputLimit
,
common
.
DefaultOutputLimit
)
traceOutputLimit
*=
1024
reader
:=
bufio
.
NewReader
(
pipe
)
for
{
...
...
@@ -48,8 +50,8 @@ func (e *AbstractExecutor) ReadTrace(pipe *io.PipeReader) {
continue
}
if
e
.
Build
.
BuildLogLen
()
>
common
.
MaxTraceOutputSize
{
output
:=
fmt
.
Sprintf
(
"
\n
Build log exceeded limit of %v bytes."
,
common
.
MaxTraceOutputSize
)
if
e
.
Build
.
BuildLogLen
()
>
traceOutputLimit
{
output
:=
fmt
.
Sprintf
(
"
\n
Build log exceeded limit of %v bytes."
,
traceOutputLimit
)
e
.
Build
.
WriteString
(
output
)
traceStopped
=
true
break
...
...
Jerry Gagliano
@jerrygag
·
May 11, 2016
how can i change the limit in a gitlab-cy.yml
how can i change the limit in a gitlab-cy.yml
👍
2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment