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
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
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
25 deletions
+25
-25
app/services/ci/create_artifacts_trace_service.rb
app/services/ci/create_artifacts_trace_service.rb
+0
-16
app/services/ci/create_trace_artifact_service.rb
app/services/ci/create_trace_artifact_service.rb
+14
-0
app/workers/build_finished_worker.rb
app/workers/build_finished_worker.rb
+1
-1
app/workers/create_trace_artifact_worker.rb
app/workers/create_trace_artifact_worker.rb
+10
-0
lib/gitlab/ci/trace.rb
lib/gitlab/ci/trace.rb
+0
-8
No files found.
app/services/ci/create_artifacts_trace_service.rb
deleted
100644 → 0
View file @
62e257f5
module
Ci
class
CreateArtifactsTraceService
<
BaseService
def
execute
(
job_id
)
Ci
::
Build
.
find_by
(
id:
job_id
).
try
do
|
job
|
return
if
job
.
job_artifacts_trace
job
.
trace
.
read
do
|
stream
|
job
.
create_job_artifacts_trace!
(
project:
job
.
project
,
file_type: :trace
,
file:
stream
.
path
)
if
stream
.
file?
end
end
end
end
end
app/services/ci/create_trace_artifact_service.rb
0 → 100644
View file @
abc64da9
module
Ci
class
CreateTraceArtifactService
<
BaseService
def
execute
(
job
)
return
if
job
.
job_artifacts_trace
job
.
trace
.
read
do
|
stream
|
job
.
create_job_artifacts_trace!
(
project:
job
.
project
,
file_type: :trace
,
file:
stream
.
path
)
if
stream
.
file?
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