Run Behat in throwaway containers when Docker is available
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
Hướng nghiên cứu
Read #390 to see the worker design and #384 for the baseline timing. The repo likely needs a Dockerfile for a tuned PHP image without Xdebug, and changes to the test runner to launch throwaway containers per worker. Done when a draft PR runs CI jobs with containerized Behat and shows snapshot restore working. Fallback to regular runner must remain when Docker is absent.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When Docker is available, a run could happen in throwaway containers, one per worker from #390. The container is not faster by itself: PHP ran at the same speed inside and outside of it in local tests. What it allows without root on the host is what makes the difference:
- the temporary directories and the database in memory, with no disk syncs;
- copy-on-write snapshots of the cached WordPress install instead of a full copy for every scenario (about 6 ms instead of about 90 ms to set up and tear down);
- a separate network per worker, so scenarios using fixed ports can run in parallel;
- a known toolchain, so every declared test requirement is present.
Starting a container takes about 0.3 to 0.5 seconds and every docker exec about 50 to 75 ms. Running the whole Behat process of a worker inside one container avoids that cost per command. The container's PHP version has to match the one the vendor folder was installed for.
Steps:
- Provide an image tuned for the test runs, without Xdebug unless coverage is requested.
- Run each worker of #390 in its own throwaway container, falling back to the regular runner when Docker is not available.
- Restore the cached WordPress install as a snapshot instead of a copy.
To reproduce a failure, it is enough to rerun that single scenario in a container that is kept.
Measuring: take the baseline from #384, then open a draft PR, run the same CI jobs against it and record both results here before we decide.
- Ngôn ngữ chính
- PHP
- Star
- 42
- Fork
- 28
- Merge trung bình
- 17 giờ 14 phút
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay 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 wp-cli/wp-cli-tests
-
scope:testing status:unconfirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
wp-cli/wp-cli-tests#389 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Epic: Explicit test requirementsĐang mởscope:testing
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
wp-cli/wp-cli-tests#395 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Epic: Faster Behat test runsĐang mởscope:testing
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
wp-cli/wp-cli-tests#394 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug scope:testing
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
wp-cli/wp-cli-tests#393 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
scope:testing
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
wp-cli/wp-cli-tests#392 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của wp-cli/wp-cli-tests
Issue tương tự
-
jira-created
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
grokability/snipe-it#19996 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a dark themeĐang mởgood first issue laravel-appointment-reminders
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100