Skip to content
Snippets Groups Projects
Commit a8e24c60 authored by Aleksei Lipniagov's avatar Aleksei Lipniagov
Browse files

Create :correlation_id for `import_failures`

parent 2a267e8c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -94,7 +94,7 @@ module Gitlab
relation_index: relation_index,
exception_class: exception.class.to_s,
exception_message: exception.message.truncate(255),
correlation_id_value: Labkit::Correlation::CorrelationId.current_id
correlation_id_value: Labkit::Correlation::CorrelationId.current_or_new_id
)
end
 
Loading
Loading
Loading
Loading
@@ -643,7 +643,9 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
before do
setup_import_export_config('with_invalid_records')
 
Labkit::Correlation::CorrelationId.use_id(correlation_id) { subject }
# Import is running from the rake task, `correlation_id` is not assigned
expect(Labkit::Correlation::CorrelationId).to receive(:new_id).and_return(correlation_id)
subject
end
 
context 'when failures occur because a relation fails to be processed' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment