Test failed on Tests_Image_Editor_Imagick::test_resizes_are_small_for_16bit_images

オープン
#237 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php
領域
testing-qa

調査の方向性

まず php test.php を実行し、787 行目付近の tests/phpunit/tests/image/editorImagick.php を調べてください。そこでは Tests_Image_Editor_Imagick::test_resizes_are_small_for_16bit_images が cloudflare-status データセットに対して失敗します。テストの動作を WordPress のコミット 082f6e6f3bb0716969414d47b9fe71251b984ccb と比較してください。サポート対象の PHP および ImageMagick のバージョンで失敗しているテストが成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug ContributorDay WCUS26

Describe the bug
Test is failing

There was 1 failure:

1) Tests_Image_Editor_Imagick::test_resizes_are_small_for_16bit_images with data set "cloudflare-status" ('/tmp/wp-test-runner/tests/php...us.png')
The resized image file size is not smaller than the original file size.
Failed asserting that 26899 is less than 24940.

/tmp/wp-test-runner/tests/phpunit/tests/image/editorImagick.php:787
/tmp/wp-test-runner/vendor/phpunit/phpunit/phpunit:107

FAILURES!
Tests: 24868, Assertions: 89135, Failures: 1, Warnings: 86, Skipped: 15.
Error: Failed to perform operation.

To Reproduce
Steps to reproduce the behavior:

  • Run php test.php
  • Tested on PHP 8.2, and PHP 8.1 with ImageMagick 7 and 6

Expected behavior
Test to pass

Screenshots
Image

Additional context
This probably happened after the WordPress update on: https://github.com/WordPress/wordpress-develop/commit/082f6e6f3bb0716969414d47b9fe71251b984ccb

主要言語
PHP
スター
77
フォーク
83
平均マージ
4日 9時間
マージ済み PR(30日)
2

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

WordPress/phpunit-test-runner のほかの issue

WordPress/phpunit-test-runner の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。