Skip to content

Feat/v2 config refactor#244

Merged
locnguyen1986 merged 20 commits intomainfrom
feat/v2-config-refactor
Nov 16, 2025
Merged

Feat/v2 config refactor#244
locnguyen1986 merged 20 commits intomainfrom
feat/v2-config-refactor

Conversation

@locnguyen1986
Copy link
Collaborator

@locnguyen1986 locnguyen1986 commented Nov 16, 2025

  • Configuration System: Created new centralized configuration documentation in docs/configuration/ with comprehensive guides for precedence, environment variable mapping, Docker Compose integration, and Kubernetes Helm values generation
  • Documentation Consolidation: Merged multiple testing documents into single comprehensive guides, moved CLI documentation to main docs directory, and updated IDE integration guides to reference current tooling
  • Command Reference Updates: Replaced deprecated commands with current jan-cli commands and make targets throughout all documentation
  • Convention Guides: Added comprehensive convention documents covering architecture patterns, design patterns, workflow, and quick reference conventions for developers

Copilot AI review requested due to automatic review settings November 16, 2025 13:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the configuration system and restructures documentation for better maintainability and clarity. The changes include consolidating testing guides, moving CLI documentation to a more prominent location, updating diagram syntax to plain ASCII (from Unicode box characters), and aligning development workflow documentation with the current Makefile targets and jan-cli commands.

Key Changes

  • Configuration System: Created new centralized configuration documentation in docs/configuration/ with comprehensive guides for precedence, environment variable mapping, Docker Compose integration, and Kubernetes Helm values generation
  • Documentation Consolidation: Merged multiple testing documents into single comprehensive guides, moved CLI documentation to main docs directory, and updated IDE integration guides to reference current tooling
  • Command Reference Updates: Replaced deprecated commands with current jan-cli commands and make targets throughout all documentation
  • Convention Guides: Added comprehensive convention documents covering architecture patterns, design patterns, workflow, and quick reference conventions for developers

Reviewed Changes

Copilot reviewed 83 out of 172 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
docs/guides/services-template.md Updated scaffold command from PowerShell script to jan-cli dev scaffold
docs/guides/monitoring.md Changed ASCII art box diagrams from Unicode to plain ASCII, updated make monitor-down-v to make monitor-clean
docs/guides/mcp-testing.md Major refactor to reflect Kong integration, replaced direct service URLs with Kong-proxied paths, updated health check procedures
docs/guides/kong-plugins.md Changed tree diagram from Unicode to ASCII format
docs/guides/jan-cli.md New comprehensive CLI guide covering installation, commands, configuration management, service operations, development tools
docs/guides/ide/vscode.md Updated task/launch references from hybrid-mode commands to dev-full commands, replaced emoji with text labels
docs/guides/ide/tasks.json Simplified VS Code tasks to use Makefile targets instead of raw Docker commands
docs/guides/ide/launch.json Updated preLaunchTask from "Start All Services" to "Start Dev-Full Stack"
docs/guides/ide/README.md Updated quick setup to create .vscode directory and copy files properly
docs/guides/hybrid-mode.md Complete rewrite focusing on dev-full workflow with jan-cli dev run commands
docs/guides/documentation-cleanup.md New document summarizing documentation consolidation effort
docs/guides/development.md Streamlined to focus on current workflow, removed outdated hybrid-mode references, updated to reflect dev-full mode
docs/guides/dev-full-mode.md New focused guide on dev-full hybrid debugging workflow
docs/guides/deployment.md Updated Docker Compose commands to reflect new profile-based targets
docs/guides/authentication.md Changed arrow symbols from Unicode to ASCII
docs/guides/README.md Updated common tasks to reflect dev-full and jan-cli workflows
docs/getting-started/README.md Added make quickstart wizard documentation, updated service table, revised troubleshooting
docs/conventions/workflow.md New workflow conventions document for daily development practices
docs/conventions/design-patterns.md New comprehensive code patterns guide (moved from conventions-patterns.md)
docs/conventions/conventions.md New quick reference conventions guide
docs/conventions/conventions-*.md Removed old convention files (consolidated into new structure)
docs/conventions/architecture-patterns.md New architecture and structure conventions (moved from conventions-architecture.md)
docs/configuration/service-migration.md New service migration strategy document
docs/configuration/precedence.md New configuration precedence documentation
docs/configuration/kubernetes.md New Kubernetes Helm values generation guide
docs/configuration/env-var-mapping.md New environment variable mapping reference
docs/configuration/docker-compose.md New Docker Compose generation documentation
docs/configuration/README.md New configuration system overview and user guide
docs/architecture/test-flows.md Updated diagram syntax from Unicode to ASCII, added test-all.postman.json reference
docs/architecture/data-flow.md Minor update about streaming support
docs/api/mcp-tools/integration.md Removed outdated mcp-go integration notes
config/schema/monitoring.schema.json Generated monitoring schema JSON

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


