Skip to content

Comments

Update documentation and configuration to reflect the transition from…#203

Merged
AnkushMalaker merged 3 commits intodevfrom
further-rename
Dec 20, 2025
Merged

Update documentation and configuration to reflect the transition from…#203
AnkushMalaker merged 3 commits intodevfrom
further-rename

Conversation

@AnkushMalaker
Copy link
Collaborator

@AnkushMalaker AnkushMalaker commented Dec 18, 2025

… 'friend-backend' to 'chronicle-backend' across various files, including setup instructions, Docker configurations, and service logs.

Summary by CodeRabbit

  • Documentation

    • Updated setup, deployment, troubleshooting, and developer docs to use the new backend service name for consistency.
  • Chores

    • Aligned configuration, orchestration, and test scripts to the updated backend service name so tooling, tests, and runtime commands are consistent across the project.

✏️ Tip: You can customize this high-level summary in your review settings.

… 'friend-backend' to 'chronicle-backend' across various files, including setup instructions, Docker configurations, and service logs.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 18, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Systematically renames backend service references from "friend-backend" to "chronicle-backend" across CI/CD workflows, Docker configurations, nginx routing, test infrastructure, and documentation. No functional logic modifications or control-flow changes.

Changes

Cohort / File(s) Summary
CI/CD & Build Configuration
\.github/workflows/robot-tests.yml, skaffold.yaml
Updated docker-compose log targets and test image references from friend-backend-test to chronicle-backend-test.
Docker & Network Configuration
backends/simple/docker-compose.yml, backends/advanced/nginx.conf.template
Renamed backend service friend-backendchronicle-backend; updated nginx upstream name and all proxy_pass targets from friend_backendchronicle_backend.
Documentation & Guides
CLAUDE.md, Docs/getting-started.md, Docs/init-system.md, backends/advanced/Docs/HTTPS_SETUP.md, backends/advanced/Docs/README.md, backends/advanced/Docs/architecture.md, backends/advanced/Docs/auth.md, backends/advanced/Docs/quickstart.md, tests/TESTING_USER_GUIDE.md, tests/setup/README.md
Replaced occurrences of friend-backend with chronicle-backend in logs, commands, diagrams, and troubleshooting examples.
Backend READMEs
backends/advanced/webui/README.md, backends/simple/README.md
Updated startup and log commands to reference chronicle-backend instead of friend-backend.
Tests & Scripts
backends/advanced/tests/test_integration.py, tests/endpoints/rq_queue_tests.robot, tests/run-robot-tests.sh, tests/run-robot-tests.sh
Updated health checks, restart routines, build/start commands, and log collection to target chronicle-backend-test and switched many docker-compose invocations to docker-compose-test.yml.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes

  • Areas to check:
    • Confirm every friend-backend / friend-backend-test occurrence was consistently renamed.
    • Verify nginx upstream name change (underscore) is applied consistently and matches service names in compose files.
    • Ensure docker-compose depends_on and any commands (ngrok, exec) reference the new service name.

Possibly related PRs

  • chronicler-ai/chronicle#187 — related test/backend service renaming and docker-compose/test adjustments (friend-backend-test → chronicle-backend-test).
  • chronicler-ai/chronicle#199 — similar service renames in advanced backend configs (friend-backend → chronicle-backend and related network renames).
  • chronicler-ai/chronicle#201 — updates backend service references in CI/build and compose files matching this rename.

Suggested reviewers

  • 0xrushi

Poem

🐇
I hopped through configs, quick and steady,
Changed a name — now everything’s ready,
friend → chronicle, a tidy rename,
Logs and tests follow, hopping in frame,
A little rabbit cheers the deploy game.

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is incomplete and truncated (ends with 'from…'), making it vague about what transition is being described. Complete the title to clearly state the transition, e.g., 'Rename backend service from friend-backend to chronicle-backend across documentation and configuration.'
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

📜 Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f4907a9 and e9363b9.

📒 Files selected for processing (1)
  • tests/run-robot-tests.sh (7 hunks)

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.

@AnkushMalaker
Copy link
Collaborator Author

@coderabbitai review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 18, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
CLAUDE.md (1)

59-183: Test environment configuration has a critical mismatch requiring correction.

Port numbers and credentials align with documentation as verified:

  • Backend (8001), WebUI (3001), Qdrant (6337/6338), MongoDB (27018), and Redis (6380) ports correctly prevent conflicts with production ports (8000, 3000, 6333, 6334, 27017, 6379).
  • Test credentials (AUTH_SECRET_KEY, ADMIN_EMAIL, ADMIN_PASSWORD) match documented values exactly.

