Commit 2e069f6e authored by Nick Thomas's avatar Nick Thomas

Merge branch 'id-gzip-lsif-ci-artifact' into 'master'

Store lsif ci artifact as gzip

See merge request gitlab-org/gitlab!25412
parents 77622268 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
......
......@@ -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
......
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