Problem/Motivation

Drupal\Tests\locale\Functional\LocaleUpdateTest::testUpdateImportSourceRemote
Behat\Mink\Exception\ResponseTextException: The text "Updates for: Contributed module one, Contributed module two, Custom module one, Locale test" was not found anywhere in the text of the current page.

/builds/project/drupal/vendor/behat/mink/src/WebAssert.php:811
/builds/project/drupal/vendor/behat/mink/src/WebAssert.php:262
/builds/project/drupal/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php:136
/builds/project/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

https://git.drupalcode.org/project/drupal/-/jobs/164513

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

catch created an issue. See original summary.

spokje’s picture

Attached the HTML output of the failed test in the IS.

Test looks for "Updates for: Contributed module one, Contributed module two, Custom module one, Locale test"
Page shows: " Updates for: Locale test, Custom module one, Contributed module one, Contributed module two"

spokje’s picture

Assigned: Unassigned » spokje
spokje’s picture

StatusFileSize
new19.88 KB

This fails "random-consistently" only on pgsql.

Since that's tested "only" daily, not on commit, it seems like this one flew under the radar for a while.

If we switch to GitLab CI for realz, we might want to do an on-commit check on all main supported DBs?

catch’s picture

We have that set up, but I think we possibly broke it, re-opened #3392739: _TARGET_DB_TYPE does not exist for now.

spokje’s picture

StatusFileSize
new20.48 KB
new19.88 KB

Thanks @catch.

The problem in this fail seems to be that we don't sort the list with locale updates on name, only on language.

So it seems we were "saved" by almost all DB-envs almost always returning them in the order we liked, instead in the order we assured it to be.

spokje’s picture

Hmmm, seems like this is not only a cosmetic problem in sorting on the page, but a more serious problem in ordering or not importing .po-files...

spokje’s picture

Assigned: spokje » Unassigned

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.