Problem/Motivation
We have introduced PHPCS checks in the D7 GitlabCI, but it seems like that we cannot use allow_failure: false, because this can block our ability to run regular test jobs in case the modified file has some issues already.
See this MR, which is OK: https://git.drupalcode.org/project/drupal/-/merge_requests/5113/diffs , but the file itself has deprecations in PHP 5.6, so it will fail the PHPCS job:
https://git.drupalcode.org/project/drupal/-/merge_requests/5113/pipelines
https://git.drupalcode.org/issue/drupal-3396440/-/jobs/219741
Steps to reproduce
See: https://git.drupalcode.org/project/drupal/-/merge_requests/5113/pipelines
Proposed resolution
Set allow_failure: true in PHPCS Lint job, since there seems to be no other way around it.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3397119
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:
- 3397119-allow-failures-in
changes, plain diff MR !5151
Comments
Comment #2
poker10 commentedComment #5
fjgarlin commentedI made the suggested changes. MR is ready for review.
This will allow the tests to run even if there are warnings in the phpcs job.
Comment #6
bhanu951 commentedConsidering we already use it in 11.x and it works as expected .
+1 for RTBC from me.
Comment #7
bramdriesenLooks good to me! Small but important change 😉
Comment #9
poker10 commentedCommitted, thanks everyone!