However, DISABLE_SPEAKER_RECOGNITION is set to false in docker-compose-test.yml, contradicting the documentation which states it should be true to prevent segment duplication. Update the test configuration to match the documented intent.

🧹 Nitpick comments (1)
backends/advanced/Caddyfile.template (1)

1-1: Consider updating the file header comment.

Line 1 references "Friend-Lite" which is inconsistent with the repository-wide rename to Chronicle. Consider updating to "Chronicle" for consistency.

🔎 Suggested update:
-# Caddy reverse proxy configuration for Friend-Lite
+# Caddy reverse proxy configuration for Chronicle
📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 765373c and d2795cb.

📒 Files selected for processing (22)
  • .github/workflows/robot-tests.yml (2 hunks)
  • CLAUDE.md (1 hunks)
  • Docs/getting-started.md (1 hunks)
  • Docs/init-system.md (1 hunks)
  • backends/advanced/Caddyfile.template (3 hunks)
  • backends/advanced/Docs/HTTPS_SETUP.md (4 hunks)
  • backends/advanced/Docs/README.md (1 hunks)
  • backends/advanced/Docs/architecture.md (2 hunks)
  • backends/advanced/Docs/auth.md (2 hunks)
  • backends/advanced/Docs/quickstart.md (1 hunks)
  • backends/advanced/docker-compose.yml (1 hunks)
  • backends/advanced/nginx.conf.template (10 hunks)
  • backends/advanced/tests/test_integration.py (1 hunks)
  • backends/advanced/webui/README.md (3 hunks)
  • backends/simple/README.md (1 hunks)
  • backends/simple/docker-compose.yml (2 hunks)
  • extras/speaker-recognition/docker-compose.yml (1 hunks)
  • skaffold.yaml (2 hunks)
  • tests/TESTING_USER_GUIDE.md (1 hunks)
  • tests/endpoints/rq_queue_tests.robot (1 hunks)
  • tests/run-robot-tests.sh (4 hunks)
  • tests/setup/README.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
**/*.robot

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.robot: When writing or modifying Robot Framework tests, follow the testing guidelines in @tests/TESTING_GUIDELINES.md and approved tags in @tests/tags.md. Only use the 11 approved tags, tab-separated.
Before writing any Robot Framework test code, scan relevant resource files for existing keywords. NEVER write code that duplicates existing keywords.
Follow the Arrange-Act-Assert pattern in Robot Framework tests with inline verifications (not abstracted to keywords)
Only create Robot Framework keywords for reusable setup/action operations AFTER confirming no existing keyword exists. Keep verifications inline in tests, not in resource keywords.
Use tab-separated tags in Robot Framework tests. DO NOT use space-separated tags. Only use the 11 approved tags from @tests/tags.md.
Use descriptive Robot Framework test and keyword names that explain business purpose, not technical implementation

Files:

  • tests/endpoints/rq_queue_tests.robot
**/docker-compose*.{yml,yaml}

📄 CodeRabbit inference engine (CLAUDE.md)

Check if src/ is volume mounted. If not, run docker compose build so that code changes are reflected. Do not simply run docker compose restart as it will not rebuild the image.

Files:

  • backends/simple/docker-compose.yml
  • backends/advanced/docker-compose.yml
  • extras/speaker-recognition/docker-compose.yml
**/*.py

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.py: Use Black formatter with 100-character line length for Python code
Use isort for import sorting in Python code
ALL imports must be at the top of the file after the docstring. NEVER import modules in the middle of functions or files. Use lazy imports sparingly and only when absolutely necessary for circular import issues.
Group imports in order: standard library, third-party, local imports
Always raise errors, never silently ignore. Use explicit error handling with proper exceptions rather than silent failures.
Do not add defensive hasattr() checks. Research and understand input/response or class structure instead.
Use uv run python or uv run python3 instead of direct python or python3 commands for Python execution

Files:

  • backends/advanced/tests/test_integration.py
🧠 Learnings (2)
📚 Learning: 2025-12-16T14:24:28.301Z
Learnt from: CR
Repo: chronicler-ai/chronicle PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-12-16T14:24:28.301Z
Learning: Applies to **/{websocket,ws,audio,streaming}*.py : Use Wyoming protocol (JSONL + binary) for WebSocket communication with structured audio sessions

Applied to files:

  • backends/advanced/nginx.conf.template
📚 Learning: 2025-12-08T23:52:34.959Z
Learnt from: AnkushMalaker
Repo: chronicler-ai/chronicle PR: 178
File: backends/advanced/src/advanced_omi_backend/services/memory/providers/mycelia.py:218-223
Timestamp: 2025-12-08T23:52:34.959Z
Learning: In Python code (chronicle project), prefer logging.exception() inside except blocks to automatically log the full stack trace. When re-raising exceptions, always chain with 'raise ... from e' to preserve the original context; use 'raise ... from None' only if you explicitly want to suppress the context. This improves debuggability across Python files.

