Commit c29d7cd2 authored by Igor Drozdov's avatar Igor Drozdov

Store lsif ci artifact as gzip

parent dd2ba194
...@@ -42,6 +42,7 @@ module Ci ...@@ -42,6 +42,7 @@ module Ci
metrics: :gzip, metrics: :gzip,
metrics_referee: :gzip, metrics_referee: :gzip,
network_referee: :gzip, network_referee: :gzip,
lsif: :gzip,
# All these file formats use `raw` as we need to store them uncompressed # All these file formats use `raw` as we need to store them uncompressed
# for Frontend to fetch the files and do analysis # for Frontend to fetch the files and do analysis
...@@ -53,8 +54,7 @@ module Ci ...@@ -53,8 +54,7 @@ module Ci
dast: :raw, dast: :raw,
license_management: :raw, license_management: :raw,
license_scanning: :raw, license_scanning: :raw,
performance: :raw, performance: :raw
lsif: :raw
}.freeze }.freeze
TYPE_AND_FORMAT_PAIRS = INTERNAL_TYPES.merge(REPORT_TYPES).freeze TYPE_AND_FORMAT_PAIRS = INTERNAL_TYPES.merge(REPORT_TYPES).freeze
......
...@@ -141,11 +141,11 @@ FactoryBot.define do ...@@ -141,11 +141,11 @@ FactoryBot.define do
trait :lsif do trait :lsif do
file_type { :lsif } file_type { :lsif }
file_format { :raw } file_format { :gzip }
after(:build) do |artifact, evaluator| after(:build) do |artifact, evaluator|
artifact.file = fixture_file_upload( 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
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment