- Issue created by @jurgenhaas
- First commit to issue fork.
- @fjgarlin opened merge request.
- 🇪🇸Spain fjgarlin
Still to do:
- Document the new job so it appears here: https://project.pages.drupalcode.org/gitlab_templates/jobs/
- Discuss the option to turn this new one on/off in isolation or just use the same derived rules as the other jobs - 🇪🇸Spain fjgarlin
The MR can be tested in projects already regardless of the remaining tasks: https://project.pages.drupalcode.org/gitlab_templates/info/testing-mrs/
- 🇬🇧United Kingdom jonathan1055
Thank you for adjusting the order as per this comment → . I saw the first commit and was going to ask for that, but you did it anyway.
I think in principle we should keep it simple and the default will be the same as in the existing rules, without a separate variable. The only concern is that it may lead to phpstan failures where things have moved forward (eg. new rules, new phpstan version) which no longer match with Previous Major. Or maybe it will be OK as the PHPStan version will not change for Drupal 10. Happy to go with this initially, and if we get lots of complaints then we can do a follow-up.
- 🇪🇸Spain fjgarlin
Cool. My thinking was the same here. Keep it simple and see if we need to make any adjustments.
I assume that the version of Phpstan brought will match the correct one for the Drupal version being checked.
In that case, the MR would be fully ready. I triggered some downstream pipelines here: https://git.drupalcode.org/project/gitlab_templates/-/pipelines/553793
- 🇬🇧United Kingdom jonathan1055
I had edited the above comment #6 to add the versions before I saw #7
Tested on Scheduler and all the PHPStan jobs passed
https://git.drupalcode.org/issue/scheduler-3445052/-/pipelines/553870I will also test the OPT_IN variable, but the code looks correct.
- 🇬🇧United Kingdom jonathan1055
Tested with
OPT_IN_TEST_PREVIOUS_MAJOR: 0
https://git.drupalcode.org/issue/scheduler-3445052/-/pipelines/553898Tested with
SKIP_PHPSTAN: 1
https://git.drupalcode.org/issue/scheduler-3445052/-/pipelines/553902
We still get the composer jobs, even though every lint and testing job hasSKIP: 1
. But that's how it is, not any fault of this MR.RTBC
-
fjgarlin →
committed 1bea2bb1 on main
Issue #3537288 by fjgarlin, jonathan1055, jurgenhaas: Add a task for...
-
fjgarlin →
committed 1bea2bb1 on main
- 🇩🇪Germany jurgenhaas Gottmadingen
Wow, this is a high-speed turn-around. Thank you so much. Very grateful for this improvement.
- 🇪🇸Spain fjgarlin
It was an easy one and probably one that should have been from the beginning, but it's hard to anticipate the needs before they happen.
- 🇬🇧United Kingdom jonathan1055
I wouldn't say that "It should have been in at the beginning ..." as I thought the original design was only to run linting/code quality on current and future versions, and not past versions. I'm pleased we have added it now though.
- 🇪🇸Spain fjgarlin
Yeah, that was probably the correct thinking when D10 was the current and D11 was still under development (current + future). But as we have now D11 in addition to D10 being supported, the "current" part gets a bit blurry, so it makes sense now to do current + previous.
We are all in the same page in any case. Great addition!