Closed damienwebdev closed 3 years ago
Hi @damienwebdev. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.3-develop instance
- upcoming 2.3.x release
For more details, please, review the Magento Contributor Assistant documentation.
@damienwebdev do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
The code in question is:
We would need an additional variant for the base alpine ps
, or as there are several conditionals in this file that could be cleaned up, a ps
abstraction.
Hi @engcom-Charlie. 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.3-develop
branchDetails
- Add the comment @magento give me 2.3-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop
branch, please, add the label Reproduced on 2.3.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. Verify that the issue is reproducible on 2.2-develop
branch. Details
- Add the comment @magento give me 2.2-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.2-develop
branch, please add the label Reproduced on 2.2.x
[ ] 6. Add label Issue: Confirmed
once verification is complete.
[ ] 7. Make sure that automatic system confirms that report has been added to the backlog.
Hello @damienwebdev ! Thank you for your report ! I have tested this issue using Ubuntu 16.04 and was not able to reproduce it. Have you tried to reproduce it using other OS except Alpine Linux ?
@engcom-Charlie No. This bug only exists in Alpine Linux. Out-of-the-box Alpine Linux does not have a pid
flag for the ps
command.
I'm positive the code runs just fine on most common Ubuntu flavors, but Alpine Linux is slightly different, and this is one of the ways.
Much like the code in question handles the "OS" (e.g. Mac vs. Linux), we'll need a way to handle Alpine Linux as well.
:white_check_mark: Confirmed by @engcom-Charlie
Thank you for verifying the issue. Based on the provided information internal tickets MC-18138
were created
Issue Available: @engcom-Charlie, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
@engcom-Charlie Additionally, as I just tested this on my Alpine image, merely adding a isAlpine
flavor for the conditional:
if($this->isMacOS() || $this->isAlpineLinux())
Would work as the command:
Works in Alpine.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Thank you for your contributions.
Not stale.
exchange "allure-framework/allure-phpunit": "~1.2.0"
with "allure-framework/allure-phpunit": "~1.2.3"
to fix
Hi @damienwebdev.
Thank you for your report and collaboration!
The related internal Jira ticket MC-23829
was closed as Fixed
.
The fix will be available with the upcoming 2.4.3
release.
I still have this issue in 2.4.3:
../../../vendor/bin/phpunit
PHP Fatal error: Uncaught Exception: sh: tasklist.exe: not found in /magento/vendor/magento/framework/Shell.php:65
Stack trace:
#0 /magento/dev/tests/integration/framework/Magento/TestFramework/Helper/Memory.php(92): Magento\Framework\Shell->execute('tasklist.exe /f...', Array)
#1 /magento/dev/tests/integration/framework/Magento/TestFramework/Helper/Memory.php(58): Magento\TestFramework\Helper\Memory->_getWinProcessMemoryUsage(195)
#2 /magento/dev/tests/integration/framework/Magento/TestFramework/MemoryLimit.php(127): Magento\TestFramework\Helper\Memory->getRealMemoryUsage()
#3 /magento/dev/tests/integration/framework/Magento/TestFramework/MemoryLimit.php(59): Magento\TestFramework\MemoryLimit->_getUsage()
#4 /magento/dev/tests/integration/framework/Magento/TestFramework/Bootstrap/Memory.php(50): Magento\TestFramework\MemoryLimit->printStats()
#5 [internal function]: Magento\TestFramework\Bootstrap\Memory->displayStats()
#6 {main}
Next Magento\Framework\Exception\LocalizedException: Command returned non-zero exit code:
`task in /magento/vendor/magento/framework/Shell.php on line 66
It fails to run the ps --pid %s --format rss --no-headers
command and tries to run a Windows command.
When it really be fixed?
@damienwebdev
I can confirm that this issue still exists in Alpine Docker image with Magento 2.4.7-p2
.
Executing ps --pid {PID} --format rss --no-headers
results in
ps: unrecognized option: pid BusyBox v1.36.1 (2024-09-17 06:35:48 UTC) multi-call binary.
Usage: ps [-o COL1,COL2=HEADER] [-T]
Show list of processes
-o COL1,COL2=HEADER Select columns for display -T Show threads
Preconditions (*)
Steps to reproduce (*)
cd dev/tests/integration
cp phpunit.xml.dist phpunit.xml
phpunit --configuration phpunit.xml
Expected result (*)
I expect to be able to run the test suite.
Actual result (*)
The test suite fails with