The compose header teardown and `make down` leave profile services running (follow-up to #1285)
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 74/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, docker-compose, python, yaml
- Lĩnh vực
- devops, documentation, testing
Hướng nghiên cứu
Start with the docker-compose.yml profile declarations and the teardown commands in docker-compose.yml, Makefile, and the three getting-started pages mentioned through CONTRIBUTING.md. Update the regression test at backend/tests/unit/docs/test_demo_profile_command.py::test_the_header_and_the_two_pages_print_the_same_command to cover the header and all three pages. Done means each full-teardown command names exactly the demo, tools, and aws profiles, the regression test passes, docker compose config remains byte-identical, and the named-volume persistence assertions still hold.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up to #1285. That issue fixes the three getting-started pages. Two more copies of the same teardown remain,
and they stay as they are in v0.36.1:
docker-compose.ymlline 16, the header comment:docker compose down -v # stop and drop the volumes, directly
under the header's--profile demo,--profile toolsand--profile awsstart lines.Makefilelines 82-83, thedowntarget:$(COMPOSE) down -v --remove-orphans, whichCONTRIBUTING.mdline 114
documents as "Stop everything and drop the volumes", right undermake demo.
Why --remove-orphans does not help
From Compose's source (v2.24.5 and v2.38.2): down removes containers only for the services in the loaded project, and
services whose profile is not enabled are "disabled", not absent. isOrphaned counts both enabled and disabled services
as defined, so a disabled-profile container is never an orphan. After make demo, make down leaves shoplab,
streampulse and both simulators running, with the same effects as in #1285.
Scope of the fix (one PR)
- The header teardown and the
downrecipe name every profile;CONTRIBUTING.mdline 114 becomes true. - A regression test (markers
unitandregression, standard library only, no git) asserting that every documented
full teardown names exactly the set of profiles declared indocker-compose.yml: the three pages' fenced
docker compose … downlines, the header line and the Makefile recipe. The PR shows it failing on a page reverted to
docker compose down -vand on a page without--profile aws. backend/tests/unit/docs/test_demo_profile_command.py::test_the_header_and_the_two_pages_print_the_same_commandis
adjusted so that a header demo start line without the seeds still fails.docker compose configis byte-identical before and after.- An assertion that the
toolsandawsservices keep their data in named volumes, against which the pages' new
"also deletes pgAdmin's and LocalStack's data" sentences are re-registered.
The regression test is deliberately not part of #1285's PR, so that v0.36.1 stays docs-only.
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 4
- Merge trung bình
- 5 giờ 19 phút
- Pull request đã merge (30 ngày)
- 503
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Controlvar/controlvar
-
Dashboard: the sequential panel's "Ready to stop" banner shows no sample-ratio-mismatch cautionĐang mởbug post-launch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Controlvar/controlvar#1737 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(api): the feature-flag list has no defined order across pagesCó thể đã có người làm @amarkanday đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Controlvar/controlvar#1612 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug post-launch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Controlvar/controlvar#1562 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Controlvar/controlvar#1447 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Experiment setup: emptying a traffic share box and typing a number shows a leading zero ("034")Đang mởbug post-launch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Controlvar/controlvar#1428 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Controlvar/controlvar
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
jejjohnson/gaussx#752 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
521xueweihan/HelloGitHub#4270 ·
-
enhancement owner: den-haag
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ok-oldking/ok-wuthering-waves#1828 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
lesson-submission pending-review
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
Ikalus1988/MisakaNet#4512 ·
Maintainer thường phản hồi trong vòng 1 ngày