GeezerVison is showing github.com — Unrelated test consistently fails in GH runners with ubuntu-latest · Issue #7243 · backdrop/backdrop-issues
Unrelated test consistently fails in GH runners with ubuntu-latest #7243
Description
Description of the bug
Only recently TextSummaryTestCase::testLength() fails consistently. Also in totally unrelated PRs.
Steps To Reproduce
Create a PR for core.
Actual behavior
Test fails:
Detailed test results
---------------------
---- Field types: Text summary (TextSummaryTestCase) ----
Status Group Filename Line Function
----------------------------------------------------------------------------------------------
Fail Other text.test 516 testLength()
Generated summary "
Fail Other text.test 517 testLength()
Generated filtered_html summary "
Fail Other text.test 516 testLength()
Generated summary "\nHi\n" matches expected "\nHi\n".
👆 Note that there are a lot more checks in that test. Only these 3 seem to fail.
What's odd - there should be a format name...
format_string('Generated @format summary "@summary" matches expected "@expected"...
Additional information
As I can't reproduce it locally (test passes), I opened this issue.
Add any other information that could help, such as:
- Backdrop CMS version: dev
- Web server and its version:
- PHP version: any
Unclear what changed so this fails in GitHub action. New runner version?
Activity
laryn commented on Nov 17, 2026
So $format seems to be ... null or empty string. Hard to guess without way to reproduce.
@indigoxela At a glance, line 516 is calling assertTextSummary explicitly with a NULL passed to the $format variable. I'm not sure why.
indigoxela commented on Nov 17, 2026
... line 516 is calling assertTextSummary explicitly with a NULL
Oh, right, many thanks for an additional pair of eyes - functioning ones. 😉
indigoxela commented on Nov 18, 2026
No commit to core since it last worked.
Same runner version (2.338.2), the only difference is that the Ubuntu LTS version changed.
And setting it to ubuntu-24.04 seems to do the trick.
Now we'd need someone with ubuntu-26.04 to (eventually) locally reproduce this odd failure.
The only thing I can see is that the order of listed tests changed.
changed the title
[-]Unrelated test consistently fails in GH runners[/-] [+]Unrelated test consistently fails in GH runners with ubuntu-latest[/+] on Nov 28, 2026indigoxela commented on Nov 28, 2026
"Fun" fact: even when all tests pass (on ubuntu-24.04) things are broken, as a lot of tests run twice (in different batches on the same PHP version).
The whole concept of test run fractions deserves a closer look. And that's unrelated to the ubuntu version.
Seems like one of the batches (fractions) runs twice (more or less) while another one not at all? But only as of November? Or maybe the random test order is misleading. Or maybe it's only a problem with reporting... 🤷
Metadata
Metadata
Development
No branches or pull requestsIssue actions