- Issue created by @fjgarlin
- @fjgarlin opened merge request.
- 🇪🇸Spain fjgarlin
Moving this to core. Recommended to create a new fork and branch from there instead.
A good starting point for the new MR is to uncomment the SQLite options in the matrix and start testing/debugging within the MR.
- First commit to issue fork.
- last update
about 1 year ago 30,167 pass - @andypost opened merge request.
- last update
about 1 year ago 30,167 pass - last update
about 1 year ago 30,167 pass - last update
about 1 year ago 30,168 pass - 🇫🇷France andypost
- last update
about 1 year ago 30,168 pass - last update
about 1 year ago 30,168 pass - Status changed to Needs work
about 1 year ago 12:16am 19 September 2023 - 🇫🇷France andypost
Somehow run-tests require
--dburl
in custom format https://git.drupalcode.org/issue/drupal-3385620/-/jobs/97891ERROR: Invalid --dburl. Reason: Minimum requirement: driver://host/database
- 🇫🇷France andypost
I pushed fake
sqlite-3
image which is sleeping all the time, so it used to conform other databaseshttps://git.drupalcode.org/project/drupalci_environments/-/commit/e72735...
- 🇫🇷France andypost
Nightwatch tests needs variable https://git.drupalcode.org/issue/drupal-3385620/-/jobs/98006
And one kernel test fails https://git.drupalcode.org/issue/drupal-3385620/-/jobs/98034
Testing Drupal\Tests\migrate\Kernel\SqlBaseTest .F.. 4 / 4 (100%) Time: 00:03.946, Memory: 4.00 MB There was 1 failure: 1) Drupal\Tests\migrate\Kernel\SqlBaseTest::testBrokenConnection Failed asserting that exception of type "Drupal\migrate\Exception\RequirementsException" is thrown. /builds/issue/drupal-3385620/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122 /builds/issue/drupal-3385620/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55 /builds/issue/drupal-3385620/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 FAILURES! Tests: 4, Assertions: 17, Failures: 1.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Wow I didn't even realize this was not yet working — because in my experience, SQLite-on-RAMdisk is way faster than MySQL. So that means this has the potential to further speed up the time to get complete test results. Maybe not for core (where MariaDB/MySQL is used by >90% of sites), but for contrib it could help!
- 🇪🇸Spain fjgarlin
For D7 core, where it just worked without issues on a very similar setup, SQLite is blazing fast.
I'm close to finish some other priorities (like D7 core and D7 contrib GitlabCI integration) and then I should be able to jump on this, but happy for you all to try to fix and debug.
- 🇬🇧United Kingdom catch
If it's significantly faster than mysql we could consider setting sqlite as the default MR environment, and then ensure we run MySQL tests too prior to commit.
29:22 47:08 Running28:34 44:10 Running9:58 44:10 Running- last update
about 1 year ago 30,361 pass - last update
about 1 year ago 30,361 pass 40:48 0:23 Running- last update
about 1 year ago 30,360 pass - Status changed to Needs review
about 1 year ago 2:41pm 29 September 2023 - 🇪🇸Spain fjgarlin
I think this is ready for review now.
MR: https://git.drupalcode.org/project/drupal/-/merge_requests/4820/diffs
Note that we skipped two tests for SQLite based on Slack conversation https://drupal.slack.com/archives/CGKLP028K/p1695980781697999 with @catch. Both tests test for a non-existent database but SQLite creates them on the fly if they don't exist.
Pipeline with SQLite runs: https://git.drupalcode.org/issue/drupal-3385620/-/pipelines/25125
- Status changed to RTBC
about 1 year ago 2:49pm 29 September 2023 - 🇬🇧United Kingdom catch
Looks great to me, we're only skipping the tests here no actual refactoring, so I think it's OK in the one issue. We should enable this and then we'll get a better idea about overall stability - and be able to switch more of DrupalCI off too.
-
longwave →
committed 7f06eb5e on 10.1.x
Issue #3385620 by fjgarlin, andypost: [GitlabCI] SQLite currently not...
-
longwave →
committed 7f06eb5e on 10.1.x
- 🇬🇧United Kingdom longwave UK
Agree that skipping those two tests on SQLite is fine given they are only for edge cases in migrate.
Committed and pushed d0cfc6d004 to 11.x and 7f06eb5ed8 to 10.1.x. Thanks!
-
longwave →
committed d0cfc6d0 on 11.x
Issue #3385620 by fjgarlin, andypost: [GitlabCI] SQLite currently not...
-
longwave →
committed d0cfc6d0 on 11.x
- Status changed to Fixed
about 1 year ago 8:00pm 30 September 2023 - 🇬🇧United Kingdom catch
Moved sqlite down to daily tests for 11.x and 10.1.x on DrupalCI.
Automatically closed - issue fixed for 2 weeks with no activity.
- last update
about 1 year ago 30,438 pass - last update
about 1 year ago 30,438 pass - last update
about 1 year ago 30,438 pass