You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please, can you reassure me this bloat I'm seeing is normal? As mentioned, I'm a composer newbie, having done PHP dirty work in the php3 days and not much since.
I'm trying to build Snipe-IT with this library built-in, and I'm seeing memory exhaustion each time. I'm sure I'm invoking it wrongly, and that a simple correction and light heckling will get me from cursing to learning.
Plot twist. As per ISO27002:12.1.4e , we build RPM artefacts and install those to the test and then prod environments, so processes may look funny. Also, we're running dorky certs in a MiTM setup for SSL 'inspection', and that causes some SSL connections to barf eg when they're using HSTS properly.
When building my installable, I'm running a snippet like
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3MiQA9
+ umask 022
+ cd /dev/shm/BUILD
+ cd /dev/shm/BUILD
+ rm -rf snipe-it-5.3.10
+ /usr/bin/gzip -dc /home/gitlab-runner/builds/HbvDxSny/0/packaging/rpms/sources/snipe-it53/v5.3.10.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd snipe-it-5.3.10
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ ls -ld composer.json
-rw-r--r--. 1 gitlab-runner gitlab-runner 3261 Feb 13 2022 composer.json
+ composer require 'paragonie/sodium_compat:^1.17'
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies (including require-dev)
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 335[54](https://prdgit01.city.burnaby.bc.ca.proxy/packaging/rpms/-/jobs/24326#L54)432 bytes) in /usr/share/php/Composer/DependencyResolver/RuleSetGenerator.php on line 129
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 33[55](https://prdgit01.city.burnaby.bc.ca.proxy/packaging/rpms/-/jobs/24326#L55)4432 bytes) in /usr/share/php/Composer/DependencyResolver/RuleSetGenerator.php on line 129
Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.error: Bad exit status from /var/tmp/rpm-tmp.3MiQA9 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.3MiQA9 (%prep)
What I suspect from the barf above:
Yes, I'm building in the RAMDisk /dev/shm on this 2gb buildmonkey
I'm grabbing valid (older) source ball for the other project
I'm in the right location, I think, as the composer.json's right there
maybe I'm doing the composer-require invocation right?
suddenly we need 1.5Gb space to hold this project, where previously .5gb was okay
Can I get trivial confirmation I'm adding this in right?
Is 1gb additional space expected, and should I (fill out the bizarre forms to instantiate and) push this build onto a really beefy SSD box with buckets of RAM to get through it and be okay?
The text was updated successfully, but these errors were encountered:
It's tricky. The enterprise load includes NO composer for PHP on this 'EL8' OS release. Really! None! So any solution flirts with the kind of supply chain issues we're trying to avoid. (We usually can get by from a common distro-adjacent channel, but it didn't have composer either; I know!)
But hey. I found one, and it worked quickly and without issue, just it's third-party and risky. So I have a solvable problem much more in my portfolio to resolve, and that's a great place to be.
Thanks for the spot of clarity when I needed it. Your simple question was exactly the right hint at the right time.
Hi everyone,
Please, can you reassure me this bloat I'm seeing is normal? As mentioned, I'm a composer newbie, having done PHP dirty work in the php3 days and not much since.
I'm trying to build Snipe-IT with this library built-in, and I'm seeing memory exhaustion each time. I'm sure I'm invoking it wrongly, and that a simple correction and light heckling will get me from cursing to learning.
Plot twist. As per ISO27002:12.1.4e , we build RPM artefacts and install those to the test and then prod environments, so processes may look funny. Also, we're running dorky certs in a MiTM setup for SSL 'inspection', and that causes some SSL connections to barf eg when they're using HSTS properly.
When building my installable, I'm running a snippet like
which launders to
What I suspect from the barf above:
The current build env:
Questions:
The text was updated successfully, but these errors were encountered: