- Issue created by @jonathan1055
- Merge request !34Issue #3405485 Fix prettier warnings in javascript files → (Merged) created by jonathan1055
- last update
over 1 year ago 4 pass - last update
over 1 year ago 4 pass - last update
over 1 year ago 4 pass - last update
over 1 year ago 4 pass - last update
over 1 year ago 4 pass - last update
over 1 year ago 4 pass - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - Status changed to Needs review
over 1 year ago 6:28pm 1 December 2023 - 🇬🇧United Kingdom jonathan1055
This is looking good. I've modified the gitlab pipeline to output a patch of eslint fixes, which I downloaded and applied locally. I have left two eslint chnages unfixed, to demonstrate the process. This is not for merging yet.
This change to the eslint job might also get added into the standard gitlab_pipelines file, for use by others.
- last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - First commit to issue fork.
- last update
over 1 year ago Build Successful - Status changed to Needs work
over 1 year ago 9:39pm 7 December 2023 - 🇬🇧United Kingdom jonathan1055
Ah, that was for investigation only. Sorry, this was not really 'ready for review'. The commit message does say "(temp) remove customised .eslintrc config, so that we inherit from core". I wanted to ask you about the customisations and what was actually different between the recently added .eslintrc file the config that would be inherited from core if that file does not exist.
When I started on generating a patch for the the fixable eslint problems, I nocticed that the "fixes" for .yml files were wrong, and that some .yml errors were not reported in the first place. With the customised .eslintrc removed the .yml fixes were all back to as expected. But we got more .js problems. So clearly the customisations you have added in .eslintrc are good to keep, but we also need to fix it for .yml errors.
- last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - Status changed to Needs review
over 1 year ago 4:18pm 5 January 2024 - 🇬🇧United Kingdom jonathan1055
Yes, lets drop drupalCI. Just delete the file, I presume?
- last update
over 1 year ago 3 pass, 1 fail - last update
over 1 year ago 3 pass, 1 fail -
smustgrave →
committed ff0b2283 on 4.x authored by
jonathan1055 →
Issue #3405485 Fix prettier warnings in javascript files
-
smustgrave →
committed ff0b2283 on 4.x authored by
jonathan1055 →
- Status changed to Fixed
over 1 year ago 6:14pm 5 January 2024 - 🇬🇧United Kingdom jonathan1055
Three greens. Excellent!
I've worked a bit on the gitlab_templates project, so I just happened to know about the defaults. For info, the defaults can be checked in gitlab_templates includes/include.drupalci.main.yml
If a job does not specify any
allow_failure
the the implicit value isfalse
, which means if the job gives a non-zero return code it will show as red. The defaults for phpcs, phpstan, stylelint, eslint, phpunit (next minor) and phpunit (next major) have been set totrue
so that if any of these jobs return a non-zero code they are didsplayed as a amber warning, not a red failure. The main phpunit job has no allow_failure, so the implicitfalse
is in effect, meaning that a phpunit job failure would be shown as red.All of these can be overridden by a contrib project's .gitlab-ci.yml file, and it is totally the choice of the maintainers how they wish to display job failures - either amber warning or red failure. In module_filter we set some of the jobs to
allow_failure: true
when we knew about the style warnings, so that if that was the only thing wrong then the overall test pipeline would be amber not red. This meant that if we ever saw a red it would mean something new or more serious had happened which needed looking at. But now, we have fixed the style jobs, it is good to put them toallow_failure: false
so that we are immediately alerted if a new coding standard or style problem is discovered. Automatically closed - issue fixed for 2 weeks with no activity.