Problem/Motivation
The project seems to have Functional Automated tests already see:
https://git.drupalcode.org/project/shs/-/tree/2.0.x/tests/src/Functional...
But they don't seem to be currently integrated with the new GitLab CI Automated testing infrastructure.
Steps to reproduce
Browse to project's repository Build Pipelines: https://git.drupalcode.org/project/shs/-/pipelines
Proposed resolution
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, merge requests, patches submitted in tickets, etc...
As described in the Documentation on Drupal.org: GitLab CI, with corresponding config template file:
https://git.drupalcode.org/project/gitlab_templates/-/blob/main/gitlab-c...
Remaining tasks
There might be additional validation Build errors or warnings with the merge requests, when the tests run for the first time, for example, phpstan, phpcs, cspell, etc...
We will probably need to figure out whether they should be fixed in the same ticket or specific ones.
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!
Issue fork shs-3433198
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
dydave commentedHi Joseph (@joseph.olstad),
Could you please help us take a look at this MR when you have some time ?
I've paid particular attention not to modify anything that could break Backward Compatibility (BC), such as translated strings or class names.
At this point, MR!29 seems to be passing all jobs except ESLint and PHPStan which are probably more complicated and would most likely require specific issues to fix :
MR!29 Pipeline: https://git.drupalcode.org/issue/shs-3433198/-/pipelines/264680
Moving issue to Needs review and bumping to Major as an attempt to attract maintainers attention.
Getting module's GitLab CI configuration added to the repository would allow getting all pending merge requests automatically tested.
Feel free to let us know if you have any questions or concerns on any of the changes in the merge request or this ticket in general, we would surely be glad to help.
Thanks in advance!
Comment #5
joseph.olstadphpcs is failing, please turn phpcs OFF
Comment #6
liam morlandphpcs issues fixed.
phpunit tests were failing due to #3463894: Update templates so 11.0 is the default/current branch. I fixed this by pinning the version of the testing template as recommended in #3481309: Stop changing the meaning of tests.
Comment #7
pfrenssenLooking great, also nice to see the coding standards check pass!
Comment #9
pfrenssenComment #10
pfrenssenNeeds to be ported to the 3.x branch.
Comment #12
joseph.olstaddid a partial cherry pick of the work from 2.0.x into 3.0.x . Not sure if this will work as expected.
Comment #13
joseph.olstadGood enough for now, if you want to push this further , open a new issue