- Issue created by @quietone
- 🇳🇿New Zealand quietone
I take that back, I made a mistake. It is failing locally.
Ahh, even I tried to replicate on local to work on it, for me test pass on local.
- First commit to issue fork.
- Status changed to Needs review
5 months ago 10:27pm 11 July 2024 - 🇬🇧United Kingdom longwave UK
This appeared to break in the upgrade to Symfony 7.1, but not entirely sure why. Note also that this test only runs on SQLite anyway, it is skipped on other database engines.
What I think is happening is the updated
PATH
env var is not taking effect, and instead the currentPATH
is being searched for thegit
binary. The attempt in the MR succeeds here locally but then fails later, let's see what happens on CI at least. - Status changed to Active
5 months ago 10:33pm 11 July 2024 - 🇬🇧United Kingdom longwave UK
Actually I'm not sure how this test worked before, unless
git
was not available in the environment perhaps?The fake
git
is set up and tested, but then the second Process object doesn't override$PATH
, so how/why would it find the fakegit
by that point? - Status changed to Needs review
5 months ago 10:34pm 11 July 2024 - 🇬🇧United Kingdom longwave UK
Oh I see, $env is passed into the second Process. But the first Process doesn't technically need it because it is executed from the context of PHP and PATH (or COLUMNS) don't come into play, so I pushed a simplification that works locally.
- 🇳🇿New Zealand quietone
Yes, it does look like it was the change to 7.1 that caused the problem. I started the tests on sqlite.
- 🇬🇧United Kingdom longwave UK
So, this test *does* fail on all database drivers, but *only* if SQLite 3.45 is available. On Drupal CI, the MySQL and Postgres tests run in a different PHP container that only has SQLite 3.40, and so the tests are skipped.
However, for the purposes of this test at least, it seems it's not necessary to check the SQLite version - and I'm wondering if that's the case for any of the build tests.
- 🇬🇧United Kingdom longwave UK
Most tests run on php-8.3-apache:
_TARGET_PHP: "8.3"
but SQLite changes this:
'PHP 8.3 SQLite 3.45': <<: [ *default-stage, *run-on-mr ] variables: _TARGET_PHP: "8.3-ubuntu"
And then you can see the difference by checking versions in the containers directly:
$ docker run drupalci/php-8.3-apache:production php -r "print (new \PDO('sqlite::memory:'))->query('select sqlite_version()')->fetch()[0];" 3.40.1 $ docker run drupalci/php-8.3-ubuntu-apache:production php -r "print (new \PDO('sqlite::memory:'))->query('select sqlite_version()')->fetch()[0];" 3.45.1
- 🇫🇷France andypost
Faced the same error but on Mysql and PHP 8.4alpha2 in #3427903-22: [META] Make Drupal 10.3/11 compatible with PHP 8.4 →
- 🇫🇷France andypost
FYI added changes from MR !8746 allowed to pass tests on 8.4!
- Status changed to Needs work
5 months ago 1:37pm 22 July 2024 The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- Status changed to Needs review
5 months ago 10:15pm 22 July 2024 - 🇫🇷France andypost
Changes looks ready for RTBC but somehow I can't trigger sqlite testing job
- 🇺🇸United States bradjones1 Digital Nomad Life
I think maybe Dave needs to trigger it? "You are not authorized to trigger this manual job."
- 🇮🇹Italy mondrake 🇮🇹
I think this is Major if not Critical, since this issue has been systematically failing all SQLite test runs for quite some time.
- 🇮🇹Italy mondrake 🇮🇹
Looking at Issue Priority docs, https://www.drupal.org/docs/develop/issues/fields-and-other-parts-of-an-... →
Critical bugs include those that:
[...]
Cause tests to fail in HEAD on the automated testing platform for any supported environment (including random failures), since this blocks all other work.
[...] - Status changed to RTBC
5 months ago 12:54pm 24 July 2024 - 🇫🇷France andypost
I think it good to go to fix immediate bug and continue (for 11.x) with 📌 Use Ubuntu images in all CI environments for core Postponed
- 🇬🇧United Kingdom catch
Committed/pushed to 11.x and cherry-picked back through to 10.3.x, thanks!
- Status changed to Fixed
5 months ago 12:16am 28 July 2024 Automatically closed - issue fixed for 2 weeks with no activity.