BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
abc64da9
Commit
abc64da9
authored
Jan 29, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename CreateArtifactsTraceService to CreateTraceArtifactService
parent
62e257f5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
15 deletions
+7
-15
create_trace_artifact_service.rb
app/services/ci/create_trace_artifact_service.rb
+2
-4
build_finished_worker.rb
app/workers/build_finished_worker.rb
+1
-1
create_trace_artifact_worker.rb
app/workers/create_trace_artifact_worker.rb
+4
-2
trace.rb
lib/gitlab/ci/trace.rb
+0
-8
No files found.
app/services/ci/create_
artifacts_trace
_service.rb
→
app/services/ci/create_
trace_artifact
_service.rb
View file @
abc64da9
module
Ci
module
Ci
class
CreateArtifactsTraceService
<
BaseService
class
CreateTraceArtifactService
<
BaseService
def
execute
(
job_id
)
def
execute
(
job
)
Ci
::
Build
.
find_by
(
id:
job_id
).
try
do
|
job
|
return
if
job
.
job_artifacts_trace
return
if
job
.
job_artifacts_trace
job
.
trace
.
read
do
|
stream
|
job
.
trace
.
read
do
|
stream
|
...
@@ -12,5 +11,4 @@ module Ci
...
@@ -12,5 +11,4 @@ module Ci
end
end
end
end
end
end
end
end
end
app/workers/build_finished_worker.rb
View file @
abc64da9
...
@@ -7,7 +7,7 @@ class BuildFinishedWorker
...
@@ -7,7 +7,7 @@ class BuildFinishedWorker
def
perform
(
build_id
)
def
perform
(
build_id
)
Ci
::
Build
.
find_by
(
id:
build_id
).
try
do
|
build
|
Ci
::
Build
.
find_by
(
id:
build_id
).
try
do
|
build
|
BuildTraceSectionsWorker
.
perform_async
(
build
.
id
)
BuildTraceSectionsWorker
.
perform_async
(
build
.
id
)
Create
ArtifactsTrace
Worker
.
perform_async
(
build
.
id
)
Create
TraceArtifact
Worker
.
perform_async
(
build
.
id
)
BuildCoverageWorker
.
new
.
perform
(
build
.
id
)
BuildCoverageWorker
.
new
.
perform
(
build
.
id
)
BuildHooksWorker
.
new
.
perform
(
build
.
id
)
BuildHooksWorker
.
new
.
perform
(
build
.
id
)
end
end
...
...
app/workers/create_
artifacts_trace
_worker.rb
→
app/workers/create_
trace_artifact
_worker.rb
View file @
abc64da9
class
Create
ArtifactsTrace
Worker
class
Create
TraceArtifact
Worker
include
ApplicationWorker
include
ApplicationWorker
include
PipelineQueue
include
PipelineQueue
def
perform
(
job_id
)
def
perform
(
job_id
)
Ci
::
CreateArtifactsTraceService
.
new
.
execute
(
job_id
)
Ci
::
Build
.
find_by
(
id:
job_id
).
try
do
|
job
|
Ci
::
CreateTraceArtifactService
.
new
.
execute
(
job
)
end
end
end
end
end
lib/gitlab/ci/trace.rb
View file @
abc64da9
##
# Current status of paths
# Era 1: Live/Full traces in database (ci_builds.trace)
# Era 2: Live/Full traces in `setting_root/YYYY_MM/project_ci_id/job_id.log`
# Era 3: Live/Full traces in `setting_root/YYYY_MM/project_id/job_id.log`
# Era 4: Live traces in `setting_root/YYYY_MM/project_id/job_id.log`. Full traces in JobArtifactUploader#default_path(FileStorage/ObjectStorage).
#
# The legacy paths are to be migrated to the latest era.
module
Gitlab
module
Gitlab
module
Ci
module
Ci
class
Trace
class
Trace
...
...
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