Run scenarios in parallel
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
Start from issue #384 to get per-scenario timings. Examine the composer prepare-tests script and the Behat runner that currently executes scenarios serially. Implement worker isolation (own DB, temp dir) and a scenario-level splitter, then verify behat-rerun and merged reports still work.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Scenarios run strictly one after another, even though almost all of them are independent and the CI runners have several cores. In a local experiment with 213 entity-command scenarios, a serial run took 491 seconds. With 8 workers it took 164 seconds when split by feature file, where one large file set the floor. Split by scenario, it took 140 seconds (3.5×).
Steps:
- Give each worker its own state: temporary directory,
HOME, WP-CLI cache and test database.composer prepare-testsneeds to grant access to the additional databases. - Keep scenarios that rely on fixed shared resources, such as port 8080 or the scaffold test database, from running at the same time.
- Split the work by scenario rather than by file, balanced by the per-scenario timings from #384.
- Merge the results into a single report and keep
behat-rerunworking.
Measuring: take the baseline from #384, then open a draft PR, run the same CI jobs against it with the parallel runner enabled and record both results here before we decide. CI runners have fewer cores than a development machine, so the gain there will be smaller than locally.
- Ngôn ngữ chính
- PHP
- Star
- 42
- Fork
- 29
- Merge trung bình
- 21 giờ 6 phút
- Pull request đã merge (30 ngày)
- 24
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
-
os:windows scope:testing status:unconfirmed
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
wp-cli/wp-cli-tests#427 ·
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 22/100
wp-cli/wp-cli-tests#426 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
scope:artifacts scope:distribution scope:testing
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
wp-cli/wp-cli-tests#425 ·
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
Tất cả issue của wp-cli/wp-cli-tests
Issue tương tự
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Sync EN] Formatting improvements to "Large Objects (LOBs)" docs (#6056)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởsync-en
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
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 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
repo:cms
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
craftcms/cms#20613 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
项目日志弹出窗尺寸可拉伸功能Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày