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
b8ce910f
Commit
b8ce910f
authored
Mar 07, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set sha256 checksum when archiving traces
parent
2a97550d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
trace.rb
lib/gitlab/ci/trace.rb
+2
-1
trace_spec.rb
spec/lib/gitlab/ci/trace_spec.rb
+2
-0
No files found.
lib/gitlab/ci/trace.rb
View file @
b8ce910f
...
@@ -137,7 +137,8 @@ module Gitlab
...
@@ -137,7 +137,8 @@ module Gitlab
job
.
create_job_artifacts_trace!
(
job
.
create_job_artifacts_trace!
(
project:
job
.
project
,
project:
job
.
project
,
file_type: :trace
,
file_type: :trace
,
file:
stream
)
file:
stream
,
file_sha256:
Digest
::
SHA256
.
file
(
path
).
hexdigest
)
end
end
end
end
...
...
spec/lib/gitlab/ci/trace_spec.rb
View file @
b8ce910f
...
@@ -414,6 +414,7 @@ describe Gitlab::Ci::Trace do
...
@@ -414,6 +414,7 @@ describe Gitlab::Ci::Trace do
expect
(
File
.
exist?
(
src_path
)).
to
be_falsy
expect
(
File
.
exist?
(
src_path
)).
to
be_falsy
expect
(
src_checksum
)
expect
(
src_checksum
)
.
to
eq
(
Digest
::
SHA256
.
file
(
build
.
job_artifacts_trace
.
file
.
path
).
digest
)
.
to
eq
(
Digest
::
SHA256
.
file
(
build
.
job_artifacts_trace
.
file
.
path
).
digest
)
expect
(
build
.
job_artifacts_trace
.
file_sha256
).
to
eq
(
src_checksum
)
end
end
end
end
...
@@ -439,6 +440,7 @@ describe Gitlab::Ci::Trace do
...
@@ -439,6 +440,7 @@ describe Gitlab::Ci::Trace do
expect
(
build
.
old_trace
).
to
be_nil
expect
(
build
.
old_trace
).
to
be_nil
expect
(
src_checksum
)
expect
(
src_checksum
)
.
to
eq
(
Digest
::
SHA256
.
file
(
build
.
job_artifacts_trace
.
file
.
path
).
digest
)
.
to
eq
(
Digest
::
SHA256
.
file
(
build
.
job_artifacts_trace
.
file
.
path
).
digest
)
expect
(
build
.
job_artifacts_trace
.
file_sha256
).
to
eq
(
src_checksum
)
end
end
end
end
...
...
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