- πΊπΈUnited States m.stenta
Minor title change to make this issue easier to find among related issues. :-)
- πΊπΈUnited States m.stenta
I'm also keeping my eye on some Drupal core issues that are progressing, and may change the way that we do things in farmOS.
For example this one: π Installing a module causes translations to be overwritten Fixed
Related to our previous issue that added a hard-coded override/workaround: #3257430: Do not allow the default language to be changed from English β
There are probably others... I'll link them in this thread so we remember to consider them.
- πΊπΈUnited States m.stenta
A critical question we need to answer is: will we need to consider Drupal 10 a "breaking change" and therefore will we need to create a 3.x branch of farmOS for it?
Discussed this a bit in chat today with @farmer-ed and @paul121 and I think we concluded that we WILL indeed need to increment farmOS's major version to 3 when we merge this. Here is why:
I think we do, if only because it will then require any custom/contrib modules to update their composer.json files to farmos/farmos ^3.0 to indicate their compatibility with D10
Otherwise there's a risk that they aren't actually compatible with ^2.0 anymore
So just like Drupal needs to increase it's major version alongside Symfony major versions, I think we do as wellFull chat: https://irc.farmos.org/bot/log/farmOS/2023-03-07#T88341
- πΊπΈUnited States m.stenta
Update:
config_update
,csv_serialization
, andexif_orientation
all have tagged releases that support D10 now.I rebased, updated, and force-pushed my
2.x-d10
branch on GitHub: https://github.com/mstenta/farmOS/tree/2.x-d10 - πΊπΈUnited States m.stenta
Note: we use the Classy theme in one of the
farm_ui_views
tests. Classy is removed from Drupal 10, so this will need to be refactored. - πΊπΈUnited States m.stenta
Note: we use the Classy theme in one of the
farm_ui_views
tests. Classy is removed from Drupal 10, so this will need to be refactored.Addressed by https://github.com/farmOS/farmOS/pull/680
- πΊπΈUnited States m.stenta
Update: jsonapi_schema β released 8.x-1.0-rc1 β with D10 compatibility! π
- πΊπΈUnited States m.stenta
Update: entity_reference_validators β released 8.x-1.0-beta2 β with D10 compatibility! π
Thanks to @pcambra!
- πΊπΈUnited States m.stenta
Update: I released Log 2.1.0 with Drupal 10 support.
- Status changed to Needs work
over 1 year ago 1:46pm 11 October 2023 - πΊπΈUnited States m.stenta
Here are instructions for setting up a local development environment for testing my
3.x
branch of farmOS:# Clone my 3.x branch of the repo. git clone --branch '3.x' git@github.com:mstenta/farmOS.git # Build farmos/farmos:3.x and farmos/farmos:3.x-dev Docker images locally. docker build --build-arg PROJECT_VERSION=3.x --build-arg FARMOS_REPO=https://github.com/mstenta/farmOS --build-arg FARMOS_VERSION=3.x -t farmos/farmos:3.x farmOS/docker docker build --build-arg PROJECT_VERSION=3.x --build-arg FARMOS_REPO=https://github.com/mstenta/farmOS --build-arg FARMOS_VERSION=3.x -t farmos/farmos:3.x-dev farmOS/docker/dev # Create local dev environment w/ running containers. mkdir farmOS_3.x && cd farmOS_3.x curl https://raw.githubusercontent.com/mstenta/farmOS/3.x/docker/docker-compose.development.yml -o docker-compose.yml docker compose up # Install via Drush. docker exec -it -u www-data farmos_3x-www-1 vendor/bin/drush site-install -y --db-url=pgsql://farm:farm@db/farm --account-pass=admin
- πΊπΈUnited States m.stenta
Current status: Things seem to be working well in the
3.x
branch!There are two issues that are preventing tests from passing in GitHub Actions:
paratest
doesn't seem to be working - not sure why yet. Changing to usephpunit
allows the tests to pass.- We use some code that has been deprecated in Drupal 11, and our
phpunit.xml
configuration only ignores "indirect" deprecations (via<env name="SYMFONY_DEPRECATIONS_HELPER" value="quiet[]=indirect"/>
). Changing that todisabled
allows tests to pass.
Both of those temporary fixes are demonstrated in my
3.x-wip
branch currently, which is passing in GitHub Actions. - πΊπΈUnited States m.stenta
paratest
doesn't seem to be working - not sure why yet. Changing to usephpunit
allows the tests to pass.I was wrong about this. Tests on MariaDB pass w/
paratest
, when deprecation notices are ignored. They fail on PostgreSQL for some other reason... I'll investigate that separately... - πΊπΈUnited States m.stenta
I think the PostgreSQL +
paratest
failures are a side-effect of #3270558: Install and create the postgres pg_trgm extension in docker container β . So we've decided to go back to usingphpunit
directly, for the time being. Hopefully we can follow-up and figure out how to make them work inparatest
again soon. - Status changed to Needs review
over 1 year ago 4:07pm 23 October 2023 - πΊπΈUnited States m.stenta
I think this is "complete" in the sense that all the necessary changes have been made and things seem to be working in local testing. Marking this as "Needs Review".
-
m.stenta β
committed d6e87180 on 3.x
Issue #3330490: Update Drupal core to 10.x in farmOS
-
m.stenta β
committed d6e87180 on 3.x
- Status changed to Fixed
over 1 year ago 4:44pm 30 October 2023 - πΊπΈUnited States m.stenta
Merged PR: https://github.com/farmOS/farmOS/pull/742
Automatically closed - issue fixed for 2 weeks with no activity.