发布

  • [NA] [DEV] Add multi-worktree support for parallel development (#5024)

    frostbyte_neo 发布于 2026-02-04 11:56:14 +00:00

    • [NA] [DEV] Add multi-worktree support for parallel development

    Enable developers to run multiple Opik development environments
    simultaneously from different git worktrees, each with isolated
    ports and Docker containers.

    Key changes:

    • Automatic port offset for worktrees (0 for main repo)
    • Docker project name isolation per worktree
    • Dynamic port configuration in vite and docker-compose
    • Updated documentation with usage examples

    This allows developers to work on 2+ tasks in parallel (FE/BE)
    and verify changes locally without port conflicts.

    • [NA] [DEV] Fix multi-worktree issues from PR review
    • REDIS_URL now respects existing env value using ${REDIS_URL:-...} pattern
    • Added missing ports to check_port_collisions(): CLICKHOUSE_NATIVE, ZOOKEEPER, MINIO_API, MINIO_CONSOLE
    • Fixed get_ui_url() to use NGINX_PORT/OPIK_FRONTEND_PORT instead of hardcoded 5173
    • Export NGINX_PORT in init_worktree_ports() for frontend container binding

    Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

    • Fix frontend port configuration: separate nginx (5173) and vite dev (5174) ports
    • BASE_NGINX_PORT=5173 for docker/opik.sh (nginx)
    • BASE_FRONTEND_DEV_PORT=5174 for dev-runner.sh (vite)
    • NGINX_PORT used by docker-compose
    • FRONTEND_PORT used by vite dev server

    Co-authored-by: Claude Opus 4.5 noreply@anthropic.com

    下载附件