Skip to content

LCORE-5678: remove redundant OGX restart steps - #3323

Merged
radofuchs merged 1 commit into
lightspeed-core:mainfrom
snuryyeva:snuryyeva/ogx_restart_removal
Nov 25, 2026
Merged

radofuchs merged 1 commit into
lightspeed-core:mainfrom
snuryyeva:snuryyeva/ogx_restart_removal

Conversation

@snuryyeva

@snuryyeva snuryyeva commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

Remove the OGX is restarted Behave step and all usages in okp_rag, unified-mode boot/migration/synthesis features; update local OKP testing doc to reference only The service is restarted.

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

  • Tests

    • Updated end-to-end scenarios and configurations for conversation compaction, service restarts, and the /v2 API prefix.
    • Adjusted the end-to-end test suite, including removing coverage for several conversation, networking, TLS, and legacy configuration scenarios.
  • Documentation

    • Updated local testing instructions to reflect the current service restart step.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The E2E suite removes the OGX is restarted step and its definition. OKP RAG scenarios retain the service restart step. Unified-mode scenarios restart Lightspeed Stack, and the local testing instructions reflect the removed step.

Changes

E2E restart-step updates

Layer / File(s) Summary
Remove OGX restart step from scenarios
tests/e2e/features/steps/common.py, tests/e2e/features/okp_rag.feature, tests/e2e/features/unified-mode-*.feature, docs/testing/e2e_testing.md
The OGX is restarted step definition and its scenario uses are removed. OKP RAG scenarios retain the service restart step, and unified-mode scenarios restart Lightspeed Stack. The local testing instructions no longer list the removed step.

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

Change: Other

Possibly related PRs

Suggested reviewers: asimurka, max-svistunov

Merge Risk: Minimal · up to 4ea79

This change removes a redundant restart step from the end-to-end tests and updates the local testing docs. It does not touch production code, and nothing else in the repository still refers to the removed step. The remaining risk is only that an E2E scenario could behave differently without the extra restart, which CI will reveal.

Pre-merge checks: Passed 6

Check name Status Explanation
Title check Passed The title names the main change: removing redundant OGX restart steps. The raw summary shows the OGX is restarted Behave step and restart_ogx function were removed, and the feature files and docs now …
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.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Performance And Algorithmic Complexity Passed PR #3323 removes the OGX is restarted Behave step and its restart_ogx helper, drops the matching step lines from six feature/doc files, and updates one doc sentence. I checked the diff range and t…
Security And Secret Handling Passed The PR removes the Behave step OGX is restarted (restart_ogx in tests/e2e/features/steps/common.py, lines 188-201 of the old file) and its feature-file usages. It also changes one line in `docs/…
Full details: Title check

Explanation

The title names the main change: removing redundant OGX restart steps. The raw summary shows the OGX is restarted Behave step and restart_ogx function were removed, and the feature files and docs now use The service is restarted or drop the OGX restart. The title includes a ticket ID, which is acceptable and does not make it misleading.

Full details: Performance And Algorithmic Complexity

Explanation

PR #3323 removes the OGX is restarted Behave step and its restart_ogx helper, drops the matching step lines from six feature/doc files, and updates one doc sentence. I checked the diff range and the changed hunks in tests/e2e/features/steps/common.py and docs/testing/e2e_testing.md. Against the custom check criteria: 1. O(n^2) or worse algorithms: none added. The change only removes code. 2. N+1 patterns: none added. 3. Expensive work in loops: none added. The removed step made one container restart per scenario that did not skip it. Removing it reduces work and does not add any. 4. Unbounded growth: no caches, buffers, or watchers added. 5. Missing pagination or limits: no List operations or API endpoints touched. The check is clean. The change does not introduce a meaningful performance regression.

Full details: Security And Secret Handling

Explanation

The PR removes the Behave step OGX is restarted (restart_ogx in tests/e2e/features/steps/common.py, lines 188-201 of the old file) and its feature-file usages. It also changes one line in docs/testing/e2e_testing.md. The diff contains no added code beyond that doc line. Checked against the five criteria: 1. Secrets or tokens: none added or hardcoded. The removed function only called restart_container("ogx") with a fixed container name. 2. Auth/authz on API endpoints: no API endpoint code changed. 3. Injection: no new command, SQL, or path handling. The removed call used a literal string argument. 4. Sensitive data in responses, WebSocket messages, or logs: the removed function printed a fixed skip message only. No sensitive data is exposed. 5. K8s/RH secrets and OwnerReferences: no Secret manifests changed. The remaining changes are test-scenario tag and step edits in .feature files. The check passes.

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 50bdd32 and 4ea79c8.

Files selected for processing: 1

  • tests/e2e/features/steps/common.py
Files with no reviewable changes: 1

  • tests/e2e/features/steps/common.py

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: 29

  • GitHub Check: E2E: ci / mcp
  • GitHub Check: E2E: ci / other
  • GitHub Check: E2E: ci / authorized
  • GitHub Check: E2E: ci / skills
  • GitHub Check: E2E: ci / shields
  • GitHub Check: E2E: ci / rbac
  • GitHub Check: E2E: ci / default
  • GitHub Check: Red Hat Konflux / rag-content-0-8-e2e-tests / lightspeed-stack-0-8
  • GitHub Check: pydocstyle
  • GitHub Check: Pyright
  • GitHub Check: Red Hat Konflux / lightspeed-stack-0-8-e2e-tests / lightspeed-stack-0-8
  • GitHub Check: list_outdated_dependencies
  • GitHub Check: ruff
  • GitHub Check: radon
  • GitHub Check: bandit
  • GitHub Check: spectral
  • GitHub Check: mypy
  • GitHub Check: shellcheck
  • GitHub Check: check_dependencies
  • GitHub Check: integration_tests (3.14)
  • GitHub Check: unit_tests (3.14)
  • GitHub Check: unit_tests (3.13)
  • GitHub Check: integration_tests (3.13)
  • GitHub Check: Pylinter
  • GitHub Check: build-pr
  • GitHub Check: Red Hat Konflux / lightspeed-core-0-8-enterprise-contract / lightspeed-stack-0-8
  • GitHub Check: integration_tests (3.12)
  • GitHub Check: unit_tests (3.12)
  • GitHub Check: Konflux kflux-prd-rh02 / lightspeed-stack-0-8-on-pull-request

@snuryyeva
snuryyeva force-pushed the snuryyeva/ogx_restart_removal branch from 50bdd32 to 4ea79c8 Compare November 24, 2026 14:12

@radofuchs radofuchs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@radofuchs
radofuchs requested a review from tisnik November 24, 2026 15:46
@coderabbitai coderabbitai Bot mentioned this pull request Nov 24, 2026
1 of 20 tasks
@radofuchs
radofuchs merged commit 7176f44 into lightspeed-core:main Nov 25, 2026
54 of 56 checks passed
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.

2 participants