Commit 8453d983 authored by Stan Hu's avatar Stan Hu

Skip transaction check for seeding burndown charts

The seed-fu gem wraps all seeds in a transaction:
https://github.com/mbleigh/seed-fu/blob/34c054c914858c3d7685f83d16dea5c0e2114561/lib/seed-fu/runner.rb#L35.
We can skip the Sidekiq transaction check for seeding test fixtures.

Closes https://gitlab.com/gitlab-org/gitlab-development-kit/issues/351
parent f850b1bd
......@@ -9,18 +9,20 @@ class Gitlab::Seeder::Burndown
def seed!
Timecop.travel 10.days.ago
Sidekiq::Testing.inline! do
create_milestone
puts '.'
Sidekiq::Worker.skipping_transaction_check do
Sidekiq::Testing.inline! do
create_milestone
puts '.'
create_issues
puts '.'
create_issues
puts '.'
close_issues
puts '.'
close_issues
puts '.'
reopen_issues
puts '.'
reopen_issues
puts '.'
end
end
Timecop.return
......
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