Pull mirrors with "canceled" state
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem
Originally reported in https://gitlab.com/gitlab-com/support/internal-requests/-/issues/26112
The project with a pull mirror had a ProjectImportState.status
set to "canceled". This status isn't supported by the Pull Mirror flow and breaks the pull mirroring process. Currently, there's no way to recover from the canceled
state.
I suspect this state was set in the this file: https://gitlab.com/gitlab-org/gitlab/-/blob/35c8eea729534fcf7ffedee0d3f0f622417a5b51/app/services/import/github/cancel_project_import_service.rb#L13.
The query below confirms that many projects could be affected by this issue:
ProjectImportState.where(status: 'canceled').count
Proposal
- Document reproduction steps to reach the
canceled
status - Determine how to recover from the
canceled
status - Decide what to do with existing projects that have a
canceled
status
Edited by 🤖 GitLab Bot 🤖