Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate the phpdbg option for code coverage #298

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Apr 6, 2024

This includes both the current default (when neither pcov or xdebug are available) and the explicit use of --coverage-phpdbg

Since PHP 8.0, phpdbg is causing all sort of problems and is not recommended. So it's time to deprecate it in order to proceed to remove it completely for moodle-plugin-ci 5.0.0.

Removal ref.: #289

Fixes #213

Copy link

codecov bot commented Apr 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.22%. Comparing base (f1624f3) to head (cdfb095).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #298   +/-   ##
=========================================
  Coverage     88.22%   88.22%           
- Complexity      732      734    +2     
=========================================
  Files            76       76           
  Lines          2267     2267           
=========================================
  Hits           2000     2000           
  Misses          267      267           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stronk7 stronk7 force-pushed the deprecate_phpdbg branch from a44ddef to d6aead3 Compare April 6, 2024 14:18
@stronk7 stronk7 added the task Some task to complete label Apr 6, 2024
This includes both the current default (when neither pcov or
xdebug are available) and the explicit use of --coverage-phpdbg

Since PHP 8.0, phpdbg is causing all sort of problems and is
not recommended. So it's time to deprecate it in order to
proceed to remove it completely for moodle-plugin-ci 5.0.0.

Removal ref.: moodlehq#289

Fixes moodlehq#213
@stronk7 stronk7 force-pushed the deprecate_phpdbg branch from d6aead3 to cdfb095 Compare April 6, 2024 16:14
@stronk7
Copy link
Member Author

stronk7 commented Apr 6, 2024

Just for testing purposes, this is how the deprecation warning notification is displayed whenever phpdbg is effectively used (note that only old php < 8.0 jobs can be using it, as commented, any 8.x job will fail badly).

https://github.com/stronk7/moodle-plugin-ci/actions/runs/8582321848

Copy link
Member

@kabalin kabalin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀 Also thanks for adding changelog record for dataformat (overlooked, sorry).

@stronk7
Copy link
Member Author

stronk7 commented Apr 7, 2024

Ta, K!

@stronk7 stronk7 merged commit 7808f25 into moodlehq:main Apr 7, 2024
23 checks passed
@stronk7 stronk7 deleted the deprecate_phpdbg branch April 7, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Some task to complete
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate phpdbg support
2 participants