Skip to content

Conversation

pmzandbergen
Copy link
Contributor

Fixing #38875 (AC-12299)

Description (*)

Use Object Manager to create objects.

Related Pull Requests

N/A

Fixed Issues (if relevant)

  1. Fixes Object Manager not used for Magento\Csp\Model\Mode\Data\ModeConfigured #38875 (AC-12299)

Manual testing scenarios (*)

N/A

Questions or comments

Created this PR @glo24157 , feel free to modify or include with your changes. Also see comments at 1b21cb8

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Copy link

m2-assistant bot commented Jun 27, 2024

Hi @pmzandbergen. Thank you for your contribution!
Here are some useful tips on how you can test your changes using Magento test environment.

Add the comment under your pull request to deploy test or vanilla Magento instance:
  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names.

Allowed build names are:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here
ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.


For more details, review the Code Contributions documentation.
Join Magento Community Engineering Slack and ask your questions in #github channel.

@m2-community-project m2-community-project bot added Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: pending review labels Jun 27, 2024
@pmzandbergen
Copy link
Contributor Author

@magento run all tests

Copy link
Contributor

@Den4ik Den4ik left a comment

Choose a reason for hiding this comment

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

Hi @pmzandbergen
Thanks for contribution. Please rolling back type casting for $reportOnly argument

@Den4ik
Copy link
Contributor

Den4ik commented Jul 8, 2024

@magento run all tests

@Den4ik
Copy link
Contributor

Den4ik commented Jul 8, 2024

@magento run Unit Tests

@Den4ik
Copy link
Contributor

Den4ik commented Jul 9, 2024

@magento run Functional Tests CE, Functional Tests EE, Functional Tests B2B

@Den4ik
Copy link
Contributor

Den4ik commented Jul 11, 2024

@magento run Unit Tests, Functional Tests CE

@Den4ik
Copy link
Contributor

Den4ik commented Jul 15, 2024

@magento run all tests

@pmzandbergen
Copy link
Contributor Author

Please rolling back type casting for $reportOnly argument

@Den4ik do you want me to roll back the type casting (and why)? The failing tests don't seem to be relevant to this change.

@Den4ik
Copy link
Contributor

Den4ik commented Jul 16, 2024

Failed tests seems are not related and looks strange that they are failed. Let's try one more time and compare results of failed tests

@Den4ik
Copy link
Contributor

Den4ik commented Jul 16, 2024

@magento run all tests

@Den4ik
Copy link
Contributor

Den4ik commented Jul 18, 2024

@magento run Unit Tests

Copy link
Contributor

@Den4ik Den4ik left a comment

Choose a reason for hiding this comment

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

@pmzandbergen Could you please review my comment

@pmzandbergen pmzandbergen requested a review from Den4ik September 10, 2024 13:57
@engcom-Dash
Copy link
Contributor

@magento run all tests

@Den4ik
Copy link
Contributor

Den4ik commented Sep 10, 2024

@magento run all tests

@Den4ik
Copy link
Contributor

Den4ik commented Sep 10, 2024

@magento run Unit Tests

@engcom-Dash
Copy link
Contributor

@magento run all tests

@engcom-Dash engcom-Dash self-assigned this Sep 11, 2024
Copy link
Contributor

@Den4ik Den4ik left a comment

Choose a reason for hiding this comment

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

✅ Approved.
Changes looks ok for me.
Failed tests each time are different and don't related to the changes.

@engcom-Dash
Copy link
Contributor

@magento run all tests

@engcom-Dash
Copy link
Contributor

engcom-Dash commented Sep 19, 2024

Hello @pmzandbergen

Thanks for the collaboration & contribution!

✔️ QA Passed
Preconditions:
Install fresh Magento 2.4-develop

Steps to reproduce

  • Create a new plugin on method: Magento\Csp\Model\Mode\Data\ModeConfigured::isReportOnly()
  • Set a breakpoint in the plugin's method or use the die keyword.
  • Access the homepage URL or admin page URL.

Before: ✖️
homepage loads without triggering the plugin.
image

After: ✔️
Plugin is triggered.
image

Builds are failed. Hence, moving this PR to Extended Testing.

Thanks

@engcom-Dash
Copy link
Contributor

@magento run all tests

@engcom-Dash
Copy link
Contributor

I have a green build (all tests passed), so I'm moving it to Merge in Progress.

image

@engcom-Dash
Copy link
Contributor

We have seen static failures in mainline PR after merging this PR into that. Hence for now moving this PR to Extended testing.

@engcom-Dash
Copy link
Contributor

engcom-Dash commented Nov 25, 2024

@magento run all tests

1 similar comment
@engcom-Dash
Copy link
Contributor

@magento run all tests

@engcom-Dash
Copy link
Contributor

@magento run Functional Tests CE, Functional Tests B2B

@engcom-Dash
Copy link
Contributor

engcom-Dash commented Nov 26, 2024

The Functional B2B and CE test failures seem flaky and some of these failures are known issues. They are neither part of PR nor failing because of PR changes. Hence moving it to Merge in Progress.

Functional Tests B2B
Run 1: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38886/6f2db52807a3c708a0be9960115b0689/Functional/allure-report-b2b/index.html#categories/3a3a8306986cbb01e5245b23e6e5b238/715420361f789b7/
image

Run 2: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38886/37b223604492bd6d8496120f6e64de42/Functional/allure-report-b2b/index.html#categories/3a3a8306986cbb01e5245b23e6e5b238/1b73508e9f000b5f/
image

Known Issues:
MultiShippingWithCreationNewCustomerAndAddressesDuringCheckoutTest: ACQE-7229
StoreFrontAddOutOfStockProductToShoppingCartTestCest: ACQE-6818
StorefrontReuseCouponCodeAfterOrderCanceledTest: ACQE-7230

Functional Tests CE
Run 1: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38886/42b5eb56906513fe5eea7fe14dd341e3/Functional/allure-report-ce/index.html#categories/6d7e37752c3cc83cb3d2063131f608bb/93d477020fb48965/
image

Run 2: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38886/974ba1a9f4df8f43176d877447c86fcf/Functional/allure-report-ce/index.html#categories/6d7e37752c3cc83cb3d2063131f608bb/7b4b2f91ca0a480a/
image

Known Issue:
VerifyDefaultWYSIWYGToolbarOnProductTest: ACQE-7227

@magento-devops-reposync-svc magento-devops-reposync-svc merged commit a0b4e0a into magento:2.4-develop Dec 24, 2024
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: accept

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Object Manager not used for Magento\Csp\Model\Mode\Data\ModeConfigured

4 participants