fix: respect PHP_MEMORY_LIMIT for composer#246
fix: respect PHP_MEMORY_LIMIT for composer#246PixelJonas wants to merge 5 commits intosclorg:masterfrom
Conversation
After setting PHP_MEMORY_LIMIT to `-1` composer still exited with an OOM error. Setting the parameter directly through php fixed the issue
|
Can one of the admins verify this patch? |
5 similar comments
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
any chance this is getting merged? I'm currently monkey-patching the |
|
Can one of the admins verify this patch? |
|
This is still an open issue for me? can anyone verify this patch? |
|
any chance this will ever get merged? |
|
[test-all] |
|
@PixelJonas Thanks for the PR!. Any documentation about this change? I am not familiar with php ;) |
|
@PixelJonas Can you please include it into the other versions, 7.4? |
Signed-off-by: PixelJonas <5434875+PixelJonas@users.noreply.github.com>
|
I added the snippet to 7.3 and 7.4 as well. TBH my PHP knowledge is not that extensive and this PR was from a small engagement where needed to install a contao-cms based system in OpenShift V3. Digging through the code This is not respected when directly using the As I don't find any documentation about Lastly, looking at the test-bed I do see errors all over the place. Is the test-bed in a "known good state", so these errors are coming from my change? |
|
[test-all] |
|
@remicollet Does it make sense for you this PR? @PixelJonas Can you please add this change also for (https://github.com/sclorg/s2i-php-container/blob/master/8.0/s2i/bin/assemble) [test-all] |
phracek
left a comment
There was a problem hiding this comment.
Please add this also into 8.0 version.
Signed-off-by: PixelJonas <5434875+PixelJonas@users.noreply.github.com>
|
I added the patch to 8.0 |
|
I can understand the need to set memory limit for cli command (e.g. composer) It could be better to use 2 configuration options
BTW, for now |
|
@PixelJonas Can you please fix it as @remicollet propose two solutions? |
|
That heavily depends on the timeframe you are expecting this to be done. Right now I don't see the bandwidth to do that, as this looks like something which needs to be tested and I don't have a scenario this is actually being used in (this PR is from 2019). |
Pull Request validationFailed🔴 Approval - missing or changes were requested Success🟢 CI - All checks have passed |
After setting PHP_MEMORY_LIMIT to
-1composer still exited with an OOM error.Setting the parameter directly through php fixed the issue