Skip to content

Conversation

@tisnik
Copy link
Contributor

@tisnik tisnik commented Jul 21, 2025

Description

  • Updated devel documentation
  • Info about testing

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

Related Tickets & Documents

  • Related Issue #LCORE-304

Summary by CodeRabbit

  • Documentation
    • Fixed a typographical error in the contributing guidelines.
    • Updated the main README with detailed instructions for running the Llama Stack as a separate server, including configuration and verification steps.
    • Improved the docs directory README with a clearer title and introductory guidance.
    • Enhanced the testing documentation with a table of contents and more explicit instructions for running tests at various levels.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 21, 2025

Walkthrough

Documentation files were updated to improve clarity and usability. Typographical errors were corrected in CONTRIBUTING.md, with adjustments to the table of contents. README.md received expanded instructions for running the Llama Stack as a separate server. docs/README.md and docs/testing.md were enhanced with better navigation and detailed testing instructions.

Changes

File(s) Change Summary
CONTRIBUTING.md Fixed typo in "Prerequisites" and removed "Testing" section from the table of contents.
README.md Added detailed instructions for running Llama Stack as a separate server, including configuration and verification steps.
docs/README.md Updated heading and added introductory lines about documentation and navigation.
docs/testing.md Added table of contents, expanded "Running tests" section with examples for running all, group, or individual tests.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Docs
    participant LlamaStackServer

    User->>Docs: Read setup instructions (README.md)
    User->>Docs: Read test instructions (docs/testing.md)
    User->>LlamaStackServer: Start server using run.yaml and pyproject.toml
    User->>LlamaStackServer: Verify server with curl (OpenAPI JSON)
    User->>Docs: Reference testing commands
    User->>LlamaStackServer: Run tests via Makefile or pytest
Loading

Estimated code review effort

2 (30–90 minutes)

Possibly related PRs

Poem

In the warren of docs, we hop and we fix,
Typos and headings, all neat in the mix.
Instructions for servers, and tests you can run,
With YAML and Makefiles, the work’s never done.
A rabbit’s delight—clear docs for everyone! 🐇📚


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
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: 1

🧹 Nitpick comments (6)
CONTRIBUTING.md (1)

6-10: Fix unordered-list indentation to satisfy markdownlint (MD007)
Bullets nested under “Prerequisites” start with four leading spaces, but the linter expects two. Align the indentation to keep automated docs checks green.

