Closed rogerdz closed 1 year ago
Hi @rogerdz. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, review the Magento Contributor Assistant documentation.
Add a comment to assign the issue: @magento I am working on this
To learn more about issue processing workflow, refer to the Code Contributions.
Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
@magento give me 2.4-develop instance
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Bravo, here is your Magento Instance: https://48187f8af7b3394aae62c612e4d5a37e.instances.magento-community.engineering Admin access: https://48187f8af7b3394aae62c612e4d5a37e.instances.magento-community.engineering/admin_06c5 Login: 6c9a9650 Password: 46aff5d1a042
Hi @rogerdz,
Thank you for reporting and collaboration. Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots.
Steps to reproduce
run command: ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist
We are getting Error: Config file allure/allure.config.php doesn't exist
Hence confirming the issue.
Thanks.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-7698 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
Removing this block from dev/tests/unit/phpunit.xml.dist will fix this temporarily:
<extensions>
<extension class="Qameta\Allure\PHPUnit\AllureExtension">
<!-- Optional arguments block; omit it if you want to use default values -->
<arguments>
<!-- Path to config file (default is config/allure.config.php) -->
<string>allure/allure.config.php</string>
</arguments>
</extension>
</extensions>
https://github.com/magento/magento2/pull/36703 also fixes it (but why is it marked as WIP @rogerdz?)
@hostep because changed made run unit test fail via command php bin/magento dev:tests:run unit
@rogerdz This issue is happening because we made changes to run unit test in 2.4.6 release. Now 2.4-develop is synced so this issue will not be reproduced. As we have already verified at our end so, Can you please verify at your end?
Now 2.4-develop is synced so this issue will not be reproduced.
@glo71317 what exactly was synced / changed to fix this issue?
We will check this issue and come back
@glo71317
@rogerdz This issue is happening because we made changes to run unit test in 2.4.6 release. Now 2.4-develop is synced so this issue will not be reproduced. As we have already verified at our end so, Can you please verify at your end?
I'm still running against this issue on the latest 2.4-develop branch:
$ vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist setup/src/Magento/Setup/Test/Unit/
Config file allure/allure.config.php doesn't exist
The change from https://github.com/magento/magento2/pull/36703 fixes it for me.
@hostep I have checked and found only issue will fixed by https://github.com/magento/magento2/pull/36703 fix. which occurring with this command "./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist", But when we are running unit test through PHPStrom this fix is not working. Hence, Will have a look the proper fix
Looks like this got fixed by https://github.com/magento/magento2/commit/57e33cc25cfd459cd52abcd3234b6cb546496935 (after some quick testing, it indeed seems to work)
Hello,
As I can see this issue got fixed in the scope of the internal Jira ticket AC-7698 by the internal team Related commits:https://github.com/search?q=repo%3Amagento%2Fmagento2+AC-7698&type=commits
Based on the Jira ticket, the target version is 2.4.7-beta1.
Thanks
Unfortunately this issue was reintroduced, probably over here: https://github.com/magento/magento2/commit/742c2f927077b69530c299aac3cbb27826087cf1#diff-7a02a9acfbb970097564f499f9b2fbae8ee5067818b5e48273370f845593cfda
When trying to run unit tests locally, I'm getting this error again now:
$ vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist path/to/some/php/file.php
...
1) Bootstrapping of extension Qameta\Allure\PHPUnit\AllureExtension failed: Config file allure/allure.config.php doesn't exist
...
@nishant04412: what would be your proposal to get around this?
@hostep Thank you for pointing this out.
After some quick testing, it seems to be path related issue again. Usage of extensions is changed in PHPUnit 10
so parameter is used instead of extension in phpunit.xml
extensions config. For now, I believe using below code should work for CLI as a workaround:
<extensions>
<bootstrap class="Qameta\Allure\PHPUnit\AllureExtension">
<!-- Path to config file (default is config/allure.config.php) -->
<parameter name="config" value="dev/tests/unit/allure/allure.config.php" />
</bootstrap>
</extensions>
This code might not work with PhpStorm though. This is initial analysis and we'll be required to find common solution again which supports PHPUnit 10 xml extensions configuration. I have created an issue for this:
https://jira.corp.adobe.com/browse/AC-13044
We'll update once this issue is resolved.
I using code for run unit test: cd dev/tests/unit/ && ../../../vendor/bin/phpunit -c phpunit.xml.dist ../../../path/to/some/php/file.php
Preconditions and environment
Steps to reproduce
run command: ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist
(doc: https://developer.adobe.com/commerce/testing/guide/unit/command-line/)
Expected result
no error
Actual result
Error: Config file allure/allure.config.php doesn't exist
Additional information
No response
Release note
No response
Triage and priority