You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, our CI pipeline in GitHub Actions is failing due to several errors across different tools, including:
Linting errors (PHP CodeSniffer with Moodle standards)
Code style issues
Behat test failures
PHP Mess Detector violations
These errors are causing the pipeline to not pass consistently, making it difficult to ensure code quality and maintainability across the project.
Steps to Resolve:
Fix Linting Errors:
Run phpcs with the Moodle coding standards across the codebase.
Address all identified issues related to formatting, array syntax, and missing docblocks.
Code Style Fixes:
Run phpcbf to automatically fix any code style violations that can be resolved by the tool.
Manually address any remaining issues that phpcbf cannot fix.
Behat Test Failures:
Investigate the cause of failing Behat tests.
Fix any logic or environment issues causing these failures.
PHP Mess Detector:
Review and resolve any violations reported by PHP Mess Detector (PHPMD).
Ensure that all unused code, overly complex methods, and naming conventions are addressed.
Continuous Testing:
After making the necessary fixes, ensure that the CI pipeline passes successfully with no errors in the following:
Linting (phpcs)
Code style (phpcbf)
Behat tests
PHP Mess Detector (phpmd)
Goal:
To have a fully green CI pipeline with all tests passing, ensuring the project meets high-quality standards and adheres to the Moodle coding guidelines.
Priority: High
The text was updated successfully, but these errors were encountered:
Hi, some GitHub Actions pipelines are still failing due to remaining linting errors in various files. We can either relax the requirements to get green or apply a bigger fix to clean up the rest of the codebase automatically.
Also, I'm updating the pipeline to use the latest official workflow from https://github.com/moodlehq/moodle-plugin-ci — see the changes here: #22. This should help verify if everything is correctly configured.
Related to: #10
Problem:
Currently, our CI pipeline in GitHub Actions is failing due to several errors across different tools, including:
These errors are causing the pipeline to not pass consistently, making it difficult to ensure code quality and maintainability across the project.
Steps to Resolve:
Fix Linting Errors:
phpcs
with the Moodle coding standards across the codebase.Code Style Fixes:
phpcbf
to automatically fix any code style violations that can be resolved by the tool.phpcbf
cannot fix.Behat Test Failures:
PHP Mess Detector:
Continuous Testing:
phpcs
)phpcbf
)phpmd
)Goal:
To have a fully green CI pipeline with all tests passing, ensuring the project meets high-quality standards and adheres to the Moodle coding guidelines.
Priority: High
The text was updated successfully, but these errors were encountered: