Use a prebuilt Docker image for the parallel workers
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
- 25/100
Hướng nghiên cứu
Start with wp_cli_tests_docker_php_image() in utils/behat-parallel.php and the image definition in utils/docker/Dockerfile, then look at the existing GitHub Actions workflows for where a publish job would go. Done means the helper computes a tag from the PHP version and a hash of utils/docker/, pulls that image, and falls back to the local build when the pull fails or the hash differs. The publishing workflow should push images for each supported PHP version to GHCR.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Part of #394. Follow-up to #391 and #408.
Every Linux Behat job builds the worker image from utils/docker/Dockerfile with docker build (wp_cli_tests_docker_php_image() in utils/behat-parallel.php). The GitHub runners start without a layer cache, so every job builds the image from scratch, although it only depends on the PHP version and the Dockerfile.
In the full-matrix runs of all 29 packages on 2026-11-02, the time from the start of the Behat step to the first worker starting was between 40 and 63 seconds in every package, measured in the job for PHP 8.4, WP latest and MySQL 8.0. Each package runs about 45 Linux Behat jobs, so this adds up to roughly 30 to 45 runner-minutes per package per Testing run, or about 15 to 20 runner-hours per round across the 29 packages. For PHP 8.0 and older, the image also builds SQLite from source (#413), which takes another 30 to 90 seconds.
Proposal:
- A workflow in this repository builds the image for every supported PHP version and publishes it to the GitHub Container Registry, tagged with the PHP version and a hash of
utils/docker/. It runs when the Dockerfile changes, and on a schedule, to pick up PHP patch releases and security updates of the base images. wp_cli_tests_docker_php_image()computes the same tag and pulls the image. It builds the image locally as before if the pull fails, or ifutils/docker/differs from any published version, for example in a development checkout.- Keep the image small, so pulling it stays well below the current build time.
The vendor directory for a different PHP version (WP_CLI_TEST_DOCKER_PHP) is project-specific and stays out of the image.
Measuring: compare the time from the start of the Behat step to "Running N scenarios ..." for the same jobs, with a cold runner, before and after. Pull time is what decides this, so record the size of the image as well.
- Ngôn ngữ chính
- PHP
- Star
- 42
- Fork
- 28
- Merge trung bình
- 18 giờ 52 phút
- Pull request đã merge (30 ngày)
- 27
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
-
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#427 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
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
-
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
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 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
JSON:API resource collections fail for resources that wrap a non-model objectCó thể đã có người làm @lazerg đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/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 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Recognise PHP_CodeSniffer (`phpcs`) as a linterCó thể đã có người làm @HarshRajSinghania đã nhận hôm nay. Đang mởenhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
MustacheCase/zanadir#507 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Developer Tooling/Infrastructure type: infrastructure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
woocommerce/woocommerce#70544 ·
Maintainer thường phản hồi trong vòng 1 ngày