Closed (fixed)
Project:
Scheduler
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Mar 2022 at 14:56 UTC
Updated:
5 Jan 2023 at 10:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
heddnComment #3
heddnOK, so it falls on its face w/ D10 because of dependencies that don't (yet) support D10. But that doesn't need to keep this project from preparing for D10, right?
Comment #4
jonathan1055 commentedThanks for starting this off. Yes we can prepare for D10.
Because Scheduler 2.0 will be compatible with D8 and D9 (and I'm not dropping D8 support any time soon) we need to work out what release or version D10 compatibility will come in. I don't think there is any great hurry to commit this yet.
Comment #5
heddnIt this now outdated w/ #3311425: Replace warning for no entity type with an explanation in the menu, #3042677: Drupal 9 Deprecated Code Report for Scheduler, and #3293936: PHP8.1 compatibility?
Comment #6
jonathan1055 commentedYes you are right that the patch needs a re-roll.
#3042677: Drupal 9 Deprecated Code Report for Scheduler is not related, there was no recent commits on that issue, I just closed it as fixed.
#3311425: Replace warning for no entity type with an explanation in the menu is not related, there is no conflict with this patch.
However #3289475: Automated Drupal 10 compatibility fixes - Scheduler 2.x is related, as that is where the deprecation fix commits originated from.
The only other Drupal 10 deprecation remaining at this point is
#3312069: ModuleHandlerInterface::getImplementations() is deprecated in 9.4
Comment #7
jonathan1055 commentedI have created a branch and pushed everyting from your initial patch except the fixes that have already been done. This won't run at D10 yet, but we should see the same problems as you found in the patch test. Then we can go from there.
Comment #8
jonathan1055 commentedThere's something up with gitlab, the MR does exist https://git.drupalcode.org/project/scheduler/-/merge_requests/60 but it is not being shown at the top of this issue. Signing in to gitlab fails atm, so maybe that's the problem.
Comment #10
jonathan1055 commentedRunning with PHP8.1 is required for D10, of course. So ignore the PHP7.4 test run.
Devel Generate 5.x is required for D10
Workbench Moderation and Workbench Moderation Actions do not exist for D10 yet, and probably never will. So we might need to drop testing those at D10 but maintain the tests somehow when running D9. Anyway, that's for later.
Comment #11
jonathan1055 commentedThe 9.4 test will fail because I dropped the two Workbench Moderation modules.
Comment #12
jonathan1055 commentedRemoving the related 'automated' issue as that is a child issue now.
Comment #13
heddnSeems some of the remaining D10 failures are related to https://www.drupal.org/node/3000490
Comment #14
jonathan1055 commentedYes, see my comment in #6 and the linked issue.
Comment #15
heddnShall we create a combined patch to see if there is anything else hidden behind it?
Comment #16
jonathan1055 commented"a combined patch"
I'm not sure what you mean, as there is no patch on that other issue. I have run the full test suite on Travis with deprecations not suppressed, and there are no other deprecations listed in the Scheduler code.
Testing at D10 will mean we have to drop testing with workbench_moderation because that module does not yet have a D10 version (and is unlikely to, given that content moderation is now in core). But the scheduler 2.x branch can still support workbench_moderation, so we could conditionally include the workbench tests when testing at D9 only.
Comment #18
chandu7929 commentedI think combine patch means, having all issue fix here in one MR and use patch https://git.drupalcode.org/project/scheduler/-/merge_requests/60.patch to test overall D10 readinesses.
Comment #20
ankitv18 commentedComment #21
rajeshreeputraReviewed and tested, this works best with MR created in issue #3312069, hence RTBC.
Comment #22
jonathan1055 commentedIt is not RTBC when there are test failures. This is the parent issue for D10 compatibility so it will only be completed when all the child issues are done. The merge request on this issue (MR60) makes the version and requirements changes to allow testing at D9 and D10 to show the current state of the work.
Comment #23
jonathan1055 commentedFollowing the fixed issues:
#3312069: ModuleHandlerInterface::getImplementations() is deprecated in 9.4
#3313848: Specify accessCheck(TRUE/FALSE) in entity queries
#3314267: Workbench Moderation tests cannot be run at D10
we have just one problem left to solve:
#3314158: Update javascript default time to use core/once for D10
Comment #24
lisa.rae commentedComment #25
vishalkhode commentedHi @ jonathan1055
Looks like all CI is passing with Drupal 9, 10 etc. Any plan for making this merge back to 2.x-dev and next RC or Stable release ?
Comment #26
jonathan1055 commentedTemporary change to have
suppress-deprecations: falsein the three phpunit runs. Just as final check before commit.Comment #28
jonathan1055 commentedMerged and Fixed. Thank you all for your contributions.
I need to work on one other Scheduler issue and will then release 2.0-rc6. Hopefully this will have no problems, then Scheduler 2.0 will follow in a couple of weeks.
Comment #29
jonathan1055 commentedWeirdly, after the commit, the 2.x branch test fails at D10 with composer requirements failure. From the log we have:
But the workbench_moderation modules have been deleted from the project's composer.json. That was done in an earlier commit. The MR branch ran cleanly at D10 so I do not know why it is still trying to load those modules.
Comment #31
jonathan1055 commentedFollowing the above commit in #30 the branch test now passes at D10. The workbench_moderation dependencies were still in scheduler.info.yml and it is a quirk of how drupalci re-evaluates changed dependencies on patch tests and MRs - if composer.json is changed then it is respected and anything from .info.yml is ignored. But when a branch test is run the dependencies from both composer.json and .info.yml are amalgamated. This is why the MR passed at D10 but after committing, the branch test failed.
Comment #32
jonathan1055 commentedThis issue is marked Fixed (and will become closed) as all known work is done as far as we know. However the two automated bot issues should remain open in case they find anything new.
Comment #33
jonathan1055 commentedI have released 2.0.0-rc6 which includes full Drupal 10 compatibility.
Providing there are no problems reported I will release Scheduler 2.0.0 in the week starting 7th November (two and half weeks after rc6)
Comment #35
jonathan1055 commentedFor info, I am also working on Drupal 10 compatibility for the 8.x-1.x branch
#3331246: Drupal 10 compatibilty for Scheduler 8.x-1.x