Automated testing: Configure GitLab CI

Created on 6 January 2025, 3 months ago

I found some helpful documentation on the topic: Documentation on Drupal.org: GitLab CI .

Then, found the config file template:
https://git.drupalcode.org/project/gitlab_templates/-/blob/main/gitlab-c...

and then searched the entire DO project base:
https://git.drupalcode.org/search?group_id=2&scope=blobs&search=Gitlab-c...

which led to a relevant example: 📌 Configure GitLab CI Fixed , for the YouTube Field module, which seems to have a reasonably good user base and checked its pipeline page, see:
https://git.drupalcode.org/project/youtube/-/pipelines
See code file: https://git.drupalcode.org/project/youtube/-/blob/2.x/.gitlab-ci.yml

Work expected:

Transition the project to use GitLab CI pipelines instead of DrupalCI, to provide similar automated testing conditions: PHP, DB, Core versions, branches, triggers on commits, patches susbmitted in tickets, etc...

1 - The "first step is to add a .gitlab-ci.yml file to the root of the project."

2 - Configure the Automated testing pipelines on GitLabCI at:
https://git.drupalcode.org/project/login_switch/-/pipelines
See existing tests configurations on modules's current automated testing page on DO.
 

Feel free to let us know if you have any suggestions, comments, or feedback on this ticket or the project in general, we would be glad to help and provide more information.
Thanks in advance!

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France dydave

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

Merge Requests

Comments & Activities

  • Issue created by @dydave
  • Pipeline finished with Failed
    3 months ago
    Total: 141s
    #387803
  • Pipeline finished with Failed
    3 months ago
    Total: 144s
    #387831
  • Pipeline finished with Failed
    3 months ago
    Total: 152s
    #387838
  • Pipeline finished with Failed
    3 months ago
    Total: 140s
    #387843
  • Pipeline finished with Success
    about 1 month ago
    Total: 139s
    #428050
  • Pipeline finished with Success
    about 1 month ago
    Total: 138s
    #428054
  • 🇫🇷France dydave

    Quick follow-up on this issue:

    Added initial configuration of Gitlab CI pipelines with the most basic and minimum job requirements.
    Left a few commented sections that could be enabled down the road to broaden tests coverage and enforce certain jobs.

    Moving issue to Needs review since the tests are passing:
    https://git.drupalcode.org/issue/login_switch-3497745/-/pipelines/428054

    with warnings, that should most likely be addressed in different tickets (out of scope in this issue).

    We would greatly appreciate if a maintainer with write access could take a look at merge request MR!5 and let us know if any more work would be required to get automated tests pipelines configured in the code base on Gitlab.

    Feel free to let us know if you would have any questions or concerns on any aspects of this issue or the project in general, we would surely be glad to help.
    Thanks in advance!

  • Pipeline finished with Success
    about 1 month ago
    Total: 240s
    #428064
  • 🇫🇷France dydave

    dydave changed the visibility of the branch 3497745-fix-phpcs to hidden.

  • Pipeline finished with Success
    about 1 month ago
    Total: 137s
    #428102
  • Pipeline finished with Success
    about 1 month ago
    Total: 149s
    #428678
  • Pipeline finished with Success
    about 1 month ago
    Total: 141s
    #428706
  • Pipeline finished with Success
    about 1 month ago
    Total: 140s
    #428721
  • 🇫🇷France dydave

    Super nice Matthew (@drupalmatts)!!

    Thanks a lot for the speedy reply and for getting this in, it's super appreciated!

    Any chance we could get a word from you on #3499850-5: Add module configuration schema file
    ==> the dev branches are confusing ... for creating MRs and such...

    + possibly the co-maintainer offer 📌 Offering to co-maintain Login Switch Active
    That's really up to you ... it's not like I don't have anything on my plate already 😅
    But it would definitely allow to speed up the changes.

    Cheers !

  • Status changed to Needs review 6 days ago
    • drupalmatts committed 68292030 on 8.x-3.x
      Issue #3497745 by DYdave: Automated testing on GitLab CI: Added initial...
Production build 0.71.5 2024