Opened 6 months ago
Closed 6 months ago
#60865 closed defect (bug) (fixed)
Some PHPUnit Tests are failing
Reported by: | dextorlobo | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.5.3 | Priority: | normal |
Severity: | normal | Version: | 6.5 |
Component: | Build/Test Tools | Keywords: | has-patch has-unit-tests fixed-major dev-reviewed |
Focuses: | Cc: |
Description
Some PHPUnit Tests are failing in wordpress-develop repo due to dummy images are not returning expected results.
Steps to reproduce:
- Raise a new PR in wordpress-develop repo against trunk
- Automatic tests start run
- Some tests will get fail
These test failure will be blocker for new PRs.
Attachments (1)
Change History (51)
This ticket was mentioned in PR #6336 on WordPress/wordpress-develop by @dextorlobo.
6 months ago
#1
- Keywords has-patch has-unit-tests added
This ticket was mentioned in Slack in #core by dextorlobo. View the logs.
6 months ago
#3
@
6 months ago
- Focuses performance coding-standards removed
- Severity changed from blocker to normal
#4
@
6 months ago
- Milestone changed from Awaiting Review to 6.6
- Owner set to SergeyBiryukov
- Status changed from new to accepted
This ticket was mentioned in Slack in #core by sergey. View the logs.
6 months ago
#8
@
6 months ago
- Keywords fixed-major dev-feedback added
- Milestone changed from 6.6 to 6.5
Moving to 6.5 for backport consideration.
@SergeyBiryukov commented on PR #6336:
6 months ago
#11
Thanks for the PR! Merged a slightly modified version in r57903.
#12
follow-up:
↓ 15
@
6 months ago
For some reason, the tests still fail for me locally after [57904] due to the difference in image sizes:
There were 4 failures: 1) Tests_Functions_wpRemoteFopen::test_wp_remote_fopen Failed asserting that 31325 is identical to 40148. tests/phpunit/tests/functions/wpRemoteFopen.php:34 2) Tests_HTTP_Functions::test_head_request Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'40148' +'31325' tests/phpunit/tests/http/functions.php::24 3) Tests_HTTP_Functions::test_get_request Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'40148' +'31325' tests/phpunit/tests/http/functions.php::69 4) Tests_HTTP_Functions::test_get_redirect Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'40148' +'31325' tests/phpunit/tests/http/functions.php:90
This happens on Windows and Ubuntu, but the same tests seem to pass on GitHub Actions. This could use some more investigation, or perhaps a more stable URL could be used for these requests.
#13
@
6 months ago
- Resolution fixed deleted
- Status changed from closed to reopened
I think this will need to be merged to all branches receiving courtesy security updates
#15
in reply to:
↑ 12
@
6 months ago
Replying to SergeyBiryukov:
This happens on Windows and Ubuntu, but the same tests seem to pass on GitHub Actions. This could use some more investigation, or perhaps a more stable URL could be used for these requests.
60865.diff switches to a WordPress.org URL, this should be more stable in the long run.
This ticket was mentioned in PR #6363 on WordPress/wordpress-develop by @SergeyBiryukov.
6 months ago
#16
Due to some changes on the WP.com side to compress the requested images on the fly, the exact image size in the response could be different between platforms.
This commit aims to make the affected tests more reliable.
Trac ticket: https://core.trac.wordpress.org/ticket/60865
@SergeyBiryukov commented on PR #6363:
6 months ago
#18
Merged in r57931.
#19
@
6 months ago
- Keywords dev-feedback added; dev-reviewed removed
- Milestone changed from 6.5 to 6.5.1
Marking [57931] for backporting to 6.5 and older branches after a second committer's review.
Some PHPUnit Tests are failing in wordpress-develop repo due to dummy images are not returning expected results.
Steps to reproduce:
Screenshot of issue:
Fixes:
I have replaced the dummy images which were causing the issue with other dummy.
Trac ticket: https://core.trac.wordpress.org/ticket/60865#ticket