Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

upgrade --from v1 leaves contradictory infra state: v1 per-plugin docker-compose DBs and .env.test targets that don't exist

Đang mở
#651 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker-compose, postgresql, typescript
Lĩnh vực
database, devops

Hướng nghiên cứu

Start by tracing the bos upgrade --from v1 flow and its audit logic, then inspect the generated docker-compose.yml and .env.test handling. Compare the resulting child project configuration with the platform repository’s four service setup described in the issue. Done means stale per-workspace services and invalid test database targets are either updated to the v2 shape or reported clearly by the audit.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Found during the nearbuilders.org v2 upgrade (NEARBuilders/nearbuilders.org#305).

What

After the managed upgrade, the child repo is left with:

  • docker-compose.yml still describing the v1 topology — one postgres container per workspace (11 services with their own ports/volumes in nearbuilders.org), while the v2 code model is one shared postgres with plugin_<slug> schema scoping and ephemeral PGlite dev defaults. Root dev:postgres* scripts still point at the stale file.
  • .env.test pointing at services that don't exist — nearbuilders.org's copy referenced api_test_db/auth_test_db on ports 5434/5435, which under the v1 compose file were activity_db/builders_db. Any test loading it hits the wrong database or fails.

Why

The upgrade reconciles code/config but not infra files. The v2 topology shift (DB consolidation, ADR 0033) is exactly the kind of change that makes leftover infra files silently wrong.

Suggested fix

During bos upgrade --from v1 (or the audit): detect a generated per-workspace compose topology / .env.test targets that reference nonexistent services, and either regenerate them in the v2 shape (shared postgres + plugin_<slug> schemas + *-test services, mirroring the platform repo's own docker-compose.yml) or add explicit audit warnings listing the stale services.

Reference shape: the platform repo's own docker-compose.yml (4 services: api, auth, api-test, auth-test) is the pattern children should end on.

Ngôn ngữ chính
TypeScript
Star
5
Fork
3
Merge trung bình
9 giờ 37 phút
Pull request đã merge (30 ngày)
157

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NEARBuilders/everything-dev

Tất cả issue của NEARBuilders/everything-dev

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.