Skip to content

Commit 6f9d644

Browse files
committed
Merge branch 'main' into JslYoon-image-attachments
Signed-off-by: Lucas <lyoon@redhat.com>
2 parents 824ed3f + 216426e commit 6f9d644

123 files changed

Lines changed: 15400 additions & 4993 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coderabbit.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,30 @@ reviews:
8585

8686
issue_assessment:
8787
mode: warning
88-
custom_checks: []
88+
custom_checks:
89+
- name: 'Performance and Algorithmic Complexity'
90+
mode: error
91+
instructions: |
92+
BLOCKING. Flag only meaningful performance regressions:
93+
1. O(n^2)+ algorithms on non-trivial inputs (handlers, K8s list operations).
94+
2. N+1 patterns: list-then-query-per-item (K8s API, DB).
95+
3. Expensive work inside loops (API calls, JSON parsing, regex compilation).
96+
4. Unbounded growth: caches, watchers, buffers without eviction/limits.
97+
5. Missing pagination/limits on List operations or API endpoints.
98+
99+
Per issue: file, lines, risk, fix category. If clean, mark PASSED.
100+
101+
- name: 'Security and Secret Handling'
102+
mode: error
103+
instructions: |
104+
BLOCKING. Flag:
105+
1. Secrets/tokens logged in plaintext or hardcoded in source.
106+
2. Missing auth/authz on API endpoints.
107+
3. Injection vulnerabilities (SQL, command, path traversal).
108+
4. Sensitive data leaked in API responses, WebSocket messages, or logs.
109+
5. K8s Secrets and RH secrets missing OwnerReferences.
110+
111+
Per violation: file, lines, risk. If clean, mark PASSED.
89112
90113
# ---------------------------------------------------------------------------
91114
# Tools

.github/workflows/build_and_push_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
# qemu is required for arm64 builds
2828
sudo apt install -y buildah qemu-user-static
2929
- name: Checkout code
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v7
3131
with:
3232
# Fetch submodules (required for lightspeed-providers)
3333
submodules: 'recursive'

.github/workflows/e2e_tests.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
E2E_LLAMA_HOSTNAME: ${{ vars.E2E_LLAMA_HOSTNAME || 'llama-stack' }}
2525

2626
steps:
27-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v7
2828
with:
2929
# On PR_TARGET → the fork (or same repo) that opened the PR.
3030
# On push → falls back to the current repository.
@@ -34,6 +34,11 @@ jobs:
3434
# On push → the pushed commit that triggered the workflow.
3535
ref: ${{ github.event.pull_request.head.ref || github.sha }}
3636

37+
# Tests need access to secrets.
38+
# This should be refactored if possible to mitigate the risk.
39+
# https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target
40+
allow-unsafe-pr-checkout: true
41+
3742
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
3843
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
3944

.github/workflows/e2e_tests_lightspeed_evaluation.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v7
2121
with:
2222
# On PR_TARGET → the fork (or same repo) that opened the PR.
2323
# On push → falls back to the current repository.
@@ -30,6 +30,11 @@ 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+
# Tests need access to secrets.
34+
# This should be refactored if possible to mitigate the risk.
35+
# https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target
36+
allow-unsafe-pr-checkout: true
37+
3338
# Fetch submodules (required for lightspeed-providers)
3439
submodules: 'recursive'
3540

@@ -47,7 +52,7 @@ jobs:
4752
git log --oneline -5
4853
4954
- name: Checkout lightspeed-Evaluation
50-
uses: actions/checkout@v4
55+
uses: actions/checkout@v7
5156
with:
5257
repository: lightspeed-core/lightspeed-evaluation
5358
path: lightspeed-evaluation

.github/workflows/e2e_tests_providers.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
E2E_DEFAULT_PROVIDER_OVERRIDE: ${{ matrix.e2e_default_provider }}
5050

5151
steps:
52-
- uses: actions/checkout@v4
52+
- uses: actions/checkout@v7
5353
with:
5454
# On PR_TARGET → the fork (or same repo) that opened the PR.
5555
# On push → falls back to the current repository.
@@ -59,6 +59,11 @@ jobs:
5959
# On push → the pushed commit that triggered the workflow.
6060
ref: ${{ github.event.pull_request.head.ref || github.sha }}
6161

62+
# Tests need access to secrets.
63+
# This should be refactored if possible to mitigate the risk.
64+
# https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target
65+
allow-unsafe-pr-checkout: true
66+
6267
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
6368
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
6469

.github/workflows/e2e_tests_rhaiis.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
E2E_DEFAULT_PROVIDER_OVERRIDE: vllm
3939

4040
steps:
41-
- uses: actions/checkout@v4
41+
- uses: actions/checkout@v7
4242
with:
4343
# On PR_TARGET → the fork (or same repo) that opened the PR.
4444
# On push → falls back to the current repository.
@@ -48,6 +48,11 @@ jobs:
4848
# On push → the pushed commit that triggered the workflow.
4949
ref: ${{ github.event.pull_request.head.ref || github.sha }}
5050

51+
# Tests need access to secrets.
52+
# This should be refactored if possible to mitigate the risk.
53+
# https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target
54+
allow-unsafe-pr-checkout: true
55+
5156
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
5257
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
5358

.github/workflows/radon.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
pull-requests: read
1313
name: "radon"
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v7
1616
- uses: davidslusser/actions_python_radon@v1.0.0
1717
with:
1818
src: "src"

.konflux/build-args-konflux.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BUILDER_BASE_IMAGE=registry.redhat.io/rhai/base-image-cpu-rhel9:3.2
1+
BUILDER_BASE_IMAGE=quay.io/aipcc/base-images/cpu:3.5.0-1782914735
22
BUILDER_DNF_COMMAND=dnf
3-
RUNTIME_BASE_IMAGE=registry.redhat.io/rhai/base-image-cpu-rhel9:3.2
3+
RUNTIME_BASE_IMAGE=quay.io/aipcc/base-images/cpu:3.5.0-1782914735
44
RUNTIME_DNF_COMMAND=dnf

.konflux/profiles.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[common]
2+
python_version = "3.12"
3+
platforms = ["x86_64", "aarch64"]
4+
bootstrap_packages = ["maturin"]
5+
6+
[profiles.cpu]
7+
rhoai_index_url = "https://packages.redhat.com/api/pypi/public-rhai/rhoai/3.5/cpu-ubi9/simple/"
8+
output_suffix = ""
9+
tekton_files = [
10+
".tekton/lightspeed-stack-0-7-pull-request.yaml",
11+
".tekton/lightspeed-stack-0-7-push.yaml",
12+
]

.konflux/pypi_wheel_only.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Packages where PyPI has an sdist but it cannot be built reliably.
2+
# Rust/C++ bootstrap, binary-only distributions, CUDA stack.
3+
#
4+
# Pure-Python packages whose build backends pull in C-extension deps
5+
# (e.g. jinja2→markupsafe) that conflict with RHOAI-rebuilt wheels.

0 commit comments

Comments
 (0)