Applied to files:

  • backends/advanced/tests/test_integration.py
🧬 Code graph analysis (1)
backends/advanced/tests/test_integration.py (4)
backends/advanced/src/advanced_omi_backend/routers/modules/health_routes.py (1)
  • health_check (84-479)
backends/advanced/src/advanced_omi_backend/llm_client.py (2)
  • health_check (33-35)
  • health_check (110-136)
backends/advanced/src/advanced_omi_backend/speaker_recognition_client.py (1)
  • health_check (589-626)
extras/asr-services/parakeet-offline.py (1)
  • health_check (439-441)
🪛 Ruff (0.14.8)
backends/advanced/tests/test_integration.py

460-460: Starting a process with a partial executable path

(S607)

⏰ 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: robot-tests
🔇 Additional comments (29)
backends/advanced/webui/README.md (1)

60-60: Service rename is complete and verified.

The chronicle-backend service is properly defined in the docker-compose.yml configuration, and all documentation references are consistent across the README (lines 60, 73, and 82). No remaining friend-backend references exist in the documentation.

backends/advanced/Docs/quickstart.md (1)

397-397: Documentation update is correct and verified.

The troubleshooting command correctly references chronicle-backend, which is the actual service name defined in backends/advanced/docker-compose.yml. The change is accurate and will function as expected end-to-end.

skaffold.yaml (2)

198-198: Deploy image reference correctly updated.

The deploy images list has been updated to reference chronicle-backend-test, which is consistent with the build artifact name change at line 187.


187-187: Image rename to chronicle-backend-test is complete and consistent.

The rename from friend-backend-test to chronicle-backend-test is correctly reflected in both the build artifacts (line 187) and deploy images (line 198). No remaining references to the old name exist in the codebase.

CLAUDE.md (2)

16-58: All referenced setup documentation files exist and are correctly linked.

Verification confirms that all files referenced in the Initial Setup & Configuration section (quickstart.md, Docs/init-system.md, Docs/getting-started.md, backends/advanced/SETUP_SCRIPTS.md, backends/advanced/Docs/quickstart.md, wizard.py, backends/advanced/init.py, extras/speaker-recognition/init.py) are present in the repository. The section provides clear, well-structured guidance with no broken documentation links.


452-470: Verify Robot Framework testing documentation references.

The Robot Framework testing section references documentation files and resource keywords. Verification confirms:

  • tests/TESTING_GUIDELINES.md exists and contains testing patterns
  • tests/tags.md exists and lists exactly 11 approved tags
  • ✓ Resource keyword files exist in tests/resources/ (e.g., queue_keywords.robot, conversation_keywords.robot, audio_keywords.robot, chat_keywords.robot, memory_keywords.robot)

The reference to websocket_keywords.robot is inaccurate—no keyword file with this name exists in the repository. Use the existing resource files in tests/resources/ when checking for reusable keywords.

Likely an incorrect or invalid review comment.

Docs/getting-started.md (1)

396-402: LGTM! Documentation updated correctly.

The troubleshooting documentation now references the correct service name chronicle-backend, which matches the updated docker-compose configuration.

backends/simple/README.md (1)

115-123: LGTM! Documentation updated correctly.

The monitoring documentation now references the correct service name chronicle-backend, consistent with the updated docker-compose configuration.

backends/advanced/Docs/architecture.md (2)

585-595: LGTM! Architecture diagram updated correctly.

The mermaid diagram now references chronicle-backend, consistent with the service name changes throughout the repository.


619-625: LGTM! Section heading updated correctly.

The container specification section now references chronicle-backend, maintaining consistency with the docker-compose configuration.

tests/setup/README.md (1)

210-224: LGTM! Test documentation updated correctly.

The container inspection command now references the correct test container name advanced-chronicle-backend-test-1, which aligns with the updated service naming in the test docker-compose configuration.

tests/endpoints/rq_queue_tests.robot (1)

26-42: LGTM! Test keyword updated correctly.

The Restart Backend Service keyword now references the correct test service name chronicle-backend-test in both the stop and start commands, ensuring consistency with the test environment configuration.

.github/workflows/robot-tests.yml (2)

134-154: LGTM! CI/CD readiness check updated correctly.

The backend readiness waiting loop now references the correct test service name chronicle-backend-test in the logging output, ensuring proper visibility during CI/CD runs.


217-226: LGTM! CI/CD failure logging updated correctly.

The service log display step now references the correct test service name chronicle-backend-test, ensuring accurate log collection when tests fail.

