-
Notifications
You must be signed in to change notification settings - Fork 101
LCORE-3048 : snuryyeva/okp rag implementation (DO NOT MERGE) #2553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
snuryyeva
wants to merge
60
commits into
lightspeed-core:main
Choose a base branch
from
snuryyeva:snuryyeva/okp_rag_implementation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
6c0c8a4
adding new OKP tests
8684b24
added skip tags
91cf1f9
fixed typo
f8b73f4
removed extra config calls
e7c7f3e
created config yaml and created step definitions
669f275
Merge branch 'main' into snuryyeva/okp_rag_implementation
335c086
extended steps
325a496
Merge branch 'main' into snuryyeva/okp_rag_implementation
b8f0bac
updated parsing logic for streaming
9ec8eaf
Merge branch 'main' into snuryyeva/okp_rag_implementation
e2faa2a
updated parameters for stopping docker
065f4a2
added Openshift support for OKP tests
fd3908a
Merge branch 'main' into snuryyeva/okp_rag_implementation
ae2c13b
addressing comments
e1bd2bd
Merge branch 'main' into snuryyeva/okp_rag_implementation
751079c
updated parsing logic in llm_query file
1b73eb1
linting
2e60615
Reset use_streaming_response_data for non-SSE responses
9ba8056
updated konflu runner for OKP deploy/cleanup and port forwarding
9bb8ac7
Add an OwnerReference to redhat-registry-pull-secret
0877f66
fixing syntax error
9e5aa1e
port-forward restart issue fix
14fc382
Added a timeout to both OKP readiness
a3b8be5
adding OKP deploy logs
c1a00d2
adding a fix for silent long waits
05f701e
removing the namespace-wide secret listing
c664fe7
commenting out registry username and pass volume mounts
776ac9f
Merge branch 'main' into snuryyeva/okp_rag_implementation
e133fe2
updating volume mounts to use existing Konflux secrets set for pullin…
c5bd672
updating the okp_guide
d4ab395
fixing ownerReference issue
c8c6c52
adding debug logs
ddbfeb5
Merge branch 'main' into snuryyeva/okp_rag_implementation
928e2e6
fixed formatting
c1e0ef0
removed space
8bc2210
fix: use PipelineRun UID for secret ownerReference instead of pod UID
c722e07
increase timeout from 180s to 900s
adc70b4
added external provider set up to OGX container
e19d665
removed skip tags
9c473b1
fix for setting external providers
43e0cd1
addressing too many branches issue
232646e
moved 2 tests out of query feature file
03b64fa
Added automatic cache invalidation based on git revision
30bc542
add EXTERNAL_PROVIDERS_DIR env var to OGX pods for remote provider re…
3993e8f
download lightspeed-providers in E2E run-from-source init container
d7de4ef
RSPEED-XXXX: fix lightspeed-providers download in E2E init container …
d48d889
path update for external providers
c3b53ba
added llama restart steps
02c5ae6
tagging okp tests to only run in library mode to save on llama stack …
2feabb8
adding logs to env.py file for okp test debugging
a630bde
LCORE-XXXX: add debug logging and capture=False for before_feature hook
2bd25d9
LCORE-XXXX: fix library mode synthesized config path to use /tmp for …
973b506
updating storage path
cdfdf45
updated artifact to download the new provider archive
9d863f3
Merge branch 'main' into snuryyeva/okp_rag_implementation
1ad5616
Deploy OKP Solr only for okp_rag.feature and run those tests in serve…
3d23653
Revert the /tmp library-mode path workaround, add tag for skipping ok…
a2eff4a
added serach_mode to the yaml and guide
6d6e02e
updated solr check availability in OGX
5c047bf
removed okp references in prow files
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| apiVersion: v1 | ||
| kind: Pod | ||
| metadata: | ||
| name: okp-solr-service | ||
| labels: | ||
| app: okp-solr | ||
| spec: | ||
| securityContext: | ||
| runAsNonRoot: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| imagePullSecrets: | ||
| - name: redhat-registry-pull-secret | ||
| containers: | ||
| - name: okp-solr | ||
| image: registry.redhat.io/offline-knowledge-portal/rhokp-rhel9:latest | ||
| imagePullPolicy: IfNotPresent | ||
| securityContext: | ||
| allowPrivilegeEscalation: false | ||
| capabilities: | ||
| drop: ["ALL"] | ||
| runAsNonRoot: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| ports: | ||
| - containerPort: 8080 | ||
| name: http | ||
| readinessProbe: | ||
| httpGet: | ||
| path: /solr | ||
| port: 8080 | ||
| initialDelaySeconds: 30 | ||
| periodSeconds: 10 | ||
| timeoutSeconds: 5 | ||
| failureThreshold: 3 | ||
| livenessProbe: | ||
| httpGet: | ||
| path: /solr | ||
| port: 8080 | ||
| initialDelaySeconds: 60 | ||
| periodSeconds: 30 | ||
| timeoutSeconds: 5 | ||
| failureThreshold: 3 | ||
| resources: | ||
| requests: | ||
| memory: "512Mi" | ||
| cpu: "250m" | ||
| limits: | ||
| memory: "2Gi" | ||
| cpu: "1000m" | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: okp-solr-service-svc | ||
| spec: | ||
| selector: | ||
| app: okp-solr | ||
| ports: | ||
| - port: 8080 | ||
| targetPort: 8080 | ||
| name: http | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Pin the OKP image to an immutable digest.
Line 16 uses
:latest. Line 17 can reuse a cached image that differs between nodes. The same E2E scenario can then run against different OKP versions. Use a tested image digest.🧰 Tools
🪛 Checkov (3.3.10)
[low] 1-51: The default namespace should not be used
(CKV_K8S_21)
[low] 1-51: Image should use digest
(CKV_K8S_43)
[low] 1-51: Image Pull Policy should be Always
(CKV_K8S_15)
[low] 1-51: Image Tag should be fixed - not latest or blank
(CKV_K8S_14)
[low] 1-51: Use read-only filesystem for containers where possible
(CKV_K8S_22)
[low] 1-51: Containers should run as a high UID to avoid host conflict
(CKV_K8S_40)
[low] 1-51: Ensure that Service Account Tokens are only mounted where necessary
(CKV_K8S_38)
🪛 Trivy (0.73.0)
[warning] 15-50: Image tag ":latest" used
Container 'okp-solr' of Pod 'okp-solr-service' should specify an image tag
Rule: KSV-0013
Learn more
(IaC/Kubernetes)
[error] 15-50: Root file system is not read-only
Container 'okp-solr' of Pod 'okp-solr-service' should set 'securityContext.readOnlyRootFilesystem' to true
Rule: KSV-0014
Learn more
(IaC/Kubernetes)
[info] 15-50: Runs with UID <= 10000
Container 'okp-solr' of Pod 'okp-solr-service' should set 'securityContext.runAsUser' > 10000
Rule: KSV-0020
Learn more
(IaC/Kubernetes)
[info] 15-50: Runs with GID <= 10000
Container 'okp-solr' of Pod 'okp-solr-service' should set 'securityContext.runAsGroup' > 10000
Rule: KSV-0021
Learn more
(IaC/Kubernetes)
[warning] 15-50: Restrict container images to trusted registries
Container okp-solr in pod okp-solr-service (namespace: default) uses an image from an untrusted registry.
Rule: KSV-0125
Learn more
(IaC/Kubernetes)
🤖 Prompt for AI Agents
Source: Linters/SAST tools