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

IBX-1489: Changed ProxyManager dependency #274

Merged
merged 1 commit into from
Dec 20, 2021
Merged

Conversation

konradoboza
Copy link
Member

@konradoboza konradoboza commented Dec 20, 2021

Question Answer
JIRA issue IBX-1489
Type bug
Target Ibexa version v3.3
BC breaks yes/no

Ocramius/ProxyManager is not yet ready for PHP 8.1, ref: Ocramius/ProxyManager#731. Therefore, some of our dependencies fail on installing kernel, ref: https://github.com/ezsystems/ezplatform-http-cache/runs/4560553221?check_suite_focus=true#step:4:30. In fact, while installing kernel we rely on https://github.com/FriendsOfPHP/proxy-manager-lts anyway due to usage of proxy-manager-bridge, ref: https://github.com/ezsystems/ezplatform-kernel/blob/1.3/composer.json#L70.

Given the idea of proxy-manager-lts is being easier on PHP requirement (https://github.com/FriendsOfPHP/proxy-manager-lts/blob/1.x/composer.json#L29) relying on this dependency will resolve the issue. We might get back to Ocramius's package as soon as the support for PHP8.1 is provided, but this approach might backfire whenever there is a new version of PHP.

Checklist:

  • Provided PR description.
  • Tested the solution manually.
  • Provided automated test coverage.
  • Checked that target branch is set correctly (master for features, the oldest supported for bugs).
  • Ran PHP CS Fixer for new PHP code (use $ composer fix-cs).
  • Asked for a review (ping @ezsystems/engineering-team).

@konradoboza konradoboza self-assigned this Dec 20, 2021
@konradoboza konradoboza added the Bug Something isn't working label Dec 20, 2021
@sonarcloud
Copy link

sonarcloud bot commented Dec 20, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@konradoboza konradoboza marked this pull request as ready for review December 20, 2021 11:29
Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

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

What are the differences between those packages?

@konradoboza
Copy link
Member Author

According to the README, it's just a fork. As mentioned, it was overriding the ocramius/proxy-manager anyway while installing ezplatform-kernel due to require-dev dependency.

Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

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

+1 from my side, but requires @adamwojs decision, as he implemented the features based on this dependency.

@Steveb-p
Copy link
Contributor

Steveb-p commented Dec 20, 2021

it was overriding the ocramius/proxy-manager anyway while installing ezplatform-kernel due to require-dev dependency.

To clarify, the actual reason friendsofphp/proxy-manager-lts was installed is:

$ composer why symfony/proxy-manager-bridge
ibexa/commerce-skeleton       dev-master  requires   symfony/proxy-manager-bridge (5.3.*)   
ibexa/commerce-rest           4.0.x-dev   requires   symfony/proxy-manager-bridge (^5.2)    
ibexa/installer               4.0.x-dev   requires   symfony/proxy-manager-bridge (^5.0)    
ibexa/migrations              4.0.x-dev   requires   symfony/proxy-manager-bridge (^5.3)    
ibexa/oss                     4.0.x-dev   requires   symfony/proxy-manager-bridge (^5.3.0)  
ibexa/personalization         4.0.x-dev   requires   symfony/proxy-manager-bridge (^5.0)    
ibexa/system-info             4.0.x-dev   requires   symfony/proxy-manager-bridge (^5.0)    
symfony/dependency-injection  v5.3.11     conflicts  symfony/proxy-manager-bridge (<4.4)

$ composer why friendsofphp/proxy-manager-lts
doctrine/migrations             3.3.2      requires  friendsofphp/proxy-manager-lts (^1.0)    
friendsofphp/proxy-manager-lts  v1.0.5     replaces  ocramius/proxy-manager (^2.1)            
ibexa/core                      4.0.x-dev  requires  ocramius/proxy-manager (^2.2)            
ibexa/system-info               4.0.x-dev  requires  ocramius/proxy-manager (^2.2)            
ibexa/workflow                  4.0.x-dev  requires  ocramius/proxy-manager (^2.1)            
symfony/proxy-manager-bridge    v5.3.11    requires  friendsofphp/proxy-manager-lts (^1.0.2)

while dependencies on ocramius/proxy-manager come from:

$ composer why ocramius/proxy-manager
friendsofphp/proxy-manager-lts  v1.0.5     replaces  ocramius/proxy-manager (^2.1)  
ibexa/core                      4.0.x-dev  requires  ocramius/proxy-manager (^2.2)  
ibexa/system-info               4.0.x-dev  requires  ocramius/proxy-manager (^2.2)  
ibexa/workflow                  4.0.x-dev  requires  ocramius/proxy-manager (^2.1)

@Steveb-p
Copy link
Contributor

From what I can see in the linked PR, it's not the ocramius/proxy-manager is not ready for PHP 8.1, it was just not declared to be compatible. PR linked is related to test matrix.

@konradoboza
Copy link
Member Author

konradoboza commented Dec 20, 2021

From what I can see in the linked PR, it's not the ocramius/proxy-manager is not ready for PHP 8.1, it was just not declared to be compatible. PR linked is related to test matrix.

Don't failing tests there indicate that the package isn't fully ready yet though? Nonetheless, it seems we can replace ocramius/proxy-manager with friendsofphp/proxy-manager-lts.

@Steveb-p
Copy link
Contributor

Don't failing tests there indicate that the package isn't fully ready yet though

Look at the PR itself and why they are failing.

@adamwojs adamwojs merged commit b2220c3 into 1.3 Dec 20, 2021
@adamwojs adamwojs deleted the bump-proxy-manager branch December 20, 2021 14:02
alongosz added a commit to ibexa/core that referenced this pull request Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Ready for review
Development

Successfully merging this pull request may close these issues.

5 participants