Created on 19 June 2024, 7 months ago
Updated 1 July 2024, 7 months ago

Problem/Motivation

Gitlab pipelines are new thing to me, but to me it seems we have generic issue with it in this project. Click any issue that has MR and see that it's red.

Steps to reproduce

https://git.drupalcode.org/issue/permissions_by_term-3446865/-/pipelines...
https://git.drupalcode.org/issue/permissions_by_term-3308318/-/pipelines...

Proposed resolution

Fix the issue, maybe just bump up composer version. This might be of help https://www.drupal.org/project/crm/issues/3393439 📌 Pipeline failing Fixed

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.1

Component

Code

Created by

🇪🇪Estonia hkirsman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @hkirsman
  • Merge request !50Resolve #3455690 "Fix pipelines" → (Open) created by hkirsman
  • Pipeline finished with Failed
    7 months ago
    Total: 217s
    #202902
  • Pipeline finished with Failed
    7 months ago
    Total: 228s
    #202920
  • 🇪🇪Estonia hkirsman

    Ok, I understand now that there's .gitlab-ci.yml file in this repo and that configures pipelines. There we have enabled both 9.x and 10.x testing, but even if 9.x would have some issues, why is 10.x failing? It works fine in local?

  • 🇪🇪Estonia hkirsman

    Tests started failing here

    https://git.drupalcode.org/project/permissions_by_term/-/commit/433606fd...

    There the .gitlab-ci.yml were edited.

  • First commit to issue fork.
  • 🇩🇪Germany marcoliver Neuss, NRW, Germany

    Hi @hkirsman!

    I finally found the time to look into this.

    I played around with the failing tests a bit.

    First of all, I decided to try and disable testing for previous Core versions.

    Then I updated the failing tests. They're passing now. I also updated two constant uses again, though I'm not sure about this. Basically, that change would render this issue fork only compatible with Drupal >= 10.3.

    So I might roll that back again so we can stay compatible with 10.2.

    It would be cool if you could give the version from the issue fork a quick testing spin to see if I accidentally broke anything.

  • 🇩🇪Germany marcoliver Neuss, NRW, Germany

    Never mind my last comment about the versions, it was a long day.

    Reverted the last commit about the request constants. This will cause problems only when we reach Drupal 11, in which case we should probably spin-off a new major version of the module anyway.

  • Pipeline finished with Success
    7 months ago
    Total: 165s
    #209605
  • 🇪🇪Estonia hkirsman

    While at this, let's try to fix some coding issues being reported and maybe also include tool like GrumpPHP so we wouldn't see the errors only in Gitlab, but already when committing code?

    I ran the code through phpcbf and fixed lot of issues automatically. I've also include comments where needed, but there are still comments missing from in many tests. I'll add more fixes later.

    https://git.drupalcode.org/project/permissions_by_term/-/merge_requests/50

    Code Quality scans found 3 new findings and 15 fixed findings.
    Test summary: 600 failed, 2 errors and 55 fixed test results, 731 total tests

    ->

    Code Quality scans found 4 new findings and 16 fixed findings.
    Test summary: 337 failed, 2 errors and 55 fixed test results, 475 total tests

    https://git.drupalcode.org/issue/permissions_by_term-3455690/-/jobs/1969500

    A TOTAL OF 593 SNIFF VIOLATIONS WERE FOUND IN 48 SOURCES
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 35 MARKED SOURCES AUTOMATICALLY (288 VIOLATIONS IN TOTAL)

    ->

    A TOTAL OF 328 SNIFF VIOLATIONS WERE FOUND IN 20 SOURCES
    -----------------------------------------------------------------------
    PHPCBF CAN FIX THE 7 MARKED SOURCES AUTOMATICALLY (51 VIOLATIONS IN TOTAL)
  • 🇪🇪Estonia hkirsman

    @marcoliver I don't see this file used anywhere so can I remove it https://git.drupalcode.org/issue/permissions_by_term-3455690/-/blob/3.1.... ?

  • Pipeline finished with Success
    7 months ago
    Total: 286s
    #212785
  • 🇪🇪Estonia hkirsman

    I've add another batch of coding standard fixes. For this I've written local tool to run the same tests https://github.com/wunderio/drupal-gitlab-local-pipelines It's using https://github.com/phpro/grumphp for running the scans - you can run them on all code base and it triggers on the files being commited. For now I haven't added this as dependency. I wasn't 100% it really does scan exactly the same as there was too much to check, but now near the end it is clear that it's 1:1 for phpcs. Other checkers can be added later, any maybe in some other tasks.

  • Pipeline finished with Success
    7 months ago
    Total: 760s
    #212826
  • 🇪🇪Estonia hkirsman

    We have green phpcs checks!

Production build 0.71.5 2024