Commit ce738e94 authored by Michael Kozono's avatar Michael Kozono

Attempt CI fix

For this error only in CI:

  1) Gitlab::BackgroundMigration::PrepareUntrackedUploads test bulk insert with ON CONFLICT DO NOTHING or IGNORE when files were uploaded before and after hashed storage was enabled has a path field long enough for really long paths
     Failure/Error: record = untracked_files_for_uploads.create!(path: long_path)

     ActiveRecord::StatementInvalid:
       Mysql2::Error: SAVEPOINT active_record_1 does not exist: ROLLBACK TO SAVEPOINT active_record_1
parent 15aa2c42
Pipeline #17330274 passed with stages
in 42 minutes and 27 seconds
......@@ -6,6 +6,10 @@ describe Gitlab::BackgroundMigration::PrepareUntrackedUploads, :sidekiq do
let!(:untracked_files_for_uploads) { described_class::UntrackedFile }
before do
DatabaseCleaner.clean
end
after do
drop_temp_table_if_exists
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