Commit 154f2f1
LCORE-1497: Fix RHOAI Prow e2e pipeline failures (#1613)
* bump rhoai image version in prow tests
* Fix missing closing brace in LLAMA_STACK_IMAGE parameter expansion
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix prow pipeline: in-cluster image build, RAG config, port-forward fix
- Build llama-stack image in OpenShift internal registry via oc new-build/start-build
- Add image-puller role for default SA to pull from internal registry
- Add FAISS_VECTOR_STORE_ID and KV_RAG_PATH env vars to lightspeed-stack pod
- Add inference, byok_rag, and rag sections to prow lightspeed-stack configs
- Use envsubst with specific variable scoping in pipeline-services.sh
- Fix free_local_tcp_port to only kill LISTEN sockets (was killing behave process)
- Add MCP token secrets and empty OpenAI secret to pipeline.sh
- Add rlsapi_v1_infer action to prow RBAC config
- Simplify llama-stack.yaml to use pre-built image
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add namespace diagnostic logging to prow pipeline
Add DEBUG NS checkpoints to trace when e2e-rhoai-dsc namespace
disappears during operator bootstrapping.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove namespace from cluster-scoped DataScienceCluster CR
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add model/provider override env vars to prow pipeline
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix prow pipeline: run bootstrap before namespace creation
The RHOAI operator deletes the e2e-rhoai-dsc namespace during DSC
reconciliation. Reorder pipeline to run operator bootstrap first,
then create namespace and secrets after DSC settles.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Hardcode NAMESPACE to avoid Prow env override
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Re-enable secret exports in prow pipeline
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Add enrichment and RAG restore to prow llama-stack manifest
Rename llama-stack.yaml to llama-stack-prow.yaml and add:
- Config enrichment via llama_stack_configuration.py
- restore_rag_seed() to re-inflate RAG db after enrichment
- PYTHONPATH, lightspeed-stack.yaml mount, rag-data mount
- materialize-run-yaml init container
- Model/provider overrides in inline_rag e2e tests
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix prow e2e pipeline: secret ordering, config path, and test runner
- Create llama-stack-ip-secret before deploying the pod to fix
chicken-and-egg dependency where the pod requires the secret as
a non-optional env var
- Add LLAMA_STACK_CONFIG env var pointing to the correct emptyDir
mount path where materialize-run-yaml init container places run.yaml
- Use make test-e2e-local instead of test-e2e to avoid macOS-incompatible
script -c flag
- Remove DEBUG NS echo lines from pipeline scripts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix e2e-ops restart failures and mock-jwks port-forward
- Replace unfiltered envsubst with sed in e2e-ops.sh restart commands
to prevent blanking $VAR references in embedded bash scripts
- Add mock-jwks port-forward management (kill/restart/health check)
so RBAC and MCP tests don't fail with connection refused on :8000
- Restart mock-jwks port-forward as part of lightspeed restart
- Increase vLLM max-model-len from 2048 to 32768 to avoid context
length errors with RAG queries
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Improve port-forward resilience for Prow E2E tests
verify_connectivity now checks /v1/models returns 200 (not just
/readiness) to ensure the app is fully initialized before declaring
success. before_scenario in the test framework probes the port-forward
before each scenario and auto-restarts it via e2e-ops if dead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix update-configmap cascade failure and surface oc errors
Replace fragile oc delete + oc create with oc create --dry-run | oc apply
so a failed update leaves the ConfigMap intact instead of deleted. The
old approach caused 156 errored scenarios: if create failed after delete
succeeded, the ConfigMap was gone and every subsequent update also failed.
Also print stdout/stderr from e2e-ops on failure so the actual oc error
is visible in test logs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix verify_connectivity for auth-enabled Prow environments
On Prow, both /readiness and /v1/models return 401 when auth is enabled.
The previous fix only accepted 200 from /v1/models, causing connectivity
checks to always fail and port-forward to be declared dead. Accept 401
as valid — it proves the full app stack is running, not just the socket.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix Llama Stack disruption cascade and pipeline port-forward coordination
Llama Stack disruption tests left the pod dead after the feature because
Behave clears custom context attributes between scenarios, so
after_feature never saw llama_stack_was_running=True. This caused 59+
subsequent scenarios to cascade-fail with Connection refused.
Three fixes:
- Store was_running in module-level state (survives Behave context resets)
so after_feature reliably triggers _restore_llama_stack
- Add restart-lightspeed fallback in before_scenario when port-forward
alone fails (recovers from dead pods, not just dead tunnels)
- Align pipeline.sh with pipeline-konflux.sh: export PID file paths for
e2e-ops.sh, start Llama Stack port-forward on :8321, and use
lsof/fuser fallback for port cleanup in minimal images
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Skip TLS and proxy e2e tests in Prow (no Docker Compose services)
TLS and proxy features depend on mock-tls-inference and proxy sidecars
that are only deployed via Docker Compose, not in the OpenShift cluster.
Every TLS scenario burned 200s waiting for a provider that never exists,
consuming ~63 min of the 4h Prow timeout for guaranteed failures.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix after_feature AttributeError on hostname_llama
Behave clears custom context attributes between scenarios, so
hostname_llama/port_llama are gone by the time after_feature runs.
Store them in module-level state (same pattern as llama_stack_was_running).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Radovan Fuchs <rfuchs@rfuchs-thinkpadp1gen7.tpb.csb>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 93b2bb5 commit 154f2f1
16 files changed
Lines changed: 641 additions & 152 deletions
File tree
- tests
- e2e-prow/rhoai
- manifests
- lightspeed
- operators
- vllm
- scripts
- e2e
- features
- steps
- utils
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
Lines changed: 205 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
Lines changed: 0 additions & 62 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | | - | |
| 16 | + | |
10 | 17 | | |
11 | | - | |
12 | | - | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | | - | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments