Deprecate X-Ray CI job and execute dependency config file parser service automatically in a worker
Summary
In #476177 (closed), we reproduced the Repository X-Ray functionality in the GitLab monolith in library classes. In this issue:
- Create a new service/worker that utilizes those library classes.
- Replace the X-Ray CI job execution with that service/worker.
Proposal
Deprecate the X-Ray CI job approach and replace it with executing a new config file parser service in a worker. It should be triggered upon a new commit pushed to the project's default branch.
To reduce redundancy and Gitaly load, we should use an exclusive lease guard to prevent parallel scanning on the same project.
Edited by Leaminn Ma