Skip to content

LCORE-1608: updated docs for src folders#1423

Merged
tisnik merged 3 commits intolightspeed-core:mainfrom
tisnik:lcore-1608-updated-docs-for-src-folders
Mar 29, 2026
Merged

LCORE-1608: updated docs for src folders#1423
tisnik merged 3 commits intolightspeed-core:mainfrom
tisnik:lcore-1608-updated-docs-for-src-folders

Conversation

@tisnik
Copy link
Copy Markdown
Contributor

@tisnik tisnik commented Mar 29, 2026

Description

LCORE-1608: updated docs for src folders

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library
  • 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

  • Assisted-by: N/A
  • Generated by: N/A

Related Tickets & Documents

  • Related Issue #LCORE-1608

Summary by CodeRabbit

  • Documentation
    • Expanded endpoint documentation to cover dynamic server management, Responses API usage, and streaming-interrupt behavior.
    • Updated utility docs to describe multi-server OAuth probing and an in-memory stream-interrupt registry.
    • Added and refined READMEs for end-to-end, integration, and unit test infrastructure, mock services, networking proxies, BYOK and secrets test fixtures.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 29, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 95822c06-e944-486a-b771-d605a83fa9b7

📥 Commits

Reviewing files that changed from the base of the PR and between fe32222 and 2965d70.

📒 Files selected for processing (5)
  • tests/e2e/features/steps/README.md
  • tests/e2e/features/steps/place_holder.py
  • tests/e2e/secrets/README.md
  • tests/integration/endpoints/test_query_byok_integration.py
  • tests/integration/endpoints/test_streaming_query_byok_integration.py
✅ Files skipped from review due to trivial changes (5)
  • tests/e2e/features/steps/place_holder.py
  • tests/integration/endpoints/test_query_byok_integration.py
  • tests/integration/endpoints/test_streaming_query_byok_integration.py
  • tests/e2e/secrets/README.md
  • tests/e2e/features/steps/README.md

Walkthrough

This PR updates and adds README documentation across the repository, documenting new endpoint handlers, utilities, E2E/integration/unit test modules, and test infrastructure. Changes are documentation-only; no functional code or public API declarations were modified.

Changes

Cohort / File(s) Summary
Source endpoints & utils
src/app/endpoints/README.md, src/utils/README.md
Documents new endpoint handlers mcp_servers.py, responses.py, and stream_interrupt.py; updates mcp_oauth_probe.py description and adds stream_interrupts.py utility documentation.
E2E features & test infra
tests/e2e/features/steps/README.md, tests/e2e/features/steps/place_holder.py, tests/e2e/mock_mcp_server/README.md, tests/e2e/proxy/README.md, tests/e2e/secrets/README.md, tests/e2e/utils/README.md
Adds/updates docs for new Behave step modules (models.py, proxy.py, responses_steps.py, rlsapi_v1.py, etc.), mock MCP server, proxy tools (interception_proxy.py, tunnel_proxy.py), secrets fixtures, and E2E utilities (llama_stack_utils.py, prow_utils.py).
Integration tests docs
tests/integration/endpoints/README.md, tests/integration/endpoints/test_query_byok_integration.py, tests/integration/endpoints/test_streaming_query_byok_integration.py
Replaces test_query_v2_integration.py listing with test_query_byok_integration.py; adds BYOK and stream-related test entries and minor docstring text changes in two test modules.
Unit tests docs
tests/unit/app/README.md, tests/unit/app/endpoints/README.md, tests/unit/models/config/README.md, tests/unit/models/responses/README.md, tests/unit/utils/README.md
Updates middleware test description and adds README entries for unit tests covering MCP servers, Responses API, stream interrupt, RAG configuration/chunk/context, and utility tests.
New test README files
tests/e2e/mock_mcp_server/README.md, tests/e2e/proxy/README.md, tests/e2e/secrets/README.md
Adds new README files introducing mock MCP server, proxy test infrastructure, and E2E secrets/test fixtures directories.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'LCORE-1608: updated docs for src folders' is vague and uses a generic term ('updated docs') that doesn't specify what documentation was updated or convey meaningful information about the actual changes. Replace with a more specific title that describes the primary documentation updates, such as 'Add README documentation for endpoints, utils, and test modules' or similar.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (3)
tests/unit/models/config/README.md (1)

55-55: Consider expanding OKP on first mention for readability.

This line is clear for maintainers familiar with the term, but expanding OKP once can make the README easier for new contributors scanning folder docs.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/unit/models/config/README.md` at line 55, Update the README line that
currently says "Unit tests for RAG and OKP configuration models." to expand the
acronym on first mention—change it to "Unit tests for RAG and OKP (Open
Knowledge Project) configuration models." (or your project’s full form of OKP)
so new contributors see the full name while keeping the acronym for subsequent
mentions.
src/app/endpoints/README.md (1)

34-34: Optional wording polish for readability.

Line 34 reads a bit cleaner as “manage MCP servers dynamically.”

✏️ Proposed doc wording tweak
-Handler for REST API calls to dynamically manage MCP servers.
+Handler for REST API calls to manage MCP servers dynamically.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/app/endpoints/README.md` at line 34, Update the README sentence "Handler
for REST API calls to dynamically manage MCP servers." to the suggested wording
"Handler for REST API calls to manage MCP servers dynamically." to improve
readability; locate the line containing that sentence in README.md and replace
the phrase accordingly.
tests/integration/endpoints/README.md (1)

21-22: Minor inconsistency: Add "the" before endpoint names for consistency.

Lines 22 and 37 are missing the article "the" before the endpoint name, while all other endpoint entries include it (e.g., lines 7, 10, 13, 16, 19, 25, 31, 40, 43).

📝 Proposed fix for consistency
-Integration tests for /query endpoint BYOK inline and tool RAG functionality.
+Integration tests for the /query endpoint BYOK inline and tool RAG functionality.
-Integration tests for /streaming_query endpoint BYOK inline and tool RAG functionality.
+Integration tests for the /streaming_query endpoint BYOK inline and tool RAG functionality.

Also applies to: 36-37

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/integration/endpoints/README.md` around lines 21 - 22, Update the
README entries for the two affected test sections so they match the other
entries by adding the article "the" before the endpoint name; specifically edit
the line for test_query_byok_integration.py (and the nearby entry around lines
36-37) to read "Integration tests for the /query endpoint BYOK inline and tool
RAG functionality" (and similarly prefix "the" for the other /query reference)
so formatting is consistent with other entries.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@tests/e2e/features/steps/README.md`:
- Line 34: Typo fix: replace the phrase "place holder test steps" with the
correct single-word spelling "placeholder test steps" in the README entry so the
text reads "Implementation of placeholder test steps"; locate the exact
occurrence of "place holder" and update it to "placeholder" to ensure consistent
wording.

In `@tests/e2e/secrets/README.md`:
- Around line 1-2: Update the README in the tests/e2e/secrets directory to
replace the empty header with a concise inventory and guidance: list each file
present and a one-line purpose (e.g., test fixture, mock credential, cert),
describe how tests consume these files (which test helpers or env vars read
them), and explicitly state whether the files contain real sensitive data or are
safe for version control and what to do if real secrets are required (e.g., use
CI secrets or docs for generating fixtures). Also add a short example showing
how to load a fixture in tests (naming the helper or test fixture file) and any
setup/teardown steps needed.

---

Nitpick comments:
In `@src/app/endpoints/README.md`:
- Line 34: Update the README sentence "Handler for REST API calls to dynamically
manage MCP servers." to the suggested wording "Handler for REST API calls to
manage MCP servers dynamically." to improve readability; locate the line
containing that sentence in README.md and replace the phrase accordingly.

In `@tests/integration/endpoints/README.md`:
- Around line 21-22: Update the README entries for the two affected test
sections so they match the other entries by adding the article "the" before the
endpoint name; specifically edit the line for test_query_byok_integration.py
(and the nearby entry around lines 36-37) to read "Integration tests for the
/query endpoint BYOK inline and tool RAG functionality" (and similarly prefix
"the" for the other /query reference) so formatting is consistent with other
entries.

In `@tests/unit/models/config/README.md`:
- Line 55: Update the README line that currently says "Unit tests for RAG and
OKP configuration models." to expand the acronym on first mention—change it to
"Unit tests for RAG and OKP (Open Knowledge Project) configuration models." (or
your project’s full form of OKP) so new contributors see the full name while
keeping the acronym for subsequent mentions.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 07b55aa4-4e0c-455e-b865-39c6e0e93db6

📥 Commits

Reviewing files that changed from the base of the PR and between 1383f38 and fe32222.

📒 Files selected for processing (13)
  • src/app/endpoints/README.md
  • src/utils/README.md
  • tests/e2e/features/steps/README.md
  • tests/e2e/mock_mcp_server/README.md
  • tests/e2e/proxy/README.md
  • tests/e2e/secrets/README.md
  • tests/e2e/utils/README.md
  • tests/integration/endpoints/README.md
  • tests/unit/app/README.md
  • tests/unit/app/endpoints/README.md
  • tests/unit/models/config/README.md
  • tests/unit/models/responses/README.md
  • tests/unit/utils/README.md

Steps for /models endpoint.

## [place_holder.py](place_holder.py)
Implementation of place holder test steps.
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.

⚠️ Potential issue | 🟡 Minor

Fix wording typo: “place holder” → “placeholder”.

Line 34 should use the standard spelling for clarity and consistency.

📝 Proposed fix
-Implementation of place holder test steps.
+Implementation of placeholder test steps.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Implementation of place holder test steps.
Implementation of placeholder test steps.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/e2e/features/steps/README.md` at line 34, Typo fix: replace the phrase
"place holder test steps" with the correct single-word spelling "placeholder
test steps" in the README entry so the text reads "Implementation of placeholder
test steps"; locate the exact occurrence of "place holder" and update it to
"placeholder" to ensure consistent wording.

@tisnik tisnik merged commit 5aa1a4d into lightspeed-core:main Mar 29, 2026
24 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.

1 participant