-* [Prerequisites](#prerequisites)
-    * [Tooling installation](#tooling-installation)
+* [Prerequisites](#prerequisites)
+  * [Tooling installation](#tooling-installation)
docs/testing.md (2)

31-37: Add language hint to fenced code block (MD040)
Specify the language so GitHub & docs renderers get syntax highlighting and the linter is satisfied.

-```
+```bash
 make test

---

`53-61`: **Add language hints to pytest invocation examples**  

```diff
-```
+```bash
 uv run python -m pytest -vv tests/unit/utils/

...
- +bash
uv run python -m pytest -vv tests/unit/utils/ --cov=src/utils/ --cov-report term-missing

README.md (2)

116-142: Over-restrictive Python version pin in example pyproject.toml
The sample requires requires-python = "==3.12.*", but the project-wide docs state that 3.13 is also supported. Consider a looser constraint to avoid confusing readers:

-requires-python = "==3.12.*"
+requires-python = ">=3.12,<3.14"

152-162: Missing language specifiers in command-line examples (MD040)

Add bash so the blocks are highlighted and markdownlint passes.

-```
+```bash
 export OPENAI_API_KEY="sk-{YOUR-KEY}"

 uv run llama stack run run.yaml

...
- +bash
curl -X 'GET' localhost:8321/openapi.json | jq .

docs/README.md (1)

3-4: Relative link may break on GitHub Pages
../README.md resolves correctly in the repo view, but on Pages the root HTML is usually index.html, not the markdown README. Consider linking to the deployed root or to /lightspeed-stack/ to avoid 404s.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9173a28 and e00b0af.

📒 Files selected for processing (4)
  • CONTRIBUTING.md (2 hunks)
  • README.md (3 hunks)
  • docs/README.md (1 hunks)
  • docs/testing.md (4 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docs/testing.md

6-6: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


7-7: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


8-8: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


8-8: Link fragments should be valid

(MD051, link-fragments)


10-10: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


14-14: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


15-15: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


16-16: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


17-17: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


35-35: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


53-53: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


59-59: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

README.md

152-152: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


160-160: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

@tisnik tisnik force-pushed the lcore-304-devel-documentation branch from e00b0af to daadb5c Compare July 21, 2025 06:35
Copy link
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: 0

🧹 Nitpick comments (3)
docs/testing.md (3)

5-17: Fix list indentation to satisfy MD007 & keep TOC readable

Current bullets use 4-/8-space indents; markdownlint (and GitHub renderer) expect +2 spaces per level.

-* [Running tests](#running-tests)
-    * [Run all tests](#run-all-tests)
-    * [Select one group of tests](#select-one-group-of-tests)
-    * [Select individual test or group of tests to be run](#select-individual-test-or-group-of-tests-to-be-run)
-* [Unit tests](#unit-tests)
-    * [Unit tests structure](#unit-tests-structure)
-* [Integration tests](#integration-tests)
-* [End to end tests](#end-to-end-tests)
-* [Tips and hints](#tips-and-hints)
-    * [Developing unit tests](#developing-unit-tests)
-        * [Patching](#patching)
-        * [Verifying that some exception is thrown](#verifying-that-some-exception-is-thrown)
-        * [Checking what was printed and logged to stdout or stderr by the tested code](#checking-what-was-printed-and-logged-to-stdout-or-stderr-by-the-tested-code)
+* [Running tests](#running-tests)
+  * [Run all tests](#run-all-tests)
+  * [Select one group of tests](#select-one-group-of-tests)
+  * [Select individual test or group of tests to be run](#select-individual-test-or-group-of-tests-to-be-run)
+* [Unit tests](#unit-tests)
+  * [Unit tests structure](#unit-tests-structure)
+* [Integration tests](#integration-tests)
+* [End to end tests](#end-to-end-tests)
+* [Tips and hints](#tips-and-hints)
+  * [Developing unit tests](#developing-unit-tests)
+    * [Patching](#patching)
+    * [Verifying that some exception is thrown](#verifying-that-some-exception-is-thrown)
+    * [Checking what was printed and logged to stdout or stderr by the tested code](#checking-what-was-printed-and-logged-to-stdout-or-stderr-by-the-tested-code)

35-37: Add code-block language for lint & syntax highlighting

-```
+```bash
 make test
-```
+```

Applies MD040 and improves readability.


53-61: Tag the remaining command snippets with bash

Same MD040 issue for both examples:

-```
+```bash
 uv run python -m pytest -vv tests/unit/utils/
-```
+```

-```
+```bash
 uv run python -m pytest -vv tests/unit/utils/ --cov=src/utils/ --cov-report term-missing
-```
+```
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e00b0af and daadb5c.

📒 Files selected for processing (1)
  • docs/testing.md (4 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docs/testing.md

6-6: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


7-7: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


8-8: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


10-10: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


14-14: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


15-15: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


16-16: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


17-17: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


35-35: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


53-53: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


59-59: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build-pr

@tisnik tisnik force-pushed the lcore-304-devel-documentation branch from daadb5c to b9674b6 Compare July 21, 2025 06:40
Copy link
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 (1)
docs/testing.md (1)

14-17: Third-level bullets use 8-space indent; expected 4

Lines 14-17 are indented twice as much as the markdownlint default (MD007). Reduce to four spaces per bullet (two spaces per nesting level) or disable the rule if you have strong styling reasons.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between daadb5c and b9674b6.

📒 Files selected for processing (1)
  • docs/testing.md (3 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docs/testing.md

6-6: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


7-7: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


8-8: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


10-10: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


14-14: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


15-15: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


16-16: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)


17-17: Unordered list indentation
Expected: 4; Actual: 8

(MD007, ul-indent)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build-pr
🔇 Additional comments (1)
docs/testing.md (1)

51-61: LGTM – new subsection and examples are clear

The heading, anchor, and pytest/coverage examples are accurate and improve developer guidance.

Comment on lines +5 to +8
* [Running tests](#running-tests)
* [Run all tests](#run-all-tests)
* [Select one group of tests](#select-one-group-of-tests)
* [Select individual test or group of tests to be run](#select-individual-test-or-group-of-tests-to-be-run)
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Fix MD007 list-indent violations in the TOC

The second-level bullets are indented with four spaces instead of two, triggering markdownlint warnings and producing slightly off alignment in some renderers.

-* [Running tests](#running-tests)
-    * [Run all tests](#run-all-tests)
-    * [Select one group of tests](#select-one-group-of-tests)
-    * [Select individual test or group of tests to be run](#select-individual-test-or-group-of-tests-to-be-run)
+* [Running tests](#running-tests)
+  * [Run all tests](#run-all-tests)
+  * [Select one group of tests](#select-one-group-of-tests)
+  * [Select individual test or group of tests to be run](#select-individual-test-or-group-of-tests-to-be-run)
📝 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
* [Running tests](#running-tests)
* [Run all tests](#run-all-tests)
* [Select one group of tests](#select-one-group-of-tests)
* [Select individual test or group of tests to be run](#select-individual-test-or-group-of-tests-to-be-run)
* [Running tests](#running-tests)
* [Run all tests](#run-all-tests)
* [Select one group of tests](#select-one-group-of-tests)
* [Select individual test or group of tests to be run](#select-individual-test-or-group-of-tests-to-be-run)
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

6-6: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


7-7: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


8-8: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)

🤖 Prompt for AI Agents
In docs/testing.md around lines 5 to 8, the second-level bullet points in the
table of contents are indented with four spaces instead of the recommended two
spaces, causing markdownlint MD007 list-indent violations. Fix this by reducing
the indentation of these second-level bullets from four spaces to two spaces to
ensure proper alignment and compliance with markdownlint rules.

Comment on lines +43 to 46
```bash
make test-unit Run the unit tests
make test-integration Run integration tests tests
make test-e2e Run end to end tests
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Duplicate word “tests” in integration command description

make test-integration Run integration tests tests repeats the word “tests”.

-make test-integration          Run integration tests tests
+make test-integration          Run integration tests
📝 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
```bash
make test-unit Run the unit tests
make test-integration Run integration tests tests
make test-e2e Run end to end tests
🤖 Prompt for AI Agents
In docs/testing.md around lines 43 to 46, the description for the integration
test command contains a duplicate word "tests". Remove the extra "tests" so the
line reads: "make test-integration          Run integration tests".

@tisnik tisnik merged commit 51756fc into lightspeed-core:main Jul 21, 2025
17 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Jul 22, 2025
15 tasks
@coderabbitai coderabbitai bot mentioned this pull request Sep 12, 2025
15 tasks
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