- Notifications
You must be signed in to change notification settings - Fork 9.4k
avoid a misconfiguration infinite loop #38794
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
avoid a misconfiguration infinite loop #38794
Conversation
The virtual type configurations are not supposed to be self‑referential, … but if they ever are this function will spin in an infinite loop.
Hi @ergohack. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
@magento create issue |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Unit Tests |
@magento run Unit Tests |
1 similar comment
@magento run Unit Tests |
@magento run all Tests |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE |
The repeating Functional Tests EE failure is falky and known issue. Known issue: Hence moving this to Merge in progress |
Moving it back to ET to analyze the build result, as the build URL was not attached in the #38794 (comment) about flaky tests |
@magento run all tests |
@magento run all tests |
@magento run Unit Tests |
afa6914
into magento:2.4-develop
Description (*)
The virtual type configurations, in
di.xml
files, are not supposed to be self‑referential, … but if they ever are this function will spin in an infinite loop.Changes
Added a test to avoid a self‑referential mapping, returning the self‑reference instead of endlessly spinning.
Fixed Issues (if relevant)
unknown
Manual testing scenarios (*)
Configure a
di.xml
<virtualType …>
node to be self‑referential (i.e. not actually virtual). This will cause the app to spin, infinitely, on the dereferencing attempt. Note that the self‑reference can be from a chain of<virtualType …>
nodes and not just a single node.Contribution checklist (*)
Resolved issues: