-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fix test failures due to new ObjectDependencies #1088
Comments
The following message in the test output gives a hint of what is going on:
The message mentions database transactions. This is consistent, as all newly failing test scripts have The fix should be simple. Remove Kernel::System::Web::Request from |
I know that you are not happy with the current way object dependencies are handled, but I'm totally against introducing exceptions to the main code, just to make some test scripts run which built on assumptions that are not generally true. I propose to discuss the object dependencies at some point in a larger round. (Edit: Also this new dependency actually will influence quite a lot of stuff, as Kernel::System::Log is used almost everywhere...so I there definitely is reason to discuss this aside from those tests...) |
How can this be an exception to the main code, when I added the dependency of Kernel::System::Log on Kerrnel::System::Web;;Request just 5 days ago? |
There were also bad effects: discarding Kernel::System::Web::Request led to new database connection which led at least to test failures.
The fix looks fine, we are back to 0 non-TODO failures. |
This will be used by CodePolicy as a blacklist of modules that are excempted from the Perl::ObjectDependencies check.
Discussed this with @svenoe and @kess-net . Fully disabling the CodePolicy for Perl::ObjectDependencies has been ruled out. The solution is to support a blacklist called
|
TODO for the Codepolicy: Consider the array |
…_weirdness Issue #1088: remove unneeded dependencies
Tests and CodePolicy look fine. Closing this issue. |
Looks like some new failures sneaked in:
Originally posted by @bschmalhofer in #1011 (comment)
The text was updated successfully, but these errors were encountered: