Opened 5 weeks ago
Last modified 4 weeks ago
#62325 new defect (bug)
Ensure PHPUnit tests making network requests are in the external-http group.
Reported by: | peterwilsoncc | Owned by: | |
---|---|---|---|
Milestone: | 6.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | needs-patch |
Focuses: | Cc: |
Description
A number of tests in the PHPUnit test suite make network requests to ensure that features such as oembeds, DNS lookups and remote requests work as intended.
As these tests can be slow and are susceptible to failure in un-ideal network conditions, they ought to be in the external-http
group to prevent false negatives when the developers run the test suite locally, especially within a virtual environment.
Some of these tests are missing the group, the purpose of this test is to review the test suite and ensure they are all in the external-http
group.
cc @azaozz per discussion on PR#7655.
Change History (4)
#4
@
4 weeks ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 6.8
Thanks for opening this ticket!
these tests can be slow and are susceptible to failure in un-ideal network conditions
Yep, thinking that fixing the group will be a nice improvement for most people that run the unit tests locally (the tests can be run with --exclude-group external-http
when network connection is slow). Would probably be good to also add a reminder/docs to maintain that group when new tests are added.
Seems this can be done in 6.8. May also be a good-first-bug, perhaps.
In 59326: