[Rails5] duplicate key value violates unique constraint "index_gpg_signatures_on_commit_sha"
https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/88689196
ActiveRecord::RecordNotUnique:
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_gpg_signatures_on_commit_sha"
DETAIL: Key (commit_sha)=(\x33f3729a45c02fc67d00adb1b8bca394b0e761d9) already exists.
: INSERT INTO "gpg_signatures" ("created_at", "updated_at", "project_id", "commit_sha", "gpg_key_primary_keyid", "verification_status") VALUES ('2018-08-12 07:15:03.035979', '2018-08-12 07:15:03.035979', 104, '\x33f3729a45c02fc67d00adb1b8bca394b0e761d9', '\x627c5f589f467f17', 5) RETURNING "id"
This is probably related to !21119 (merged) but unfortunately specs are still failing.