Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
9f3f22c8
Commit
9f3f22c8
authored
May 04, 2017
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Failed Jobs tab only shows 10 job traces for performance
parent
acd9cd09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
app/helpers/builds_helper.rb
app/helpers/builds_helper.rb
+6
-2
app/views/projects/pipelines/_with_tabs.html.haml
app/views/projects/pipelines/_with_tabs.html.haml
+3
-3
No files found.
app/helpers/builds_helper.rb
View file @
9f3f22c8
module
BuildsHelper
module
BuildsHelper
def
build_summary
(
build
)
def
build_summary
(
build
,
skip:
false
)
if
build
.
has_trace?
if
build
.
has_trace?
build
.
trace
.
html
(
last_lines:
10
).
html_safe
if
skip
link_to
"View job trace"
,
pipeline_build_url
(
build
.
pipeline
,
build
)
else
build
.
trace
.
html
(
last_lines:
10
).
html_safe
end
else
else
"No job trace"
"No job trace"
end
end
...
...
app/views/projects/pipelines/_with_tabs.html.haml
View file @
9f3f22c8
...
@@ -46,11 +46,11 @@
...
@@ -46,11 +46,11 @@
=
render
partial:
"projects/stage/stage"
,
collection:
pipeline
.
stages
,
as: :stage
=
render
partial:
"projects/stage/stage"
,
collection:
pipeline
.
stages
,
as: :stage
-
if
failed_builds
.
present?
-
if
failed_builds
.
present?
#js-tab-failures
.build-failures.tab-pane
#js-tab-failures
.build-failures.tab-pane
-
failed_builds
.
each
do
|
build
|
-
failed_builds
.
each
_with_index
do
|
build
,
index
|
.build-state
.build-state
%span
.ci-status-icon-failed
=
custom_icon
(
'icon_status_failed'
)
%span
.ci-status-icon-failed
=
custom_icon
(
'icon_status_failed'
)
%span
.stage
%span
.stage
=
build
.
stage
.
titleize
=
build
.
stage
.
titleize
%span
.build-name
%span
.build-name
=
render
"notify/links/
#{
build
.
to_partial_path
}
"
,
pipeline:
@pipeline
,
build:
build
=
link_to
build
.
name
,
pipeline_build_url
(
pipeline
,
build
)
%pre
.build-log
=
build_summary
(
build
)
%pre
.build-log
=
build_summary
(
build
,
skip:
index
>=
10
)
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