LCORE-2395: remove read-only mount for llama-stack config#1815
Conversation
The enrichment script writes the enriched config back to run.yaml, so the volume mount must be writable. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📜 Recent review details⏰ 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). (7)
🧰 Additional context used🪛 checkmake (0.3.2)Makefile[warning] 21-21: Required target "all" is missing from the Makefile. (minphony) [warning] 21-21: Required target "clean" is missing from the Makefile. (minphony) [warning] 21-21: Required target "test" is missing from the Makefile. (minphony) 🔇 Additional comments (5)
WalkthroughMakefile: adds a ChangesRun targets and container mount
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
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. Comment |
…tration Restores the pre-LCORE-1872 behaviour as a separate target: run-local starts only the lightspeed-stack service, assuming llama-stack is already running externally (e.g. via docker compose or a separate process). Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
| --health-retries 3 \ | ||
| --health-start-period 15s \ | ||
| -v $(PWD)/$(LLAMA_STACK_CONFIG):/opt/app-root/run.yaml:ro,z \ | ||
| -v $(PWD)/$(LLAMA_STACK_CONFIG):/opt/app-root/run.yaml:z \ |
| run-local: ## Run the service locally, assuming llama-stack is already running externally | ||
| uv run src/lightspeed_stack.py -c $(CONFIG) | ||
|
|
There was a problem hiding this comment.
I'm a bit hesitant about putting "llama-stack is running externally" assumptions back in explicitly. The purpose of make run now is "Run lightspeed-stack service, without exposing implementation details to the user".
Having said that, I understand the need to be able to run the stack without needing to build llama-stack container image every time. I realize that can be a frustratingly time consuming activity when you're trying to iterate quickly.
What do you think about this following re-shuffle:
run-local->run-stack(rename)runusesrun-stack.
ie:
run-stack: ## Run lightspeed-stack directly, without building dependent service/s
uv run src/ligthspeed_stack.py -c $(config)
run: ## Run the service locally with dependent services
start-llama-stack-container
@echo "Starting Lightspeed Core Stack..."
run-stack
?
There was a problem hiding this comment.
This way, someone can run once, or start-llama-stack-container once + run-stack in a loop while iterating - but the comments don't bubble up llama-stack, and both run and run-stack will be backward compatible in the long run.
There was a problem hiding this comment.
Yeah exactly, can be frustrating to re-build the container. SGTM, will update the PR thanks!
- run-stack: runs lightspeed-stack directly, no dependent services - run: starts llama-stack container then delegates to run-stack Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Description
Two Makefile fixes for
make run:Remove
rofromrun.yamlmount — the enrichment script writes the enriched config back torun.yamlat startup, so the volume mount must be writable. Theroflag was causing enrichment to fail with a read-only filesystem error.Add
make run-localtarget — restores the pre-LCORE-1872 behaviour as a dedicated target: starts only the lightspeed-stack service, assuming llama-stack is already running externally (e.g. viadocker composeor a separate process). Useful for local development iteration without rebuilding the container image.Type of change
Tools used to create PR
Related Tickets & Documents
Checklist before requesting a review
Testing
make run— verify enrichment completes without read-only filesystem errors and llama-stack starts correctly.make run-local— verify lightspeed-stack starts without attempting to build/start any container.🤖 Generated with Claude Code
Summary by CodeRabbit