Skip to content

LCORE-4855: tagging tests for rhelai pipe - #3392

Draft
snuryyeva wants to merge 1 commit into
lightspeed-core:mainfrom
snuryyeva:snuryyeva/rhelai_tests_change
Draft

snuryyeva wants to merge 1 commit into
lightspeed-core:mainfrom
snuryyeva:snuryyeva/rhelai_tests_change

Conversation

@snuryyeva

@snuryyeva snuryyeva commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

The RHEL AI Konflux pipeline hits the 3h timeout before the full e2e suite finishes. A large share of those scenarios never call vLLM: they are negative auth cases or FastAPI request-handler checks.

ex : https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/lightspeed-core-tenant/applications/lightspeed-core-0-8/pipelineruns/lightspeed-stack-0-8-rhelai-tests-gfl2f/logs?task=rhelai-e2e-tests

This PR keeps the 3h timeout and introduces :

  • tags for all scenarios that needs to run in RhelAI as vllm-matrix
  • mounts redhat-registry-io-pull-secret on the RHEL e2e task so OKP can pull from registry.redhat.io
  • updates docs and wiring update to run-tests.sh script to pick the right tag when RhelAI test runs

As a result, we will be executing 54 scenarios in RhelAI pipe : query / streaming_query / responses / responses_streaming, rlsapi v1 happy path, A2A send + multi-turn, BYOK PDF query, inline RAG structure, OKP offline, shield_ids overrides, question_validity query allow/deny, skills query (3), rbac query + models/info smoke, feedback, conversation cache v2.

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library [pyproject.toml + uv.lock]
  • Bump-up dependent library [requirements.*.txt for Konflux]
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

Identify any AI code assistants used in this PR (for transparency and review context)

  • Assisted-by: (e.g., Claude, CodeRabbit, Ollama, etc., N/A if not used)
  • Generated by: (e.g., tool name and version; N/A if not used)

Related Tickets & Documents

  • Related Issue #
  • Closes #

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

Summary by CodeRabbit

  • Testing
    • RHEL AI end-to-end runs now select a focused set of scenarios covering queries, attachments, streaming, RAG, responses, and other features, rather than the full suite.
    • Test selection can be configured, and the default excludes scenarios marked as skipped.
    • RHEL AI runs can access images from the Red Hat registry.
  • Documentation
    • Updated testing guidance to explain the RHEL AI scenario selection and provider-specific test behavior.

@snuryyeva
snuryyeva marked this pull request as draft December 1, 2026 16:52
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The RHEL AI E2E pipeline now selects @vllm-matrix scenarios. The change tags selected feature scenarios, updates the test runner to accept an overridable Behave tag expression, and mounts a registry pull secret for the test task.

Changes

RHEL AI E2E Matrix

Layer / File(s) Summary
Query and Responses scenario selection
tests/e2e/features/query.feature, tests/e2e/features/streaming_query.feature, tests/e2e/features/responses*.feature, tests/e2e/features/shields_question_validity.feature
Selected query, streaming, Responses, and streaming Responses scenarios gain @vllm-matrix. Shield question validity examples separate matrix-tagged query cases from Responses and RLS API cases.
Additional E2E scenario selection
tests/e2e/features/a2a.feature, tests/e2e/features/byok_pdf.feature, tests/e2e/features/conversation_cache_v2.feature, tests/e2e/features/feedback.feature, tests/e2e/features/inline_rag.feature, tests/e2e/features/okp_rag.feature, tests/e2e/features/rbac.feature, tests/e2e/features/rlsapi_v1.feature, tests/e2e/features/shields_overrides.feature, tests/e2e/features/skills.feature
Selected agent, PDF, conversation cache, feedback, RAG, RBAC, RLS API, shield override, and skills scenarios gain @vllm-matrix.
Pipeline selection and test execution
.tekton/integration-tests/README.md, .tekton/integration-tests/pipeline/lightspeed-stack-rhelai-test.yaml, tests/e2e-prow/rhoai/run-tests.sh, docs/testing/e2e_scenarios.md, docs/testing/e2e_testing.md
The RHEL AI pipeline selects @vllm-matrix scenarios and mounts the registry pull secret. The test runner accepts E2E_BEHAVE_TAG_EXPR, which defaults to -skip. The documentation describes the matrix and runtime skip tags.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Suggested reviewers: radofuchs, asimurka, are-ces

Merge Risk: Minimal · up to 4ac1f

This change narrows the RHEL AI end-to-end pipeline to a tagged subset of scenarios and mounts a registry pull secret. No concrete merge-blocking risk was found; the main unknown is that no run results were supplied.

