Closed (won't fix)
Project:
Metatag
Version:
7.x-2.x-dev
Component:
Tests
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
8 Feb 2024 at 17:36 UTC
Updated:
10 Apr 2026 at 10:16 UTC
Jump to comment: Most recent
Follow the official guide to add a GitLab CI template file to the repository, to change testing to use it instead of Drupal CI:
https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-dr...
Add the GitLab CI template file.
Identify what to do from there, whether to change the configuration, e.g. to change the version of MySQL that is used..
Add the GitLab CI template file.
Identify what to do from there, whether to change the configuration, e.g. to change the version of MySQL that is used..
n/a
n/a
n/a
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 #2
damienmckennaComment #3
damienmckennaComment #4
damienmckennaComment #7
fjgarlin commentedUpdate: I found the reason.
"test_dependencies" modules are not downloaded, so it fails silently. See the job with extra output here: https://git.drupalcode.org/issue/metatag-3420192/-/jobs/867502
GitLab CI no longer brings automatically the test dependencies. For Drupal 10, you need to add them to the "require-dev" section in the "composer.json" file. But we have no mechanism for now to do the same for Drupal 7.
I will work on that issue to make it happen.
Comment #8
fjgarlin commentedThe tests are now running: https://git.drupalcode.org/issue/metatag-3420192/-/jobs/868201
See the results here: https://git.drupalcode.org/issue/metatag-3420192/-/pipelines/100353/test...
Some of them are successful, some of them fail, but those can be worked on in a follow-up.
We added a new variable to the templates, which can be seen here: https://git.drupalcode.org/project/metatag/-/merge_requests/100/diffs#58...
Note that the issue #3422720: [D7] Test dependencies are not automatically brought is still not merged. It'd be great if you can RTBC it if you are happy with the solution, then we can make the final clean up here (as it is still pointing to the fork instead of the main templates).
Comment #9
fjgarlin commentedThe changes in the related issue were merged into the "gitlab_templates".
That means that the tests should start running here just by running the pipeline again:
- Yesterday: https://git.drupalcode.org/project/metatag/-/jobs/872527 (no tests run)
- Today: https://git.drupalcode.org/issue/metatag-3420192/-/jobs/878468 (tests are running)
Assuming that the test errors would be tackled in separate issue(s), I am marking this one as RTBC.
Comment #10
fjgarlin commentedDone with the quick test. Still RTBC.
Comment #11
damienmckennaThe tests still fail, so let's fix this.
Comment #12
jonathan1055 commentedI'm going to re-test the second MR (137) from #3422720: [D7] Test dependencies are not automatically brought, now that #3397699: Preserve original composer.json in the modules directory is complete. Will revert when done.
Comment #13
jonathan1055 commentedI have done the testing, all successful, and put the values back to the standard
The phpunit tests fail in the same way as before, with extra html being piped to the log. I don't know if that is due to a missing test dependency? You could try creating a composer.json with require-dev listing the test dependencies. That might give some other insight into what is going wrong.
Comment #14
fjgarlin commentedBefore digging much further into individual errors, it'd be great to compare with the current DrupalCI: https://www.drupal.org/node/640498/qa
GitLab CI is running on PHP8.1 by default, so maybe we can change the PHP version of this MR to use the last known passing tests version (PHP7.4).
Comment #15
damienmckennaYeah, some of the dependencies fail with PHP 8.0 due to needing patches.
Comment #16
damienmckennaI think we might need to try loading the devel module from D7Security via a composer.json file.
Comment #17
damienmckennaI thank you for your contribution to the Metatag module and the Drupal community as a whole. The D7 version of this module is no longer supported, so I am closing this issue.