Script to debug code suggestions setup
Problem
Setting up self-hosted Duo is can be complicated, given that there are a few moving parts. We added a docs page to help troubleshooting (https://docs.gitlab.com/ee/administration/self_hosted_models/troubleshooting.html), which provides a bunch ways to identify issues with the installation. This is a manual process and requires a lot of copy pasting.
Suggestion
Transform the troubleshooting guide into a script that executes and outputs the existing problems. In fact we will need two scripts, one that tests gitlab side and another one that tests AIGW side:
Tasks:
-
Add gitlab script: -
test connection to AIGW (Adds script to debug self-hosted code suggestio... (!163613 - merged)) -
test env variables (Adds script to debug self-hosted code suggestio... (!163613 - merged)) -
test if feature flag is enabled (Adds script to debug self-hosted code suggestio... (!163613 - merged)) -
test if license is correct (Adds script to debug self-hosted code suggestio... (!163613 - merged)) -
test call code suggestions feature
-
-
Add aigw script, executed from the docker container: -
test environmental variables -
test call to AIGW -
test call to model
-
-
Update docs
These scripts are run by the administrator that is setting up the models, and complement the UX being designed.