- Issue created by @dimitriskr
- 🇺🇸United States dww
Coming from Slack. I'm also seeing phpunit jobs failing in GitLab pipelines for contrib with the DB not alive yet. E.g. https://git.drupalcode.org/project/address/-/jobs/616657 -- I haven't been keeping super close track. I can paste more examples here as I see them if it's helpful. Not sure this is really the best project, or if we need a gitlab templates issue about it or something...
- 🇪🇸Spain fjgarlin
Created #3414252: Add CI_DEBUG_SERVICES to investigate DB failures → for contrib.
- Status changed to Needs review
10 months ago 11:08am 14 January 2024 - Status changed to RTBC
10 months ago 2:42pm 16 January 2024 - 🇺🇸United States smustgrave
Not sure I can think of a reason this would be bad, so going to mark.
- 🇬🇷Greece dimitriskr
Failed nightwatch job with debug enabled
https://git.drupalcode.org/issue/drupal-2448545/-/jobs/633899 - 🇺🇸United States dww
Another failed nightwatch job: https://git.drupalcode.org/issue/drupal-3415412/-/jobs/651717
️TEST FAILURE (1m 49s): - 1 error during execution; - 0 assertions failed; 1920 passed ✖ 3) Tests/ckEditor5CodeSyntaxTest - OTHER ERRORS: 1) Error Command failed: php ./scripts/test-site.php user-login 1 --site-path sites/simpletest/49243948 In Database.php line 455: The specified database connection is not defined: default user-login [--site-path SITE-PATH] [--] <uid>
All roads point to the DB credentials not showing up in settings.php (?) in time for the test suite to find them.
- 🇬🇷Greece dimitriskr
No, it's just that dww reported one more of the failures, because we gather whatever we can find, in order to find the cause of it.
I have to say that the nightwatch failures do not feel like they have the same cause of failure with PHPUnit tests.. Let's fix them one by one. Also, since in #7 we have a nightwatch along with DB logs, we don't need to enable CI_DEBUG_SERVICES yet. Let's fix the nightwatch jobs, that seem pretty straightforward and then we can check the phpunit ones
- Status changed to Needs review
10 months ago 10:39am 18 January 2024 - 🇬🇧United Kingdom catch
Moving this back to needs review because it looks like we're getting enough information from the MR without a core commit.
- First commit to issue fork.
- Merge request !6230Revert "Issue #3413135 by Spokje: Replace deprecated functions in Nightwatch tests" → (Open) created by longwave
- 🇬🇧United Kingdom longwave UK
Wondering if 📌 Replace deprecated functions in Nightwatch tests Fixed is the culprit, opened a revert MR to find out.
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
Turned out the culprit for #8 was 📌 Enable modules through Nightwatch API when not testing module enabling Needs work which has been reverted and is in the process of being fixed.
- Status changed to Needs work
10 months ago 2:30pm 25 January 2024 - 🇺🇸United States smustgrave
Tried to come back to this one, but comparing the 2 MRs seem to be doing different things. Which one is supposed to be review? Does it diff from issue summary?
- 🇬🇷Greece dimitriskr
For now, 6126 can be closed.
We've found the cause for nightwatch, but we don't know what's happening with phpunit tests. If we see an increase in random phpunit failures, we could, in the end, commit the changes of 6126 to 11.x and monitor all jobs. But due to the fact phpunit failures are not that common, and usually a re-run of the job works, its priority can be considered minor - 🇺🇸United States phenaproxima Massachusetts
Automatic Updates is suffering from many of these failures!
We enabled CI_DEBUG_SERVICES in our .gitlab-ci.yml, so here are some failed job logs for the heroes working to fix this:
https://git.drupalcode.org/project/automatic_updates/-/jobs/712543
https://git.drupalcode.org/project/automatic_updates/-/jobs/712550
https://git.drupalcode.org/project/automatic_updates/-/jobs/712549
https://git.drupalcode.org/project/automatic_updates/-/jobs/712558 - 🇺🇸United States phenaproxima Massachusetts
@dimitriskr told me in Slack that he couldn't access the logs, so here they are, as raw text.
- 🇬🇷Greece dimitriskr
I'm uploading one of the logs and make it more readable due to gitlab's raw output