- Issue created by @project update bot
- last update
about 1 year ago Patch Failed to Apply This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module → , even with these changes, this module is not yet compatible with Drupal 11.
Currently Drupal Rector, version 0.20.1, cannot fix all Drupal 11 compatibility problems.
Therefore these changes did not update the
info.yml
file for Drupal 11 compatibility.Leaving this issue open, even after committing the current patch, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug info
Bot run #11-121090This patch was created using these packages:
- drupal/upgrade_status: 4.1.0
- mglaman/phpstan-drupal: 1.2.7
- palantirnet/drupal-rector: 0.20.1
- Status changed to Needs review
about 1 year ago 12:55pm 17 March 2024 - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Not currently mergeable. - last update
about 1 year ago 699 pass, 4 fail This comment was forced and has ignored the check if a change was already posted. This is only done when we want to update the issue without waiting for changes to happen.
This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module → , even with these changes, this module is not yet compatible with Drupal 11.
Currently Drupal Rector, version 0.20.1, cannot fix all Drupal 11 compatibility problems.
Therefore, these changes did not update the
info.yml
file for Drupal 11 compatibility.The compatibility issues that Upgrade Status found after the Drupal Rector fixes were applied are attached to help you resolve them manually.
Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-137198These packages were used to generate the fixes:
- drupal/upgrade_status: 4.1.0
- mglaman/phpstan-drupal: 1.2.10
- palantirnet/drupal-rector: 0.20.1
- last update
about 1 year ago 699 pass, 4 fail The last submitted patch, 4: feeds.3.x-dev.rector.patch, failed testing. View results →
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- 🇵🇹Portugal jcnventura
Update bot seems to also miss the following error:
"Fatal error: Declaration of Drupal\feeds\Entity\Feed::__wakeup() must be compatible with Drupal\Core\Entity\EntityBase::__wakeup(): void in /var/www/html/web/modules/contrib/feeds/src/Entity/Feed.php on line 97"
- 🇮🇳India samit.310@gmail.com
samit.310@gmail.com → made their first commit to this issue’s fork.
- Merge request !164Resolve #3430449 "Automated drupal 11 fixes" → (Open) created by samit.310@gmail.com
- last update
11 months ago run-tests.sh fatal error - First commit to issue fork.
- last update
11 months ago 700 pass, 4 fail - last update
11 months ago run-tests.sh fatal error - last update
11 months ago 701 pass, 4 fail - last update
11 months ago 703 pass, 4 fail - last update
11 months ago 703 pass, 4 fail - Assigned to ankitv18
- 🇮🇳India ankitv18
Will work as per @ptmkenny suggestion and pushed changes required for D11 only rest phpcs and phpstan fixes will be covered separately.
- Merge request !173Issue#3430449: Adding D11 support and fixing the deprecations. → (Merged) created by ankitv18
- last update
11 months ago 709 pass, 2 fail - last update
11 months ago Composer require failure - last update
11 months ago Composer require failure - 🇮🇳India ankitv18
ankitv18 → changed the visibility of the branch 3430449-automated-drupal-11-fixes to hidden.
- last update
11 months ago Composer require failure - Issue was unassigned.
- Status changed to Needs review
11 months ago 12:18pm 4 June 2024 - Status changed to Needs work
11 months ago 12:35pm 4 June 2024 - 🇵🇹Portugal jcnventura
Please use DeprecationHelper in that system_time_zones() call.
The watchdog_exception can simply be changed to use Error::logException directly, as the Error class exists since Drupal 8.9 (see https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Utility%2...)
Don't add drush.services.yml for Drush 13. Drush 12 has deprecated this and it will be removed in 13 (see https://www.drush.org./12.x/commands/ and https://www.drush.org./13.x/commands/).
- last update
10 months ago Composer require failure - 🇮🇳India ankitv18
@jcnventura: As this module currently using 9,10 and 11 so I guess we can't use deprecation helper as this was introduced in 10.1.x and it is helpful when you are checking D10.1 and above please check https://www.drupal.org/node/3379306 →
Now it totally depends upon maintainer to support of Drupal versions only D10 and D11 only then I'll use deprecation helper otherwise version_compare or class_exists is better way to go ahead.
For drush deprecation: this module is still supporting previous versions of drush so I also let this decision on maintainer how they think to go ahead.
cc: @megachriz - 🇳🇱Netherlands megachriz
@ankitv18
I'd like to create one last Drupal 9 compatible release of Feeds (hopefully next week, I'm already busy writing the release notes and see what I want to commit last minute) and then after that Drupal 9 support can be dropped so focus can be on getting Feeds compatible with Drupal 11. - 🇳🇱Netherlands megachriz
I haven't paid attention to the Drush integration, but I think we only would need to support Drush 12 and above? Or maybe Drush 11 too? At least we should be compatible with the latest Drush.
- 🇵🇹Portugal jcnventura
You can see Drush compatibility here: https://www.drush.org./13.x/install/#drupal-compatibility
If you want to drop support for Drupal 9, you can choose to also only support Drush 12 and above. This would simplify the Drush support, as you can then simply drop the drush.services.yml file and move the Drush commands class file to /src/Drush/Commands. See https://www.drush.org./13.x/commands/
- 🇳🇱Netherlands megachriz
Alright, then only support Drush 12 and above it is. I'll leave that to somebody else to get that done (at least for now), so I can focus on getting the last bits done for the upcoming release.
- 🇮🇳India ankitv18
ankitv18 → changed the visibility of the branch project-update-bot-only to hidden.
- Status changed to Needs review
10 months ago 3:50pm 6 June 2024 - last update
10 months ago Composer require failure - Status changed to Needs work
10 months ago 7:27am 7 June 2024 - 🇵🇹Portugal jcnventura
And yet, this line is in the MR:
"drush.services.yml": "^9 || ^10 || ^11 | ^12 || ^13"
Drush 13 will not support the drush.services.yml file (Drush 12 deprecated it). This shouldn't be merged like this.
- Status changed to Needs review
10 months ago 12:43am 9 June 2024 - last update
10 months ago 689 pass, 8 fail This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module → , even with these changes, this module is not yet compatible with Drupal 11.
Currently Drupal Rector, version 0.20.2, cannot fix all Drupal 11 compatibility problems.
Therefore, these changes did not update the
info.yml
file for Drupal 11 compatibility.The compatibility issues that Upgrade Status found after the Drupal Rector fixes were applied are attached to help you resolve them manually.
Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-194493These packages were used to generate the fixes:
- drupal/upgrade_status: 4.3.2
- mglaman/phpstan-drupal: 1.2.11
- palantirnet/drupal-rector: 0.20.2
- last update
10 months ago 689 pass, 8 fail The last submitted patch, 25: feeds.3.x-dev.rector.patch, failed testing. View results →
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- last update
10 months ago Composer require failure - Status changed to Needs review
10 months ago 5:25am 12 June 2024 - 🇮🇳India ankitv18
Considering @jcnventura point at #24 of Drush 13 support, It be would be done in separate issue i.e https://www.drupal.org/project/feeds/issues/3453031 📌 Support Drush 12 and above only Active (already linked to this issue) and for log exception to support BC I've used method_exists and logException method is introduced in D10.1.
cc: @MegaChriz
- last update
10 months ago Composer require failure - Status changed to RTBC
10 months ago 4:10am 14 June 2024 - 🇮🇳India deepakkm
Rebased MR !173 with 8.x-3.x branch. Verified changes locally and looks good to me.
- Status changed to Needs work
10 months ago 4:27am 14 June 2024 - 🇮🇳India deepakkm
There are few deprecation which should be fixed as part of this ticket
Instantiation of deprecated class Drupal\Core\Password\PhpassHashedPassword: in drupal:10.1.0 and is removed from drupal:11.0.0. The password compatibility service has been moved to the phpass module. Use \Drupal\phpass\Password\PhpassHashedPassword instead.
- Status changed to Needs review
10 months ago 4:42am 14 June 2024 - 🇮🇳India ankitv18
There's already a separate issue where all the phpstan fixes are considered. Please check below issue
https://www.drupal.org/project/feeds/issues/3425218 🐛 Fix PHPStan errors Needs work - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - 🇮🇳India ankitv18
@MegaChriz I've noticed you pushed logException Method few days back: https://git.drupalcode.org/project/feeds/-/merge_requests/127/diffs#a56d...
And going through the feeds.services.yml below logger is already there.logger.channel.feeds: parent: logger.channel_base arguments: ['feeds']
In this MR I used direct drupal call using \Drupal::logger('feeds')->error($e) instead of watchdog_exception
For PhpassHashedPassword deprecation I've replaced it with a https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Password%... - Status changed to RTBC
10 months ago 9:46am 14 June 2024 - Status changed to Needs work
10 months ago 12:02pm 14 June 2024 - 🇳🇱Netherlands megachriz
It looks like that some new phpcs issues are introduced with the code changes. We could consider to resolve 🐛 Fix PHPStan errors Needs work first, to also possible catch newly added phpstan issues.
Anyway, needs work. I think that at least tests must pass on Drupal 11 before merging it. Else there would be a risk to release something as D11 compatible while it may still have some incompatibility.
- last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - 🇵🇹Portugal jcnventura
@MegaChriz when you merge this, it might make sense to create a 4.x branch, and to tag a 4.0.0-alpha1 version when you add D11 support. This would allow you to keep adding changes to the 8.x-3.x branch in the case that something critical should happen, and to pivot Drupal 10 and 11 to fully use semantic versions.
- last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - Status changed to Needs review
10 months ago 8:15am 15 June 2024 - 🇮🇳India ankitv18
Updated the MR and enabled the next major pipeline, please review the MR!173
Created new issue to support book and laminas-feed tests and fix all deprecated method introduced in phpunit 10
https://www.drupal.org/project/feeds/issues/3454788 📌 PHPunit Next Major pipeline failure Activecc: @MegaChriz
- 🇳🇱Netherlands megachriz
@MegaChriz when you merge this, it might make sense to create a 4.x branch, and to tag a 4.0.0-alpha1 version when you add D11 support. This would allow you to keep adding changes to the 8.x-3.x branch in the case that something critical should happen, and to pivot Drupal 10 and 11 to fully use semantic versions.
@jcventura
Yeah, I would love to get semantic versioning for this reason, but a few people strongly adviced me to not create a new major version because that would slow down adoption of the new version + it creates an extra hurdle for people who want to upgrade to a new major Drupal version, Drupal 11 in this case.For details, see https://drupal.slack.com/archives/C014CT1CN1M/p1659448352144959
See also https://medium.com/jakob-on-drupal/dont-go-making-major-version-changes-...Anyway, I'm on holiday soon, so I'll probably not be able to commit this shortly - unless I've got so much bad weather on location that I just want to work on Feeds.
- 🇵🇹Portugal jcnventura
@MegaChriz, your module and I do agree with not bumping version numbers needlessly. However, if you're introducing breaking changes, a major bump is justified. And for me, dropping support for Drupal 9 is one such BC break (assuming you're still going to do that as per #16).
Even if the MR is not yet dropping Drupal 9.3, it is a possible easy solution for my comments on the MR. The other possible solution (adding PHP 8 as a minimum) is also a BC-break.
- last update
10 months ago Composer require failure - last update
10 months ago Composer require failure - last update
10 months ago 612 pass, 26 fail This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module → , even with these changes, this module is not yet compatible with Drupal 11.
Currently Drupal Rector, version 0.20.3, cannot fix all Drupal 11 compatibility problems.
Therefore, these changes did not update the
info.yml
file for Drupal 11 compatibility.The compatibility issues that Upgrade Status found after the Drupal Rector fixes were applied are attached to help you resolve them manually.
Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-199781These packages were used to generate the fixes:
- drupal/upgrade_status: 4.3.2
- mglaman/phpstan-drupal: 1.2.11
- palantirnet/drupal-rector: 0.20.3
- last update
10 months ago 612 pass, 26 fail The last submitted patch, 38: feeds.3.x-dev.rector.patch, failed testing. View results →
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- Status changed to Needs review
10 months ago 4:10am 18 June 2024 - Status changed to Needs work
10 months ago 10:00am 18 June 2024 - 🇵🇹Portugal jcnventura
Looking at the update bot suggestion, I think we need to use TimeZoneFormHelper::getOptionsList() as we actually want to see the timezone labels in the form, and not only use the timezone identifiers.
Also, as per #16, let's make this simple and drop support for Drupal 9, and only support ^10.1 || ^11.
- last update
10 months ago Composer require failure - Status changed to Needs review
10 months ago 10:35am 18 June 2024 - 🇮🇳India ankitv18
Thanks @jcnventura,
I have dropped the D9 and used timeZoneHelper as you suggested.
Please review the MR and make it ease for @MegaChriz - last update
10 months ago Composer require failure - 🇳🇱Netherlands megachriz
I've added some remarks. Tests don't pass yet on Drupal 11. I would say that is the minimum requirement for merging this MR. I think that temporary skipping the book tests to get tests pass on Drupal 11 is acceptable, but I think that doesn't count for tests/src/Unit/Feeds/Parser/SyndicationParserTest.php, because the syndication parser is in Feeds itself while the Book target requires an additional module.
There's overlapping with the work that is being done in 🐛 Fix PHPStan errors Needs work . I think it would simplify the work here if that issue is done first. The downside is that it perhaps takes a bit longer to get Feeds Drupal 11 compatible. I'm trying my best though to get 🐛 Fix PHPStan errors Needs work done quickly. My goal is to get Feeds compatible with Drupal 11 at least in dev before July 29. For a new release I'd like to also get 📌 Support Drush 12 and above only Active resolved and having all checks passed on GitLab - if possible.
- 🇮🇳India ankitv18
Thanks @MegaChriz,
I'll do the changes as per the feedback once phpstan fixes are fixed: https://www.drupal.org/project/feeds/issues/3425218 🐛 Fix PHPStan errors Needs work - Status changed to Needs work
9 months ago 2:41pm 17 July 2024 - 🇳🇱Netherlands megachriz
I see that there are the following test failures on D11:
- views.view.feeds_import_logs:display.default.display_options.arguments.feed.default_argument_skip_url
missing schema - Drupal\Tests\feeds\Functional\Feeds\Fetcher\UploadFetcherTest::testImportSingleFile: Error: Call to a member function getItemCount() on null
- Drupal\Tests\feeds\Functional\Feeds\Parser\Form\CsvParserFeedFormTest: Error: Call to a member function getItemCount() on null
- Drupal\Tests\feeds\Functional\Update\
Exception: No suitable core fixture found.
I also see in the PHPStan report that there is one
watchdog_exception()
call left, namely in src/FeedsQueueExecutable.php.So next steps are:
- Figure out what views.view.feeds_import_logs:display.default.display_options.arguments.feed.default_argument_skip_url is, maybe the Views configuration code for the import logs needs to be regenerated?
- Tests in
Drupal\Tests\feeds\Functional\Feeds\Fetcher\UploadFetcherTest
are failing. Figure out why. - Tests in
Drupal\Tests\feeds\Functional\Feeds\Parser\Form\CsvParserFeedFormTest
are failing. Figure out why. - Tests in Drupal\Tests\feeds\Functional\Update, used to test update functions in feeds.install and feeds.post_update.php are failing, probably because it is trying to use a fixture (aka database dump) that is no longer available in Drupal 11. Solution: try to use a different provided fixture.
- Resolve
watchdog_exception()
call in src/FeedsQueueExecutable.php.
- views.view.feeds_import_logs:display.default.display_options.arguments.feed.default_argument_skip_url
- 🇳🇱Netherlands megachriz
Of the test failures, I plan to look first at the Update tests. I've done these before, so I have a good idea how to handle these. If I remember correctly, I've written code to select a fixture based on the current core version. Hopefully I can do these tomorrow or else Saturday.
@ankitv18
If you have time to help on this issue in the next few days, could you look at the failures related to Views first?I've updated the remaining tasks in the issue summary.
Hopefully we can resolve the test failures quickly, only 1 to 2 weeks before Drupal 11.0 is released and it would be nice to have Drupal 11 supported in at least the dev version of Feeds by then. It's probably to late to have it in an actual release as well. When this issue gets resolved, I'd like to have at least two weeks testing the changes on a few live sites before making a release. And preferable including D11 compatible code of Feeds Extensible Parsers and Feeds Tamper too, which we cannot really start on yet before this is resolved.
- 🇳🇱Netherlands megachriz
I fixed the Update tests and a few other tests too. I plan to continue on Saturday. Feel free to work on this issue until that time.
Remaining tests to fix:
- Fix test Drupal.Tests.feeds.Kernel.RevisionableEntityTest testWithMappingToRevisionFields
- Fix test Drupal.Tests.feeds.Kernel.Entity.FeedTest testDispatchImportFinishedEvent
- Fix test Drupal.Tests.feeds.Kernel.Feeds.Target.UserRoleTest testImportWithExistingRole
See also https://git.drupalcode.org/project/feeds/-/pipelines/227854/test_report?...
(not sure if the link remains valid when committing new code.) - Status changed to Needs review
9 months ago 4:33pm 20 July 2024 - 🇳🇱Netherlands megachriz
Tests are passing on D11! I think this is ready for review and testing.
Note that phpstan (next major) is failing, but I think fixing that is out of scope for this issue.
-
MegaChriz →
committed 6ca6ac32 on 8.x-3.x authored by
ankitv18 →
Issue #3430449 by ankitv18, deepakkm, Project Update Bot, MegaChriz,...
-
MegaChriz →
committed 6ca6ac32 on 8.x-3.x authored by
ankitv18 →
- Status changed to Active
9 months ago 11:46am 25 July 2024 - 🇳🇱Netherlands megachriz
I've looked through all the changes and made a few minor changes a few hours ago. The code prior to these last changes have been running 2 to 3 days on four D10 sites and I haven't catched any regressions yet.
So I'm merging this now!
Not creating a new release yet, because I think 3 days is too short for catching regressions. Also, I like to see 📌 Support Drush 12 and above only Active and 📌 PHPunit Next Major pipeline failure Active to be resolved before the next release. And it would be good to test Feeds manually on a D11 site.
But at least by merging this, modules that extend Feeds can be made compatible with D11 too.
Thanks all!
The issue is left open to allow the update bot to post new fixes, should there be any.
- 🇮🇳India ankitv18
@megachriz Saw D11 compatible RC release is out there ~~ now we can close this one?
- 🇳🇱Netherlands megachriz
@ankitv18
I'm not sure, but I think we should best leave it open. Theoritically, there could be new D11 compatibility patches, as said in the issue summary:Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
- 🇮🇳India ankitv18
Hi @megachriz,
There are no new patches by projectBot so I guess we can mark this one fixed