-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Deploy PEAR Log package and upgrade to latest version in the process #13835
Deploy PEAR Log package and upgrade to latest version in the process #13835
Conversation
(Standard links)
|
Seems to work fine in my quick testing (I also removed it from packages directory). |
...tbh I don't know what PEAR Log does, but I was assuming it creates the ConfigAndLog .log files - if there's more I should test out I can. |
I'm pretty certain that is what it does, @mfb the only other thing i would consider would be to deliberately cause a DB error somehow and just check that the backtrace it creates in the logfile is still sensible |
A few things:
Suggested follow-ups:
|
@totten have put a commit in this now to remove the require_once statements and created civicrm/civicrm-packages#244 to remove it from the packages repo |
Cool. Did another small There's a test failure, which seems related. I think it's because the test build has the copies of |
2cd18f6
to
2f0db03
Compare
Haven't been able to reproduce the failure locally. Forced-push an update to try again without the last commit. |
merging based on comments above |
@seamuslee001 I'm now getting failures when running API4 tests that |
What @colemanw is describing is happenong on master right now regardless of whether API4 is installed. |
hmm the only require log was in here https://github.com/civicrm/civicrm-core/pull/13842/files#diff-7f45d6d4f863da6e4b3d020b3c5b3927L40 that seems to make sense |
Yes the require_once 'Log.php' is required - and should still work because PEAR composer adds include path. I found out when removing other PEAR stuff previously that the requires are there for a reason :) |
Why don't they put it into the composer autoload gahh |
There is autoload. but the pear stuff is legacy and uses include/require for constants and such. |
In general CiviCRM shouldn't use PEAR anymore.. because it's ancient code that doesn't use namespaces etc. but, baby steps... |
Overview
This aims to upgrade our version of the PEAR Log package and deploy it via composer now
Before
Old version of Pear Log package used and deployed using civicrm-packages
After
Latest version deployed and deployed via compsoer
Technical Details
this is a diff between the two package installs https://gist.github.com/seamuslee001/4cae97df85c25c32264f4f5c53929e49
ping @totten @eileenmcnaughton @mfb