Developer Lightspeed in RHDH local - #64
Conversation
Reviewer's GuideThis PR integrates Developer Lightspeed into the RHDH local environment by extending the startup script to conditionally load a Lightspeed-specific app config, updating CI workflows to test Lightspeed compose overlays, and adding comprehensive documentation, compose files, and configuration templates for the new Lightspeed service. Class diagram for Lightspeed app config structureclassDiagram
class LightspeedConfig {
+bool questionValidation
+Server[] servers
}
class Server {
+string id
+string url
+string token
}
LightspeedConfig "1" o-- "many" Server
Flow diagram for conditional loading of Lightspeed app config in startup scriptflowchart TD
Start([Start])
CheckUserConfig{User app-config.local.yaml exists?}
CheckLegacyConfig{Legacy app-config.local.yaml exists?}
CheckLightspeedConfig{Lightspeed app-config.lightspeed.local.yaml exists?}
BuildArgs["Build EXTRA_CONFIGS with found configs"]
BuildCLIArgs["Build EXTRA_CLI_ARGS from EXTRA_CONFIGS"]
StartBackend["Start Backstage backend with CLI args"]
Start --> CheckUserConfig
CheckUserConfig -- Yes --> BuildArgs
CheckUserConfig -- No --> CheckLegacyConfig
CheckLegacyConfig -- Yes --> BuildArgs
CheckLegacyConfig -- No --> CheckLightspeedConfig
BuildArgs --> CheckLightspeedConfig
CheckLightspeedConfig -- Yes --> BuildArgs
CheckLightspeedConfig -- No --> BuildCLIArgs
CheckLightspeedConfig -- Yes --> BuildCLIArgs
BuildCLIArgs --> StartBackend
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey @karthikjeeyar - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `additional-config-guides/lightspeed-guide.md:12` </location>
<code_context>
+**Prerequisites**
+
+- Ensure you have **Podman** and **podman-compose** installed and available in your PATH.
+- You should have a working RHDH local environment.
+- Access to a Lightspeed server and API key.
+
</code_context>
<issue_to_address>
Use 'an' instead of 'a' before 'RHDH local environment'.
'RHDH' is pronounced with a vowel sound, so 'an' is correct here.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
cc: @benwilcock @kadel |
a7269f1 to
f6c8971
Compare
|
I think the guide or the changes might have missed the example .env changes required because when I try and boot the container I get: WARN[0000] The "LIGHTSPEED_SERVER_TOKEN" variable is not set. Defaulting to a blank string.
WARN[0000] The "LIGHTSPEED_SERVER_ID" variable is not set. Defaulting to a blank string.
WARN[0000] The "LIGHTSPEED_SERVER_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "LIGHTSPEED_SERVER_TOKEN" variable is not set. Defaulting to a blank string. The default settings would need adding to the |
|
I now have the ENV vars in the default.env, but I still get the warnings!? However, the VARS are in place - I can see them when I ssh into the container and run |
|
The problem was I have fixed it now, RCS should pick up the LIGHTSPEED server details from env correctly. |
|
FYI @benwilcock you do not need |
|
I've tried again by pulling the latest. Now I get a new error: |
cd135d2 to
1ef9b5d
Compare
ee67ae3 to
75d1b92
Compare
0cf478a to
c117d61
Compare
2dbbbd9 to
6aaa3a7
Compare
6aaa3a7 to
e9ab661
Compare
|
@rm3l I have updated the documetation to add table of contents and reordered the cleanup section. |
99df095 to
cfe6d23
Compare
dc954c9 to
285434d
Compare
|
It would be good if we could get this merged in to coincide with the release of 1.7, specifically the docs - they have a link to the RHDH Local repo and mention that Lightspeed can be tested using RHDH Local. |
|
Merging this PR since it has been approved by several people. |

Description
This PR adds support for integrating Developer Lightspeed into the rhdh-local environment, providing a generative AI-powered virtual assistant within the RHDH console.
Key Additions and Changes:
The startup script wait-for-plugins-and-start.sh now conditionally includes
app-config.lightspeed.local.yamlas an extra configuration file, allowing users to easily enable Developer Lightspeed features for local development.Added a comprehensive guide developer-lightspeed-guide.md detailing how to set up and use Developer Lightspeed in rhdh-local. The guide covers prerequisites, configuration steps, environment variable setup, and verification instructions
Provided example override files for both dynamic plugins and app config to simplify the onboarding process for Lightspeed users.
The setup leverages environment variables for secure and flexible configuration of Lightspeed server details and API keys.
The guide and scripts support both quick-start (copy-paste) and manual merge approaches for users with existing customizations.
Which issue(s) does this PR fix or relate to
https://issues.redhat.com/browse/RHDHPAI-964
PR acceptance criteria
How to test changes / Special notes to the reviewer
Follow this guide to get started with Developer lightspeed - developer-lightspeed/README.md
Summary by Sourcery
Enable Developer Lightspeed integration in the RHDH local environment by extending startup scripts, configuration files, compose overlays, and documentation.
New Features:
Enhancements:
Documentation:
Chores:
Summary by Sourcery
Enable Developer Lightspeed integration in the RHDH local environment by extending startup scripts, adding compose overlays and example configs, updating CI workflows, and providing detailed setup documentation
New Features:
Enhancements:
CI:
Documentation:
Chores: