Test failed on Tests_Image_Editor_Imagick::test_resizes_are_small_for_16bit_images

未关闭
#237 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
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 小时
30 天内合并 PR
2

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

WordPress/phpunit-test-runner 的其他 Issue

查看 WordPress/phpunit-test-runner 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。