### Stop Monitoring Stack
```bash
# Stop but keep data
make monitor-down

# Stop and remove all data volumes (fresh start)
make monitor-down-v
make monitor-clean
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

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

The command reference changed from make monitor-down-v to make monitor-clean. Ensure that the Makefile contains this target and that it performs the expected cleanup (removing volumes).

Copilot uses AI. Check for mistakes.
make newman-mcp
make health-check # full stack health summary
curl http://localhost:8091/healthz
curl http://localhost:3015/healthz || true # returns 404 because the vector store uses custom routes
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

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

The comment explains why the health check returns 404. Consider documenting the actual health check endpoint for the vector store if one exists, or note that health checks should be performed via a different method.

Suggested change
curl http://localhost:3015/healthz || true # returns 404 because the vector store uses custom routes
curl http://localhost:3015/healthz || true # returns 404: the vector store does not expose a /healthz endpoint. To check if the vector store is running, verify the service is up via Docker or check its logs. (No HTTP health check endpoint is available.)

Copilot uses AI. Check for mistakes.

**Disadvantages:**
- Must be run from project root
- Requires file extension (.sh or.ps1)
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

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

Missing space between 'or' and '.ps1'. Should be 'or .ps1'.

Suggested change
- Requires file extension (.sh or.ps1)
- Requires file extension (.sh or .ps1)

Copilot uses AI. Check for mistakes.
jan-cli config export --format env

# Export as Docker env file
jan-cli config export --format docker-env --output.env
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

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

Missing space between '--output' and '.env'. Should be '--output .env'.

Suggested change
jan-cli config export --format docker-env --output.env
jan-cli config export --format docker-env --output .env

Copilot uses AI. Check for mistakes.
### Prerequisites
- **Docker Desktop 24+** with Docker Compose V2
- **GNU Make** (built in on macOS/Linux, install via Chocolatey/Brew on Windows)
- **Go 1.21+** � only required when editing Go code or using `jan-cli`
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

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

Invalid character '�' appears before 'only'. Should be a dash or appropriate separator.

Suggested change
- **Go 1.21+** only required when editing Go code or using `jan-cli`
- **Go 1.21+** only required when editing Go code or using `jan-cli`

Copilot uses AI. Check for mistakes.
export POSTGRES_PORT=5432

# Run service
go run./cmd/server
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

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

Missing space between 'run' and './cmd/server'. Should be 'go run ./cmd/server'.

Suggested change
go run./cmd/server
go run ./cmd/server

Copilot uses AI. Check for mistakes.
- Improved drift_test.go to properly detect actual changes vs whitespace
- Added detailed diff output when configuration drift is detected
- Fixed redundant newline in fmt.Println (linting error)
- Updated audience field from 'account' to 'jan-client' in defaults.yaml
- Fixed vllm port from 8001 to 8101 in cmd/jan-cli/config/defaults.yaml
- Removed feat/v2-config-refactor from workflow push branches

Changes ensure CI tests pass by:
1. Properly detecting configuration drift with better diagnostics
2. Eliminating false positives from whitespace-only changes
3. Fixing Go linting issues that caused build failures
- Fixed ensure-docker-env target to use Windows commands (mkdir/copy)
- Fixed clean-build target with Windows-compatible rmdir commands
- Fixed db-reset target to suppress errors on Windows
- Replaced Unix 'true' command with Windows-compatible error suppression

Resolves 'true is not recognized' error in make quickstart on Windows.
All Docker operations now work correctly on Windows PowerShell.
@locnguyen1986 locnguyen1986 merged commit 30bfa69 into main Nov 16, 2025
7 of 11 checks passed
@locnguyen1986 locnguyen1986 deleted the feat/v2-config-refactor branch November 16, 2025 17:25
@github-project-automation github-project-automation bot moved this to QA in Jan Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: QA

Development

Successfully merging this pull request may close these issues.

2 participants