Allow commit message and revision to be passed through an environment variable
Maintainer thường phản hồi trong vòng 2 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
- 35/100
Hướng nghiên cứu
Bắt đầu với việc tìm kiếm .git và .svn hiện có của test reporter, sau đó kiểm tra workflow của GitHub Actions nơi github.event.head_commit.message khả dụng. Công việc được hoàn thành khi reporter có thể sử dụng các giá trị commit message và revision được cung cấp từ môi trường, đồng thời vẫn giữ việc quét thư mục làm fallback.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
WordPress Core currently runs PHPUnit tests in two steps.
The first step checks out the WordPress repo, installs NPM, builds WP for use, and then zips everything to upload as an artifact on the workflow run. After that, individual jobs are created for various PHP/Memcached combinations to run the PHPUnit tests by downloading the previously built artifact. This prevents every job from needing to perform these steps.
However, the .git folder is not packaged and included in the artifact to save space (and it's no longer needed anyway).
When the test reporter submits results, it scans for .git and .svn directories to grab the commit message and revision number to associate the results with. In order for this to work successfully, the Git repo needs to be reconnected to the codebase (see Core revision 49786).
The GitHub Action runner provides this information through the github workflow context. In the case of a push trigger event, the context would be github.event.head_commit.message (see https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads#push).
If the runner first checked for environment variables and fell back to searching for those directories as a second option, that information could be passed to the reporter without having to reestablish the directory as a Git repository.
- Ngôn ngữ chính
- PHP
- Star
- 77
- Fork
- 79
- Merge trung bình
- 4 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 WordPress/phpunit-test-runner
-
The PHP version check in prepare.php still allows PHP 7.2 and 7.3Có thể đã có người làm @ekamran đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
WordPress/phpunit-test-runner#359 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
make testrunner.sh in host-tools directoryCó thể đã có người làm @iarif4u đã nhận 17 ngày trước. Đang mởContributorDay tooling WCUS26
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
WordPress/phpunit-test-runner#260 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
create host-tools directory in root folderCó thể đã có người làm @iarif4u đã nhận 17 ngày trước. Đang mởContributorDay tooling WCUS26
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
WordPress/phpunit-test-runner#259 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
A database password with a quote or a backslash breaks wp-tests-config.phpCó thể đã có người làm @ekamran đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
WordPress/phpunit-test-runner#354 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Error: Error uploading results: Invalid parameter(s): message (HTTP status 400)`Có thể đã có người làm @ekamran đã nhận 19 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
WordPress/phpunit-test-runner#335 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của WordPress/phpunit-test-runner
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Automattic/blocks-engine#3090 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
macOS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
beyondcode/herd-community#1771 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
-
module: user interface priority: high severity: minor type: bug
Độ 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
-
[Enhancement] Add a dark-bg Tailwind variantCó thể đã có người làm @bd-viget đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
vigetlabs/wordpress-site-starter#306 ·
Maintainer thường phản hồi trong vòng 1 ngày