- Assigned to wim leers
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Given that this is such a nightmare to debug, I figured β¦ why not switch to GitLab CI?
So I first wanted to give it a try on a simpler project β¦ and I succeeded: #3334243-18: [PP-1] CDN 4.x requires PHP >=8.1 but composer does not respect it due to bug in d.o composer facade β π
I know we chose not to go this route in π± Determine if we should use GitLab CI Closed: duplicate , but β¦ maybe we can use it just for
phpcs? π€ - @wim-leers opened merge request.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Hm β¦ based on https://git.drupalcode.org/help/ci/pipelines/merge_request_pipelines.md#..., it seems that I'm unable to trigger Pipelines, but @tedbow has been triggering them (probably unknowingly) for a long time: https://git.drupalcode.org/project/automatic_updates/-/pipelines.
- @wim-leers opened merge request.
- Assigned to tedbow
- Status changed to RTBC
almost 3 years ago 4:35pm 30 January 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
So this is caused by #3324540: PHPCS fails on Drupal 10 & 9 β , which means a global
phpcsis being run if the--drupalciflag is passed. But we've only been patching the logic for runningphpcson the list of changed files. So we were still patching the logic that no longer was being run! πRather than testing only the changed files, testing all files with
phpcsalways is actually good, especially because it's plenty fast for this project anyway. But then in order to do that rather than scanning the entirety of Drupal core instead of just our project needs one small tweak. - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
@tedbow please merge
3328742-wimand close all other merge requests. If I try to close them, I get a 404β¦ - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
FYI, output for the "DONE!" commit:
FILE: ...ontrib/automatic_updates/src/AutomaticUpdatesServiceProvider.php ---------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ---------------------------------------------------------------------- 15 | ERROR | [x] Opening brace should be on the same line as the | | declaration | | (Drupal.Classes.ClassDeclaration.BraceOnNewLine) 22 | ERROR | [x] There should be no white space after an opening | | "(" | | (Drupal.WhiteSpace.OpenBracketSpacing.OpeningWhitespace) ---------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- Time: 605ms; Memory: 4MBβ https://www.drupal.org/pift-ci-job/2580901 β
π proves that
phpcsis once again working π -
tedbow β
committed 73910645 on 8.x-2.x authored by
Wim Leers β
Issue #3328742 by Wim Leers, tedbow, yash.rode: phpcs stopped working...
-
tedbow β
committed 73910645 on 8.x-2.x authored by
Wim Leers β
- Status changed to Fixed
almost 3 years ago 4:55pm 30 January 2023 - πΊπΈUnited States tedbow Ithaca, NY, USA
A promised only for core-mvp, critical issues
Thanks @Wim Leers π
Automatically closed - issue fixed for 2 weeks with no activity.