- Issue created by @jonathan1055
- 🇪🇸Spain fjgarlin
Good suggestion. Yeah, let's go ahead with
_MKDOCS_EXTRA
as that's the tool we are using for that job. - Merge request !345#3517992 Add _EXTRA vars for PHPStan, Nightwatch and MkDocs → (Merged) created by jonathan1055
- 🇬🇧United Kingdom jonathan1055
First commit pushed. We could use the downstream pipelines to test PHPStan and Nightwatch, but we do not have a Pages job yet - will be done in 📌 Add documentation .md files to test the pages job Active
I did notice that the variables.yml file has lots of words in the descriptions in backticks implying "code" formatting. These do not get rendered as anything special in the Run Pipeline UI form, see attached. Is there anywhere else that this file is displayed/rendered where those backticks are actually useful? Or maybe they signify something even without any different rendering.
- 🇪🇸Spain fjgarlin
Remember that we can pass variables to the downstream pipelines from the current MR, so you can test the pages argument with "keycdn".
The MR looks good already. Once we have a test for each we can set RTBC.
Downstream pipelines: https://git.drupalcode.org/issue/gitlab_templates-3517992/-/pipelines/46...And no reason for the backticks in the "description" values other than we did it like that, but happy to change to double quotes if needed. We have yml validation so it should be safe to do. Tho there are a lot of places where we use them, so maybe on a separate follow-up issue to isolate features.
- 🇬🇧United Kingdom jonathan1055
Remember that we can pass variables to the downstream pipelines
Yes absoluetly, I'd not forgotten that. But I had forgotten that KeyDCN has a pages job, so thank's for the tip.
Regarding the backticks, I was thinking we would just delete them if not serving any rendering process. But if you still want quotes of some sort around those words then let's leave them as backticks, as they are clean an unobtrusive, and they do imply a 'code' word even if not rendered. Double-quotes would have a different kind of meaning.
- 🇬🇧United Kingdom jonathan1055
I tried the folllowing, to add the EXTRA variable just for one variant
'→ GTD D10 Plus': extends: .downstream-base trigger: strategy: depend project: project/gitlab_templates_downstream branch: d10-plus 'phpstan (max PHP version)': variables: _PHPSTAN_EXTRA: --debug 'nightwatch (max PHP version)': variables: _NIGHTWATCH_EXTRA: --verbose
But the pipeline produced the following error
jobs:→ gtd d10 plus config contains unknown keys: phpstan (max php version), nightwatch (max php version)
Oh well, it was a guess but I had a hunch it would not work. So it means setting the variable for all variants (unless you know of a better syntax?)
- 🇬🇧United Kingdom jonathan1055
PHPStan
--debug
works
https://git.drupalcode.org/project/gitlab_templates_downstream/-/jobs/49...Nightwatch
--verbose
works
https://git.drupalcode.org/project/gitlab_templates_downstream/-/jobs/49...Could you trigger the KeyCDN pipeline please?
- 🇪🇸Spain fjgarlin
Yeah, I think it's only possible to pass down global variables, not per job.
KeyCDN: https://git.drupalcode.org/issue/gitlab_templates-3517992/-/pipelines/46...
The MR looks good to me and the documentation additions are great too. Marking RTBC unless you were expecting to run any more tests.
- 🇬🇧United Kingdom jonathan1055
Thanks for running KeyCDN, the --verbose works as intended.
I've just updated the Pages doc page, probably after you marked this RTBC. Here's the updated one. I know that the changes to the documentation are more than just adding this extra variable. I have been making notes on each documentation page, and when a change is needed I've been bringing them into alignment with a standard style. I will put more details in the documentation issue summary.
I am guessing that we do not want to have these three
_EXTRA
variables set permanently for the downstream pipeline definitions, so I will remove them. - 🇬🇧United Kingdom jonathan1055
I've removed the test values for the downstream jobs. No more tests, so this is still RTBC if you are ok with the Pages doc changes.
-
fjgarlin →
committed c5df16e2 on main authored by
jonathan1055 →
Issue #3517992 by jonathan1055, fjgarlin: Add _EXTRA vars for PHPStan,...
-
fjgarlin →
committed c5df16e2 on main authored by
jonathan1055 →
- 🇪🇸Spain fjgarlin
It looks perfect. Thanks for bringing these variables for these jobs. Merged!
Automatically closed - issue fixed for 2 weeks with no activity.