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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
c29d7cd2
Commit
c29d7cd2
authored
Feb 18, 2020
by
Igor Drozdov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store lsif ci artifact as gzip
parent
dd2ba194
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/models/ci/job_artifact.rb
app/models/ci/job_artifact.rb
+2
-2
spec/factories/ci/job_artifacts.rb
spec/factories/ci/job_artifacts.rb
+2
-2
No files found.
app/models/ci/job_artifact.rb
View file @
c29d7cd2
...
...
@@ -42,6 +42,7 @@ module Ci
metrics: :gzip
,
metrics_referee: :gzip
,
network_referee: :gzip
,
lsif: :gzip
,
# All these file formats use `raw` as we need to store them uncompressed
# for Frontend to fetch the files and do analysis
...
...
@@ -53,8 +54,7 @@ module Ci
dast: :raw
,
license_management: :raw
,
license_scanning: :raw
,
performance: :raw
,
lsif: :raw
performance: :raw
}.
freeze
TYPE_AND_FORMAT_PAIRS
=
INTERNAL_TYPES
.
merge
(
REPORT_TYPES
).
freeze
...
...
spec/factories/ci/job_artifacts.rb
View file @
c29d7cd2
...
...
@@ -141,11 +141,11 @@ FactoryBot.define do
trait
:lsif
do
file_type
{
:lsif
}
file_format
{
:
raw
}
file_format
{
:
gzip
}
after
(
:build
)
do
|
artifact
,
evaluator
|
artifact
.
file
=
fixture_file_upload
(
Rails
.
root
.
join
(
'spec/fixtures/lsif.json.gz'
),
'application/
octet-stream
'
)
Rails
.
root
.
join
(
'spec/fixtures/lsif.json.gz'
),
'application/
x-gzip
'
)
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