Fix: resolve backtick error with `setup_ai_gateway` rake task
What does this merge request do and why?
A bug was introduced in the following GDK gitlab_ai_gateway
setup_gateway rake task due to looking at a backtick
command instead of a literal string. Here's the MR I'm referring to as well.
The issue is that the env_content won't match a backtick string instead of a literal string. The rake task wouldn't fail but would silently not add the required ENV_VARS
to the env.runit
file.
The following fix this to ensure that correct environment variables are saved to the env.runit
file.
How to set up and validate locally
- Run the following
rake setup_ai_gateway
- Make sure to comment out the following
GDK::Output.puts 'Updating GDK...'
GDK::Command::Update.new.run
- Ensure at the end of the process that the correct
env.runit
variables are added accordingly
Bad run of rake task | Fix |
---|---|
Impacted categories
The following categories relate to this merge request:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Merge request checklist
-
This change is backward compatible. If not, please include steps to communicate to our users. -
Tests added for new functionality. If not, please raise an issue to follow-up. -
Documentation added/updated, if needed. -
Announcement added, if change is notable. - []
gdk doctor
test added, if needed. -
Add the ~highlight
label if this MR should be included in theCHANGELOG.md
.
Edited by Nathan Weinshenker