Fix GitHub repositories mirror
What does this MR do and why?
Update GitHub Import to use a different method to check if the import_state is not completed as the in_progress method can not be used as it is coupled to the repository mirror domain
Related to: #419532 (closed)
Context
The bug was introduced by !122141 (merged) which started to stop the execution of the workers if the import isn't in_progress
.
The problem is that the in_progress method is overridden in EE in a way that prevents us from using in an import context.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Enabled GitHub Import in http://gdk.test:3000/admin/application_settings/general -> Visibility and access controls -> Import Sources -> GitHub Import
- Go to New Project
- Select the option Run CI/CD for external repository
- Then Select GitHub
- Provide an access token
- Select the project to be imported
- Wait the import to finish
- Open the project
- Go to Settings -> Repository -> Mirroring repositories
- Check if the mirror status was updated
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Rodrigo Tomonari