extras/speaker-recognition/docker-compose.yml (1)

109-112: LGTM! Network rename is consistent.

The network name change from friend-network to chronicle-network aligns with the broader renaming across the repository. Since this is an external network, ensure that all services referencing this network are updated together (which appears to be covered by this PR).

After merging, recreate the containers to apply the network name change:

#!/bin/bash
# Navigate to the directory
cd extras/speaker-recognition

# Stop and remove existing containers
docker compose down

# Start with new network name
docker compose up -d

# Verify network creation
docker network ls | grep chronicle-network
backends/advanced/docker-compose.yml (1)

226-230: LGTM! Network configuration updated correctly.

The default network name change from friend-network to chronicle-network is consistent with the repository-wide renaming.

After merging, recreate the containers to apply the network name change:

#!/bin/bash
# Navigate to the directory
cd backends/advanced

# Stop and remove existing containers with old network
docker compose down

# Start with new network configuration
docker compose up --build -d

# Verify the new network is created
docker network ls | grep chronicle-network

As per coding guidelines, since src/ is volume-mounted, code changes are reflected without rebuild, but network name changes require container recreation.

backends/advanced/Docs/auth.md (1)

263-263: LGTM! Documentation updated consistently.

The log commands correctly reference the renamed chronicle-backend service.

Also applies to: 275-275

tests/TESTING_USER_GUIDE.md (1)

725-725: LGTM! Test documentation updated correctly.

The container name reference aligns with the renamed test service.

Docs/init-system.md (1)

213-213: LGTM! Service reference updated correctly.

The log command now correctly targets the renamed backend service.

backends/advanced/nginx.conf.template (1)

46-47: LGTM! Comprehensive nginx configuration update.

All upstream and proxy_pass references consistently updated from friend_backend to chronicle_backend across all routes (API, auth, WebSocket endpoints, health checks). The configuration maintains correct proxy behavior with the renamed service.

Also applies to: 73-73, 83-83, 93-93, 103-103, 120-120, 138-138, 156-156, 165-165, 174-174

backends/advanced/tests/test_integration.py (1)

460-460: LGTM! Test health check updated correctly.

The container status check now correctly targets the renamed chronicle-backend-test service, maintaining proper health validation during test startup.

backends/advanced/Docs/HTTPS_SETUP.md (1)

92-92: LGTM! HTTPS documentation updated comprehensively.

All service references, restart commands, and port mappings correctly reflect the renamed chronicle-backend service throughout the HTTPS setup guide.

Also applies to: 102-102, 172-172, 195-195

backends/advanced/Caddyfile.template (1)

22-22: LGTM! Caddy configuration updated comprehensively.

All reverse proxy targets consistently updated from friend-backend:8000 to chronicle-backend:8000 across all routes and production examples.

Also applies to: 32-32, 37-37, 42-42, 46-46, 51-51, 56-56, 71-71, 76-76, 81-81, 86-86, 90-90, 95-95, 100-100

backends/simple/docker-compose.yml (1)

2-2: LGTM! Docker Compose service renamed consistently.

Service name, internal hostname reference in the ngrok command, and dependency relationship all correctly updated to chronicle-backend.

Also applies to: 17-17, 19-19

backends/advanced/Docs/README.md (1)

192-192: LGTM! Documentation updated correctly.

The docker compose logs command reference has been updated to reflect the new service name.

tests/run-robot-tests.sh (4)

115-115: LGTM! Container cleanup updated correctly.

The container name reference has been updated to match the new service naming convention.


119-119: Nice addition: quieter pull output.

The --quiet-pull flag reduces log verbosity during image pulls, which is helpful for cleaner CI output.


167-168: LGTM! Error logging updated correctly.

The backend service logs reference has been updated to match the new service name.


239-239: LGTM! Test failure logging updated correctly.

The backend service logs reference has been updated to match the new service name for post-test troubleshooting.

@github-actions
Copy link

⚠️ Robot Framework Test Results

Status: ❌ Some tests failed

Metric Count
✅ Passed 90
❌ Failed 1
📊 Total 91

📊 View Reports

GitHub Pages (Live Reports):

Download Artifacts:


View full workflow run

@AnkushMalaker AnkushMalaker merged commit 2e79b70 into dev Dec 20, 2025
0 of 2 checks passed
@AnkushMalaker AnkushMalaker deleted the further-rename branch December 20, 2025 01:11
@github-actions
Copy link

⚠️ Robot Framework Test Results

Status: ❌ Some tests failed

Metric Count
✅ Passed 90
❌ Failed 1
📊 Total 91

📊 View Reports

GitHub Pages (Live Reports):

Download Artifacts:


View full workflow run

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