Skip to content

Commit 31b6399

Browse files
authored
Merge pull request #1885 from anik120/okp-in-container
LCORE-2443: Simplify OKP RAG setup with git submodules and auto-enrichment
2 parents 42bf698 + eb9e5c9 commit 31b6399

18 files changed

Lines changed: 80 additions & 65 deletions

.github/workflows/build_and_push_dev.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
sudo apt install -y buildah qemu-user-static
2727
- name: Checkout code
2828
uses: actions/checkout@v4
29+
with:
30+
# Fetch submodules (required for lightspeed-providers)
31+
submodules: 'recursive'
2932
- name: Create dev image tag
3033
run: |
3134
echo "DEV_TAG=dev-$(date +%Y%m%d)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV

.github/workflows/build_and_push_release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
sudo apt install -y buildah qemu-user-static
2929
- name: Checkout code
3030
uses: actions/checkout@v4
31+
with:
32+
# Fetch submodules (required for lightspeed-providers)
33+
submodules: 'recursive'
3134
- name: Build image with Buildah
3235
id: build_image
3336
uses: redhat-actions/buildah-build@v2

.github/workflows/build_pr.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
sudo apt install -y buildah qemu-user-static
2525
- name: Checkout code
2626
uses: actions/checkout@v4
27+
with:
28+
# Fetch submodules (required for lightspeed-providers)
29+
submodules: 'recursive'
2730
- name: Build image with Buildah
2831
id: build_image
2932
uses: redhat-actions/buildah-build@v2

.github/workflows/e2e_tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
3838
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
3939

40+
# Fetch submodules (required for lightspeed-providers)
41+
submodules: ‘recursive’
42+
4043
- name: Verify actual git checkout result
4144
run: |
4245
echo "=== Git Status After Checkout ==="

.github/workflows/e2e_tests_lightspeed_evaluation.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
3131
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
3232

33+
# Fetch submodules (required for lightspeed-providers)
34+
submodules: 'recursive'
35+
3336
- name: Verify actual git checkout result
3437
run: |
3538
echo "=== Git Status After Checkout ==="

.github/workflows/e2e_tests_providers.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ jobs:
6262
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
6363
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
6464

65+
# Fetch submodules (required for lightspeed-providers)
66+
submodules: 'recursive'
67+
6568
- name: Verify actual git checkout result
6669
run: |
6770
echo "=== Git Status After Checkout ==="

.github/workflows/e2e_tests_rhaiis.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
5252
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
5353

54+
# Fetch submodules (required for lightspeed-providers)
55+
submodules: 'recursive'
56+
5457
- name: Verify actual git checkout result
5558
run: |
5659
echo "=== Git Status After Checkout ==="

.github/workflows/e2e_tests_rhelai.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
4646
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
4747

48+
# Fetch submodules (required for lightspeed-providers)
49+
submodules: 'recursive'
50+
4851
- name: Verify actual git checkout result
4952
run: |
5053
echo "=== Git Status After Checkout ==="

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "providers"]
2+
path = providers
3+
url = https://github.com/lightspeed-core/lightspeed-providers.git

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ start-llama-stack-container: build-llama-stack-image ## Start llama-stack contai
7272
-v $(PWD)/scripts/llama-stack-entrypoint.sh:/opt/app-root/enrich-entrypoint.sh:ro,z \
7373
-v $(PWD)/src/llama_stack_configuration.py:/opt/app-root/llama_stack_configuration.py:ro,z \
7474
-e OPENAI_API_KEY \
75-
-e EXTERNAL_PROVIDERS_DIR=$${EXTERNAL_PROVIDERS_DIR:-/opt/app-root/external_providers} \
7675
-e BRAVE_SEARCH_API_KEY \
7776
-e TAVILY_SEARCH_API_KEY \
7877
-e E2E_OPENAI_MODEL=$${E2E_OPENAI_MODEL:-gpt-4o-mini} \

0 commit comments

Comments
 (0)