- Issue created by @bbrala
- Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - @bbrala opened merge request.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - π¬π§United Kingdom longwave UK
I also found
stylelint-formatter-gitlab
over in π Add stylelint-junit-formatter to package.json Needs review , happy to merge that issue with this one. - πΊπΈUnited States cmlara
Linking the related feature request for this to be enabled in Contrib templates.
If these were to be installed as part of cores setup it would likely make contrib testing easier too.
- last update
over 1 year ago Custom Commands Failed - Status changed to Needs work
over 1 year ago 6:20pm 14 September 2023 - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - @bbrala opened merge request.
- last update
over 1 year ago 30,158 pass - Status changed to Needs review
over 1 year ago 7:44am 15 September 2023 - π³π±Netherlands bbrala Netherlands
Postponed on β¨ [PP-1] Move Gitlab linting steps to main job Active
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 30,158 pass - last update
over 1 year ago 30,161 pass - last update
over 1 year ago 30,161 pass - π¬π§United Kingdom catch
No substantive review but adding screenshots, what a difference from 'build successful' or 'custom commands failed'.
- π³π±Netherlands bbrala Netherlands
Updated is.
Alsl added screenshot of the mr overview page, that already shows the cs issues also.
- πΊπΈUnited States dww
This is fantastic, thanks! Hope to review the code ASAP.
- π¬π§United Kingdom longwave UK
I think we should add the dependencies to composer.json and package.json.
- Status changed to Needs work
over 1 year ago 5:47pm 16 September 2023 - π¬π§United Kingdom longwave UK
There are some other bits we can clean up now we are not providing junit output.
- last update
over 1 year ago 30,161 pass - Status changed to Needs review
over 1 year ago 7:09pm 16 September 2023 - last update
over 1 year ago Custom Commands Failed - π¬π§United Kingdom longwave UK
Dependency evaluation; all these are dev dependencies that do a single small task of converting tool output to a format GitLab can read, none of this is needed at runtime and will in effect only be executed on GitLab.
micheh/phpcs-gitlab
Release cycle: two releases in 2020, none since; both the plugin and the GitLab output format are stable and seemingly require no maintenance.
Security policy: none
Maintainer: Michel Hunziker https://github.com/micheh
eslint-formatter-gitlab
Release cycle: major releases approximately once a year, follows strict semver and updates when NodeJS is updated.
Security policy: none
Maintainer: Remco Haszing https://gitlab.com/remcohaszing
stylelint-formatter-gitlab
Release cycle: three releases in four years
Security policy: none
Maintainer: Leonid Meleshin https://gitlab.com/leon0399
- last update
over 1 year ago 30,161 pass, 1 fail - π¬π§United Kingdom catch
Needs a cspell change but otherwise looks good. Presumably adding this in the main yarn build will help with caching on gitlab a bit too.
- last update
over 1 year ago 30,164 pass - Status changed to RTBC
over 1 year ago 1:13pm 18 September 2023 - π¬π§United Kingdom catch
Looks great to me. Going to make a massive difference to contributor experience.
- Status changed to Downport
over 1 year ago 1:33pm 19 September 2023 - π¬π§United Kingdom catch
Committed/pushed to 11.x, thanks!
This doesn't cherry-pick cleanly to 10.1.x due to the yarn.lock changes - we'll need to decide whether to backport it or have it as 10.2.x-only. Might be better to backport in order to keep the yaml in sync so moving back for now.
Added the dependency evaluation to the issue summary.
- π³π±Netherlands bbrala Netherlands
Yay it's in!
Backport will be a good idea imo. Not sure what the besta pproach for that would be though.
- π«π·France andypost
It caused regression in CI
stylelint
andeslint
jobs (which are using to override variables) are using PHP 8.1 image- https://git.drupalcode.org/project/drupal/-/jobs/104537
- https://git.drupalcode.org/project/drupal/-/jobs/104535
vs
- https://git.drupalcode.org/project/drupal/-/jobs/104536
- https://git.drupalcode.org/project/drupal/-/jobs/104538 - Status changed to Needs work
over 1 year ago 10:01pm 20 September 2023 - π«π·France andypost
I mean the following section resetting
_TARGET_PHP
variable+ variables: + ESLINT_CODE_QUALITY_REPORT: ../eslint-quality-report.json
- πͺπΈSpain fjgarlin
Correct, it's completely overriding this section:
.default-job-settings: &default-job-settings-lint ... variables: _TARGET_PHP: "8.2" _TARGET_DB: "mysql-8"
We could just add
ESLINT_CODE_QUALITY_REPORT
andSTYLELINT_CODE_QUALITY_REPORT
to thedefault-job-settings-lint
template and remove those overrides from'π§Ή CSS linting (stylelint)':
and'π§Ή JavaScript linting (eslint)':
- π¬π§United Kingdom longwave UK
I think we should not set those variables at all, and use the default location; the docs for both packages imply the variable is optional.
- last update
over 1 year ago 30,168 pass - @longwave opened merge request.
- Status changed to Needs review
over 1 year ago 9:58am 21 September 2023 - πͺπΈSpain fjgarlin
Even better! Keeping an eye on the pipeline. If it works RTBC for the changes from my side.
- last update
over 1 year ago 30,168 pass - π¬π§United Kingdom longwave UK
I thought the code didn't take the working directory into account, but it appears that it does, so trying without the
export
to see if autodetection does work. - last update
over 1 year ago 30,168 pass - πͺπΈSpain fjgarlin
stylelint-quality-report.json: found 1 matching artifact files and directories
andeslint-quality-report.json: found 1 matching artifact files and directories
and the images are the php-8.2with the changes in the MR. The only thing now is removing the
KUBERNETES_CPU_REQUEST
as this will be fixed upstream and is not needed in this MR.RTBC when that line goes away.
- last update
over 1 year ago 30,168 pass - π¬π§United Kingdom longwave UK
Reverted, this may fail on GitLab CI because of the (unrelated) runner issue.
- π³π±Netherlands bbrala Netherlands
We can inline, but i've looked at this also in another issue and we should probably decouple the vars. I'll search for my solution
Somethign like:
.default-job-variables: &default-job-variables-lint _TARGET_PHP: "8.2" _TARGET_DB: "mysql-8" .default-job-settings: &default-job-settings-lint interruptible: true allow_failure: false variables: <<: *default-job-variables-lint image: name: $_CONFIG_DOCKERHUB_ROOT/php-$_TARGET_PHP-apache:production rules: - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_ROOT_NAMESPACE == "project" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
variables: <<: *default-job-variables-lint STYLELINT_CODE_QUALITY_REPORT: ../stylelint-quality-report.json
That should allow merging normally.
But the quick fix is still just the export inline.
- π³π±Netherlands bbrala Netherlands
I committed that in π Investigate realistic resource requests for core jobs Active , but haven't run the pipeline yet.
- π¬π§United Kingdom longwave UK
We don't even need the export inline, both packages correctly autodetect the path as seen in the last-but-one successful run.
- Status changed to RTBC
over 1 year ago 11:17am 21 September 2023 - πͺπΈSpain fjgarlin
Yup, RTBC based on that indeed. Lines aren't needed at all.
- Status changed to Downport
over 1 year ago 5:55pm 21 September 2023 - π¬π§United Kingdom catch
Committed/pushed to 11.x, thanks! Leaving open for backport again.
- Status changed to Fixed
about 1 year ago 7:08pm 13 December 2023 - π¬π§United Kingdom catch
10.2.x was branched since this landed, and 10.1.x is security-only, so we can just leave this in 10.2.x
Automatically closed - issue fixed for 2 weeks with no activity.