Pre-merge checks: Passed 6

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "LCORE-4855: tagging tests for rhelai pipe" matches the main change. The PR adds @vllm-matrix tags to e2e scenarios so the RHEL AI Konflux pipeline runs a smaller set. The title names the ti…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Performance And Algorithmic Complexity Passed The pull request changes 21 files, and none is application or handler code. The changes are Gherkin tags in tests/e2e/features/*.feature, a shell wiring change in tests/e2e-prow/rhoai/run-tests.sh…
Security And Secret Handling Passed The PR changes CI wiring, documentation, and Behave tags. I checked the full changed-file list and the added lines in the diff against the five criteria. 1. Hardcoded or logged secrets: None. The …
Full details: Title check

Explanation

The title "LCORE-4855: tagging tests for rhelai pipe" matches the main change. The PR adds @vllm-matrix tags to e2e scenarios so the RHEL AI Konflux pipeline runs a smaller set. The title names the ticket, the action (tagging tests), and the target pipeline. It omits the run-tests.sh tag-expression change and the registry pull-secret mount, which is acceptable for a title.

Full details: Performance And Algorithmic Complexity

Explanation

The pull request changes 21 files, and none is application or handler code. The changes are Gherkin tags in tests/e2e/features/*.feature, a shell wiring change in tests/e2e-prow/rhoai/run-tests.sh, a Tekton pipeline YAML update, and documentation. I checked the file inventory with git diff --name-status and the run-tests.sh patch. The shell change only sets a default E2E_BEHAVE_TAG_EXPR and calls uv run behave directly. It adds no loops, list operations, caches, or per-item API calls. The tag and pipeline changes add no algorithmic work, N+1 queries, unbounded growth, or missing pagination. None of the five BLOCKING criteria applies, so the check passes.

Full details: Security And Secret Handling

Explanation

The PR changes CI wiring, documentation, and Behave tags. I checked the full changed-file list and the added lines in the diff against the five criteria. 1. Hardcoded or logged secrets: None. The only secret reference is secretName: redhat-registry-io-pull-secret in .tekton/integration-tests/pipeline/lightspeed-stack-rhelai-test.yaml. The secret value is not in the diff. No new command prints or cats the mounted path /var/run/redhat-registry-pull-secret. 2. Missing auth on API endpoints: Not applicable. No API endpoint code changed. The .feature edits only add tags. 3. Injection: No new risk found. E2E_BEHAVE_TAG_EXPR='not @skip and @vllm-matrix' is a constant set in the pipeline YAML. In tests/e2e-prow/rhoai/run-tests.sh, the default : "${E2E_BEHAVE_TAG_EXPR:=-skip}" is passed to behave as a quoted --tags="${E2E_BEHAVE_TAG_EXPR}" argument. 4. Sensitive data in responses or logs: None. The script's new echo prints only the tag expression. 5. K8s/RH secrets missing OwnerReferences: Not applicable. The PR creates no Secret. It mounts an existing secret, redhat-registry-io-pull-secret, as a volume. Residual note, outside the listed criteria: the RHEL AI task now mounts the registry pull secret into the e2e step's pod. Mount scope and read-only settings are not visible in the diff. This is an access-scope question, not one of the listed failure conditions.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Simplify code

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3792f6b and 4ac1faf.

Files selected for processing: 20

  • .tekton/integration-tests/README.md
  • .tekton/integration-tests/pipeline/lightspeed-stack-rhelai-test.yaml
  • docs/testing/e2e_scenarios.md
  • docs/testing/e2e_testing.md
  • tests/e2e-prow/rhoai/run-tests.sh
  • tests/e2e/features/a2a.feature
  • tests/e2e/features/byok_pdf.feature
  • tests/e2e/features/conversation_cache_v2.feature
  • tests/e2e/features/feedback.feature
  • tests/e2e/features/inline_rag.feature
  • tests/e2e/features/okp_rag.feature
  • tests/e2e/features/query.feature
  • tests/e2e/features/rbac.feature
  • tests/e2e/features/responses.feature
  • tests/e2e/features/responses_streaming.feature
  • tests/e2e/features/rlsapi_v1.feature
  • tests/e2e/features/shields_overrides.feature
  • tests/e2e/features/shields_question_validity.feature
  • tests/e2e/features/skills.feature
  • tests/e2e/features/streaming_query.feature

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Recent review details

Context from checks skipped due to timeout: 15

  • GitHub Check: E2E: ci / authorized
  • GitHub Check: E2E: ci / skills
  • GitHub Check: E2E: ci / other
  • GitHub Check: E2E: ci / rbac
  • GitHub Check: E2E: ci / shields
  • GitHub Check: E2E: ci / mcp
  • GitHub Check: E2E: ci / default
  • GitHub Check: Red Hat Konflux / lightspeed-core-0-8-enterprise-contract / lightspeed-stack-0-8
  • GitHub Check: Red Hat Konflux / rag-content-0-8-e2e-tests / lightspeed-stack-0-8
  • GitHub Check: Red Hat Konflux / lightspeed-stack-0-8-e2e-tests / lightspeed-stack-0-8
  • GitHub Check: Red Hat Konflux / lightspeed-stack-0-8-rhoai-tests / lightspeed-stack-0-8
  • GitHub Check: build-pr
  • GitHub Check: Konflux kflux-prd-rh02 / lightspeed-stack-0-8-on-pull-request
  • GitHub Check: Pylinter
  • GitHub Check: unit_tests (3.12)
Additional context used

Code guidelines: 2

CLAUDE.md — auto-discovered
AGENTS.md — auto-discovered
Path-based instructions: 1

Source excerpt: **E2E Tests**: Use behave (BDD) framework for end-to-end testing

CodeRabbit inference engine (CLAUDE.md)

Files:

  • tests/e2e/features/a2a.feature
  • tests/e2e/features/byok_pdf.feature
  • tests/e2e/features/conversation_cache_v2.feature
  • tests/e2e/features/feedback.feature
  • tests/e2e/features/inline_rag.feature
  • tests/e2e/features/okp_rag.feature
  • tests/e2e/features/query.feature
  • tests/e2e/features/rbac.feature
  • tests/e2e/features/responses.feature
  • tests/e2e/features/responses_streaming.feature
  • tests/e2e/features/rlsapi_v1.feature
  • tests/e2e/features/shields_overrides.feature
  • tests/e2e/features/shields_question_validity.feature
  • tests/e2e/features/skills.feature
  • tests/e2e/features/streaming_query.feature
Learnings: 1

Learning: 2026-10-31T11:32:30.158Z

Learnt from: CR
Repo: lightspeed-core/lightspeed-stack PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-10-31T11:32:30.158Z
Learning: Applies to tests/e2e/** : Source excerpt:
# Lightspeed Core Stack Development Guide

## Testing Framework

### Testing Framework Requirements

- **E2E Tests**: Use behave (BDD) framework for end-to-end testing

Applied to files:

  • tests/e2e/features/a2a.feature
  • tests/e2e/features/byok_pdf.feature
  • tests/e2e/features/feedback.feature
  • tests/e2e/features/query.feature
  • tests/e2e/features/rbac.feature
  • tests/e2e/features/responses.feature
  • tests/e2e/features/responses_streaming.feature
  • tests/e2e/features/rlsapi_v1.feature
  • tests/e2e/features/shields_question_validity.feature
  • tests/e2e/features/skills.feature
  • tests/e2e/features/streaming_query.feature
ast-grep (0.51.3)

tests/e2e-prow/rhoai/run-tests.sh

[warning] 71-71: set +e (or set +o errexit) disables the shell's errexit option, so the script keeps running after a command fails. This masks failures of security-critical operations (downloads, signature/checksum verification, permission changes, cleanup of secrets), letting the script proceed with a bad or insecure state. Leave errexit enabled (set -e / set -euo pipefail), or handle failures explicitly with if/|| and an explicit exit instead of globally turning off failure detection.
Context: set +e
Note: [CWE-754] Improper Check for Unusual or Exceptional Conditions.

(set-plus-e-error-masking-bash)

Additional comments: 4

tests/e2e/features/okp_rag.feature: 1

18-18: Stability & Availability

The premise that setup runs too late is contradicted. pipeline-konflux.sh creates and links redhat-registry-pull-secret in $NAMESPACE before behave starts. The @cfg_okp before-feature hook deploys Solr later, in the same namespace, and the Solr manifest references that secret. The RHEL AI task mounts the source secret and runs this script. The offline OKP scenario therefore has the pull secret available when it starts Solr. The residual dependency on credential availability is not a defect in this change.

tests/e2e/features/rbac.feature: 1

88-88: Data Integrity & Integration

The inspected evidence does not show a defect in this scenario. The fixture sets no non-vLLM default, and the registry fallback reaches vLLM first in the RHEL AI profile. The residual "wrong backend" result requires an empty vLLM catalog. That is a service-availability condition, not a defect in the PR.

tests/e2e/features/skills.feature: 1

95-95: Functional Correctness

The review's premise, that the RHEL AI job may lack the skill configurations or skill files for the three newly tagged scenarios, is contradicted. The configuration files and both skill directories are repository-owned and present in the checkout the RHEL pipeline runs. The tag only changes which scenarios run. It does not change what they load, so the tagging introduces no new provisioning gap. The requested "inspect job setup" check does not identify a missing artifact.

tests/e2e/features/shields_overrides.feature: 1

12-12: Functional Correctness

The RHEL AI pipeline supplies the shield dependency this scenario needs. The job runs pipeline-konflux.sh, which deploys and waits for mock-guardian, and lightspeed-stack-shields.yaml is in the repository. The concern about a missing shield pack or dependency does not hold.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant