-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Ignore lib/internal/Magento/Framework/App/Test/Unit/_files/app/etc/en… #37631
base: 2.4-develop
Are you sure you want to change the base?
Ignore lib/internal/Magento/Framework/App/Test/Unit/_files/app/etc/en… #37631
Conversation
…v.php that gets generated by running unit tests
Hi @hostep. 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. |
@hostep maybe better to add file removal at the end of that test? |
Yeah I though of that as well, do you know which test(s) is/are responsible for generating that file? |
…it's no longer needed.
@ihor-sviziev: I've found the test that generated the file (somehow): magento2/lib/internal/Magento/Framework/App/Test/Unit/ObjectManagerFactoryTest.php Lines 46 to 53 in adc4105
So instead of ignoring that generated file, I'm now removing it like you suggested. However, and this is strange, that particular test fails on my local. I've seen it fail before a couple days ago as well, but ignored it, because I assumed something was wrong with my local environment or so, but now I'm beginning to doubt that all of the Unit Tests which are part of the codebase are actually being executed by the automation here on github.
(those failures of the dates, are always around a "special" whitespace character: For example, the failure in the So if some of these tests are maybe never executed, maybe we should instead remove them entirely instead of trying to fix them? |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
Hi @hostep , Thanks for the collaboration & contribution! ✔️ QA Passed Install fresh Magento 2.4-develop
Before: ✖️ Thanks |
@magento run all tests |
Please don't push new changes here, until I've figured out the static test failure around new copyright requirement introduced in your coding-standards v35, first want to discuss this on Slack because I believe the requirement is not implemented correctly (should only apply to new files, not to old/existing files). |
Updated the copyright header after talking with Stanislav on Slack, copyright header should now look like this for all source files according to the Adobe legal team:
Just for sake of moving this PR forwards I've updated it, but I still believe the requirements are incorrect, my reasoning (but I'm not a lawyer):
@magento run Static Tests, Unit Tests |
@magento run Static Tests, Unit Tests |
@magento run WebAPI Tests, Semantic Version Checker, Database Compare, Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Magento Health Index, |
@magento run Functional Tests B2B |
The Functional B2B test failures are different in recent 2 successive builds with a known issue. They neither part of PR nor failing because of the PR changes, hence moving it to Merge in Progress. Run 1: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/37631/1c5fdf3d5dbf12bd0bb93e669cd36093/Functional/allure-report-b2b/index.html#categories/7441e147742cc9294f4ce2a0b5090c42/4fda682efb5abfa2/ Run 2: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/37631/e9dbdb66cc0f20bac53146a3d1ef96bc/Functional/allure-report-b2b/index.html#categories/39002bb4b823f2d59e22404a186a7115/544295773acd815e/ |
@magento create issue |
…v.php that gets generated by running unit tests
Description (*)
When running Magento Framework unit tests on your local, one of the tests (don't ask me which one) generates a file:
lib/internal/Magento/Framework/App/Test/Unit/_files/app/etc/env.php
So I think we should ignore this file in git.
Related Pull Requests
Fixed Issues (if relevant)
None
Manual testing scenarios (*)
vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist lib/internal/Magento/Framework/
lib/internal/Magento/Framework/App/Test/Unit/_files/app/etc/env.php
Questions or comments
In my opinion, it's not needed to run automatic tests on this PR, as it shouldn't affect anything besides local developer experience...
Contribution checklist (*)
Resolved issues: