Closed (fixed)
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2019 at 07:15 UTC
Updated:
15 May 2020 at 09:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sahana _n commentedAdded New core version requirement key in info.yml file, please review
Comment #3
jonathan1055 commentedHi Sahana_N,
Thanks for this. However I don't know if we can add
core_version_requirement: ^8 || ^9yet while the module still has code which is probably going to be removed in D9.I know that #3035104: [meta] Remove deprecated code flagged by @trigger_error messages for Drupal 9 compatibility shows we have no deprecated code, but there are still things to do on #3042677: Drupal 9 Deprecated Code Report for Scheduler before we can say we are ready for Drupal9
Or maybe I have mis-understood the meaning of the new 'core_version_requirement' feature.
Comment #4
chr.fritschLet's add the core_version_requirement key to all info files.
Comment #5
chr.fritschArgg...
Comment #6
alexpottTest modules don't need a core or core_version_requirement since #3096609: Allow contrib test modules to not need a core or core_version_requirement key landed in 8.8.x.
Comment #7
chr.fritschOk, I removed the changes in the test modules and kept the version constraints for scheduler and scheduler_rules_integration
Comment #8
jonathan1055 commentedThanks @alexpott.
@chr.fritshc, your patch in #5 had
^8.7.7 || ^9but in #7 you have changed it to^8 || ^9. Please can you explain the reasoning/benefit of one vs the other? Thanks.Comment #9
alexpott@chr.fritsch you can remove the core constraint from the test modules. This might affect 8.7.x testing... but /shrug not sure that matters too much it's in security support only.
Comment #10
chr.fritsch@jonathan1055 With #5 the minimum required version of core is 8.7.7, with #7 you can still use core 8.5 like it is currently.
Comment #11
chr.fritschLet's try what @alexpott suggested
Comment #12
chr.fritschSo, I would use #7 for now. We can remove the core key later from the test modules when 8.7 is not longer supported at all.
Comment #13
jonathan1055 commentedThanks for the answer in #10 - that is what I thought it was, but good to have it confirmed.
Yes I agree we'll use the version in #7 and keep the 8.7 tests running. Easy to change that when 8.8 is the lowest Core version.
One point though - I am sure some time previoously when testing this manually I had an error saying words to the effect "You should have 'core' or 'core_version_requirement' but not both". Not sure where that was created. It is not via coding standards as that output is clean. Also it does not seem to affect d.o. testing.
Comment #14
jonathan1055 commented... or as there is currently a restriction on minimum core 8.5 should we use
^8.5 || ^9?Comment #15
chr.fritschI think you get that message when you have something like
but not when you have
Comment #16
alexpottYeah you need to start from ^8.7.7 - cause that's when core_version_requirement was added. Imo that's fine here. I'd drop 8.7 testing on https://www.drupal.org/node/3292/qa rather than having to do things multiple times. Cause 8.7.x is not going to change. But hey that's me. If you don't want to do that you need to do #5 so you can test on D9.
Comment #17
chr.fritschCould we get this done, please?
Comment #18
jonathan1055 commented@chr.fritsch
I just re-tested your patch #11 and it does not work in core 8.7. So can we go with patch #7? Would this satisfy your need to install and test at core 9.x?
Comment #19
chr.fritschYes, you can go with #7
Comment #21
chr.fritschDamn, now we missed the testing modules...
Comment #22
chr.fritschWith #21 applied, also the scheduler_content_moderation_integrations tests for D9 get green.
See https://github.com/thunder/scheduler_content_moderation_integration/runs...
Comment #23
jonathan1055 commentedYes that was by design, see #6, #7, #12, #18, #19
But I can add them back with patch #21 if we need that.
Comment #24
chr.fritschYes, please commit #21
Comment #26
jonathan1055 commentedDone.
Now that you have abandoned Travis testing on SCMI it means that you are not running the Scheduler tests alongside SCMI patches. This has proved useful in the past, when SCMI changes worked in your tests but failed in the Scheduler main tests. Are there any plans to add Scheduler's main tests to your new testing set-up?
Comment #27
chr.fritschThank you.
There are no patches anymore.
And running the scheduler module tests with the SCMI module laying next to it doesn't change anything, because all the scheduler tests don't enable SCMI.
Another question: Are you planning to create a new release?
Comment #29
jonathan1055 commentedSorry for the second commit. I just changed the commit message, but could not rebase the branch cleanly for d.o. (maybe it can be done but I was not doing it right) so had to merge, which produced the odd repeated commit, but did have the altered text in the message.
Comment #30
jonathan1055 commentedComment #32
jonathan1055 commented