Closed Gerg closed 1 month ago
BRATs:
❯ CF_STACK=cflinuxfs4 ./scripts/brats.sh
Successfully installed bundler-2.5.18
Parsing documentation for bundler-2.5.18
Done installing documentation for bundler after 0 seconds
1 gem installed
Bundle complete! 1 Gemfile dependency, 12 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Run Buildpack Runtime Acceptance Tests
Running Suite: Brats Suite
==========================
Random Seed: 1724873402
Will run 25 specs
Running in parallel across 3 nodes
Start build uncached buildpack
Start build cached buildpack
Using appdynamics version 23.11.0-839 from local cache at: /Users/gcobb/.buildpack-packager/cache/https___download.run.pivotal.io_appdynamics-php_appdynamics-23.11.0-839.tar.bz2 with size 112M
appdynamics version 23.11.0-839 matches the manifest provided sha256 checksum of 04904a9ddc45bab06b80fa6c32671e82d8edfbaecf8dc943720db7b5c790ec8d
Using composer version 2.7.7 from local cache at: /Users/gcobb/.buildpack-packager/cache/https___buildpacks.cloudfoundry.org_dependencies_composer_composer_2.7.7_linux_noarch_any-stack_aab940cd.phar with size 2.9M
composer version 2.7.7 matches the manifest provided sha256 checksum of aab940cd53d285a54c50465820a2080fcb7182a4ba1e5f795abfb10414a4b4be
Downloading httpd version 2.4.61 from: https://buildpacks.cloudfoundry.org/dependencies/httpd/httpd_2.4.61_linux_x64_cflinuxfs4_234a6ef5.tgz
Using httpd version 2.4.61 with size 8.2M
httpd version 2.4.61 matches the manifest provided sha256 checksum of 234a6ef55a65139bff45a7c6a472805b83fe77342f003886e764a8acadb884d1
Using newrelic version 10.21.0.11 from local cache at: /Users/gcobb/.buildpack-packager/cache/https___download.newrelic.com_php_agent_archive_10.21.0.11_newrelic-php5-10.21.0.11-linux.tar.gz with size 27M
newrelic version 10.21.0.11 matches the manifest provided sha256 checksum of e840111f3c4122745cc0ee4e656aab3774b6733373be5db01c404dc2bae855c4
Downloading nginx version 1.26.1 from: https://buildpacks.cloudfoundry.org/dependencies/nginx-static/nginx-static_1.26.1_linux_x64_cflinuxfs4_02d0203c.tgz
Using nginx version 1.26.1 with size 2.3M
nginx version 1.26.1 matches the manifest provided sha256 checksum of 02d0203cd61fc1632f9d127adf8c1cacaca0d61dd723f6607c181f360c4f3725
Downloading nginx version 1.27.0 from: https://buildpacks.cloudfoundry.org/dependencies/nginx-static/nginx-static_1.27.0_linux_x64_cflinuxfs4_17c5ba9b.tgz
Using nginx version 1.27.0 with size 2.3M
nginx version 1.27.0 matches the manifest provided sha256 checksum of 17c5ba9bbeb7b6bd4db39c8cef41013a39cc129b3df8a5915f1ba023a889265e
Downloading php version 8.1.27 from: https://buildpacks.cloudfoundry.org/dependencies/php/php_8.1.27_linux_x64_cflinuxfs4_9c19636c.tgz
Uncached buildpack for cflinuxfs4 created and saved as /private/var/folders/35/r1j0t07x36z549gjf4xz3_th0000gq/T/buildpack-packager891875233/php_buildpack-cflinuxfs4-vrkqves.zip with a size of 10M
Finish uncached buildpack
Using php version 8.1.27 with size 96M
php version 8.1.27 matches the manifest provided sha256 checksum of 9c19636c64e1d78ec3e0f3a29410fcb7ac4b0d04e2e6436392e75ab765a9a453
Downloading php version 8.1.28 from: https://buildpacks.cloudfoundry.org/dependencies/php/php_8.1.28_linux_x64_cflinuxfs4_6dc675f3.tgz
Using php version 8.1.28 with size 96M
php version 8.1.28 matches the manifest provided sha256 checksum of 6dc675f3d68501ed40e235e64882a3819ed504eac3d304bb4265da5d0ca6eb31
Downloading php version 8.2.20 from: https://buildpacks.cloudfoundry.org/dependencies/php/php_8.2.20_linux_x64_cflinuxfs4_5b6c50d2.tgz
Using php version 8.2.20 with size 96M
php version 8.2.20 matches the manifest provided sha256 checksum of 5b6c50d2fedd33b98e13a6105f5521563d8cd315b08cd57f9349a4cbe4ff0477
Downloading php version 8.2.21 from: https://buildpacks.cloudfoundry.org/dependencies/php/php_8.2.21_linux_x64_cflinuxfs4_4cb4d86b.tgz
Using php version 8.2.21 with size 97M
php version 8.2.21 matches the manifest provided sha256 checksum of 4cb4d86bb671f7da13ab7f2e3ecf8afb2469be92438d30ebd80f845890d229b0
Downloading php version 8.3.7 from: https://buildpacks.cloudfoundry.org/dependencies/php/php_8.3.7_linux_x64_cflinuxfs4_5ec5abd8.tgz
Using php version 8.3.7 with size 97M
php version 8.3.7 matches the manifest provided sha256 checksum of 5ec5abd8b4c3e42f95b7de32cfc9231820c0b05d219a0e4bd7490bdf48c43cfe
Downloading php version 8.3.9 from: https://buildpacks.cloudfoundry.org/dependencies/php/php_8.3.9_linux_x64_cflinuxfs4_cafc3f9c.tgz
Using php version 8.3.9 with size 96M
php version 8.3.9 matches the manifest provided sha256 checksum of cafc3f9c73022055e4575510bba1d9dcc0adb7bb29321452786530becb4dcaba
Downloading python version 3.12.4 from: https://buildpacks.cloudfoundry.org/dependencies/python/python_3.12.4_linux_x64_cflinuxfs4_68f2696b.tgz
Using python version 3.12.4 with size 97M
python version 3.12.4 matches the manifest provided sha256 checksum of 68f2696b4129488c05a46f2efa4919ed99668700467e06cb1172addaa7faae73
Downloading ruby version 3.0.5 from: https://buildpacks.cloudfoundry.org/dependencies/ruby/ruby_3.0.5_linux_x64_cflinuxfs3_098393c3.tgz
Using ruby version 3.0.5 with size 29M
ruby version 3.0.5 matches the manifest provided sha256 checksum of 098393c33a20af7638ff7183bbf184daf9b207b31e39f20a7fd00466823859b3
Cached buildpack for cflinuxfs4 created and saved as /private/var/folders/35/r1j0t07x36z549gjf4xz3_th0000gq/T/buildpack-packager2357741334/php_buildpack-cached-cflinuxfs4-vrkqves.zip with a size of 784M
Finish cached buildpack
• [SLOW TEST:133.401 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
staging with php buildpack that sets EOL on dependency
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:114
using an uncached buildpack
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:150
warns about end of life
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:154
------------------------------
• [SLOW TEST:209.002 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
staging with php buildpack that sets EOL on dependency
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:114
using a cached buildpack
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:159
warns about end of life
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:163
------------------------------
• [SLOW TEST:260.727 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
deploying an app with an updated version of the same buildpack
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:61
prints useful warning message to stdout
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:93
------------------------------
• [SLOW TEST:138.766 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
staging with a version of php that is not the latest patch release in the manifest
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:171
logs a warning that tells the user to upgrade the dependency
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:186
------------------------------
• [SLOW TEST:110.432 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
deploying an app that has an executable .profile script
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:266
executes the .profile script
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:287
------------------------------
• [SLOW TEST:111.271 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
deploying an app that has an executable .profile script
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:266
does not let me view the .profile script
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:290
------------------------------
• [SLOW TEST:111.011 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.1.27 and web_server: nginx-1.26.1
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:199.682 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
deploying an app that has sensitive environment variables
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:299
will not write credentials to the app droplet
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:311
------------------------------
• [SLOW TEST:109.768 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.1.27 and web_server: nginx-1.27.0
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:104.089 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.1.28 and web_server: nginx-1.26.1
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:112.381 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.1.28 and web_server: nginx-1.27.0
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:116.808 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.2.20 and web_server: nginx-1.26.1
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:117.049 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.2.20 and web_server: nginx-1.27.0
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:117.341 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.2.21 and web_server: nginx-1.26.1
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:114.112 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.2.21 and web_server: nginx-1.27.0
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:112.098 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.3.7 and web_server: nginx-1.26.1
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:112.958 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.3.7 and web_server: nginx-1.27.0
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:119.319 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.3.9 and web_server: nginx-1.26.1
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:110.961 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and nginx versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.3.9 and web_server: nginx-1.27.0
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:114.223 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and httpd versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.1.27 and web_server: httpd-2.4.61
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:120.163 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and httpd versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.1.28 and web_server: httpd-2.4.61
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:126.506 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and httpd versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.2.20 and web_server: httpd-2.4.61
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:116.676 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and httpd versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.2.21 and web_server: httpd-2.4.61
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:117.536 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and httpd versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.3.7 and web_server: httpd-2.4.61
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
• [SLOW TEST:111.005 seconds]
PHP buildpack
/Users/gcobb/workspace/php-buildpack/src/php/brats/brats_test.go:14
For all supported php and httpd versions
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:367
with php-8.3.9 and web_server: httpd-2.4.61
/Users/gcobb/workspace/php-buildpack/vendor/github.com/cloudfoundry/libbuildpack/bratshelper/tests.go:389
------------------------------
Ran 25 of 25 Specs in 1251.014 seconds
SUCCESS! -- 25 Passed | 0 Failed | 0 Pending | 0 Skipped
Ginkgo ran 1 suite in 20m52.258229s
Test Suite Passed
Unit tests (run in Docker):
❯ ./scripts/unit.sh
Will skip:
./brats
./integration
Running Suite: Unit Suite
=========================
Random Seed: 1724878783
Will run 5 of 5 specs
Compile when running in an unsupported stack
fails with a very helpful error message
/Users/gcobb/workspace/php-buildpack/src/php/unit/compile_test.go:31
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
-------> Buildpack version 4.6.22
It looks like you're deploying on a stack (currently set to *lucid64*) that's not supported by this buildpack.
That could be because you're using a recent buildpack release on a deprecated stack.
If you're using the buildpack installed by your CF admin, please let your admin know you saw this error message.
If you at one point specified a buildpack that's at git URL, please make sure you're pointed at a version that supports this stack.
•
------------------------------
python unit tests
should all pass
/Users/gcobb/workspace/php-buildpack/src/php/unit/python_unit_specs_test.go:16
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-security InRelease [102 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,344 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [3,786 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [30.8 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2,411 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1,637 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [3,373 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [23.8 kB]
Fetched 24.6 MB in 4s (6,618 kB/s)
Reading package lists...
Looking in links: /tmp/tmp.IQ9ozkLkSB/tmpsora6nik
Requirement already satisfied: pip in /usr/local/bin/lib/python3.12/site-packages (24.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Collecting Pygments==2.5.2 (from -r requirements.txt (line 1))
Downloading Pygments-2.5.2-py2.py3-none-any.whl.metadata (2.0 kB)
Collecting argparse==1.2.1 (from -r requirements.txt (line 2))
Downloading argparse-1.2.1.tar.gz (69 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.3/69.3 kB 3.4 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting flake8==2.1.0 (from -r requirements.txt (line 3))
Downloading flake8-2.1.0.tar.gz (25 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting mccabe==0.2.1 (from -r requirements.txt (line 4))
Downloading mccabe-0.2.1.tar.gz (5.0 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting mock==2.0.0 (from -r requirements.txt (line 5))
Downloading mock-2.0.0-py2.py3-none-any.whl.metadata (3.2 kB)
Collecting pynose==1.5.2 (from -r requirements.txt (line 6))
Downloading pynose-1.5.2-py3-none-any.whl.metadata (19 kB)
Collecting pep8==1.4.6 (from -r requirements.txt (line 7))
Downloading pep8-1.4.6.tar.gz (65 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.4/65.4 kB 14.2 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pudb==2013.5.1 (from -r requirements.txt (line 8))
Downloading pudb-2013.5.1-py2.py3-none-any.whl.metadata (6.0 kB)
Collecting pyflakes==0.7.3 (from -r requirements.txt (line 9))
Downloading pyflakes-0.7.3.tar.gz (30 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting urwid==2.6.14 (from -r requirements.txt (line 10))
Downloading urwid-2.6.14-py3-none-any.whl.metadata (11 kB)
Collecting pbr>=0.11 (from mock==2.0.0->-r requirements.txt (line 5))
Downloading pbr-6.1.0-py2.py3-none-any.whl.metadata (3.4 kB)
Collecting six>=1.9 (from mock==2.0.0->-r requirements.txt (line 5))
Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting typing-extensions (from urwid==2.6.14->-r requirements.txt (line 10))
Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting wcwidth (from urwid==2.6.14->-r requirements.txt (line 10))
Downloading wcwidth-0.2.13-py2.py3-none-any.whl.metadata (14 kB)
Downloading Pygments-2.5.2-py2.py3-none-any.whl (896 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 896.1/896.1 kB 20.5 MB/s eta 0:00:00
Downloading mock-2.0.0-py2.py3-none-any.whl (56 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.8/56.8 kB 14.2 MB/s eta 0:00:00
Downloading pynose-1.5.2-py3-none-any.whl (130 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 130.3/130.3 kB 22.5 MB/s eta 0:00:00
Downloading pudb-2013.5.1-py2.py3-none-any.whl (47 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.5/47.5 kB 8.8 MB/s eta 0:00:00
Downloading urwid-2.6.14-py3-none-any.whl (297 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 297.0/297.0 kB 17.8 MB/s eta 0:00:00
Downloading pbr-6.1.0-py2.py3-none-any.whl (108 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 108.5/108.5 kB 22.2 MB/s eta 0:00:00
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Downloading wcwidth-0.2.13-py2.py3-none-any.whl (34 kB)
Building wheels for collected packages: argparse, flake8, mccabe, pep8, pyflakes
Building wheel for argparse (pyproject.toml): started
Building wheel for argparse (pyproject.toml): finished with status 'done'
Created wheel for argparse: filename=argparse-1.2.1-py3-none-any.whl size=21380 sha256=e5d305a3502d37620cf8d62a08c93afc031412218ab6c379b7c31dcc4148b0cf
Stored in directory: /root/.cache/pip/wheels/bf/85/0b/f0f85ca6fdd4aef66c5c89987ed0702457dbc4bde101c6531f
Building wheel for flake8 (pyproject.toml): started
Building wheel for flake8 (pyproject.toml): finished with status 'done'
Created wheel for flake8: filename=flake8-2.1.0-py3-none-any.whl size=14248 sha256=e6569fc81696cc17e81d5a5d207addf4540966f96ef43847c01c6e23f8cc6ddb
Stored in directory: /root/.cache/pip/wheels/7b/54/97/cc35c1716139c91ecb99d942eca471f780ed91cae5d8f45eb9
Building wheel for mccabe (pyproject.toml): started
Building wheel for mccabe (pyproject.toml): finished with status 'done'
Created wheel for mccabe: filename=mccabe-0.2.1-py3-none-any.whl size=5155 sha256=7e8a568140ee2ab491b5bee3d2f237172e58b095561fbf84246c3dbf17488b58
Stored in directory: /root/.cache/pip/wheels/29/39/fc/fc0c340184c30a3e7d6159fdf163aad990da7602dd6c658b5e
Building wheel for pep8 (pyproject.toml): started
Building wheel for pep8 (pyproject.toml): finished with status 'done'
Created wheel for pep8: filename=pep8-1.4.6-py3-none-any.whl size=27188 sha256=c80ae9170e6916adcdd4049d00e6a24c97231988dae54ccfa38df05e7327a5f5
Stored in directory: /root/.cache/pip/wheels/73/13/bf/64f3fe149de55a52c6c7a56afbc172e1b4201d6b2cce9c850e
Building wheel for pyflakes (pyproject.toml): started
Building wheel for pyflakes (pyproject.toml): finished with status 'done'
Created wheel for pyflakes: filename=pyflakes-0.7.3-py3-none-any.whl size=33079 sha256=da442d6630878085f785fbd1f6950d909f692d6e32c9db25f64cc452025d905e
Stored in directory: /root/.cache/pip/wheels/e6/4a/21/61bb0c34198cebedc9edc006bf3407c096cf7ddac63ed78da9
Successfully built argparse flake8 mccabe pep8 pyflakes
Installing collected packages: wcwidth, pyflakes, pep8, mccabe, argparse, typing-extensions, six, pynose, Pygments, pbr, flake8, urwid, mock, pudb
Successfully installed Pygments-2.5.2 argparse-1.2.1 flake8-2.1.0 mccabe-0.2.1 mock-2.0.0 pbr-6.1.0 pep8-1.4.6 pudb-2013.5.1 pyflakes-0.7.3 pynose-1.5.2 six-1.16.0 typing-extensions-4.12.2 urwid-2.6.14 wcwidth-0.2.13
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: pip3 install --upgrade pip
Running test [./tests/test_additional_commands.py]...
test_additional_commands.TestAdditionalCommandsExtension.test_command_with_arguments_as_list ... ok
test_additional_commands.TestAdditionalCommandsExtension.test_command_with_arguments_as_string ... ok
test_additional_commands.TestAdditionalCommandsExtension.test_no_additional_commands ... ok
test_additional_commands.TestAdditionalCommandsExtension.test_one_additional_command ... ok
test_additional_commands.TestAdditionalCommandsExtension.test_one_command_as_string ... ok
test_additional_commands.TestAdditionalCommandsExtension.test_two_additional_commands ... ok
----------------------------------------------------------------------
Ran 6 tests in 0.002s
OK
Running test [./tests/test_cloudfoundry.py]...
test_cloudfoundry.TestCloudFoundryInstaller.test_missing_dependency_from_manifest_raises_error ... ok
----------------------------------------------------------------------
Ran 1 test in 0.205s
OK
Running test [./tests/test_cloudfoundryutil.py]...
test_cloudfoundryutil.TestCloudFoundryUtil.test_default_version_is_not_in_manifest ... /buildpack/compile-extensions/bin/default_version_for:53:in `verify_availability_of_requested_dependency': The buildpack manifest is misconfigured for 'default_versions'. Contact your Cloud Foundry operator/admin. For more information, see https://docs.cloudfoundry.org/buildpacks/custom.html#specifying-default-versions (RuntimeError)
from /buildpack/compile-extensions/bin/default_version_for:37:in `run'
from /buildpack/compile-extensions/bin/default_version_for:58:in `<main>'
Error detecting PHP default version:
ok
test_cloudfoundryutil.TestCloudFoundryUtil.test_default_versions_are_updated ... ok
----------------------------------------------------------------------
Ran 2 tests in 0.312s
OK
Running test [./tests/test_compile.py]...
test_compile.TestCompileApp1.test_with_httpd ... ok
test_compile.TestCompileApp1.test_with_nginx ... ok
test_compile.TestCompileApp5.test_standalone ... ok
test_compile.TestCompileApp6.test_with_httpd ... ok
test_compile.TestCompileApp6.test_with_nginx ... ok
test_compile.TestCompileWithInvalidJSON.test_compile_with_invalid_json ... ok
test_compile.TestCompileWithProfileD.testProfileDNotOverridden ... ok
----------------------------------------------------------------------
Ran 7 tests in 81.281s
OK
Command Output:
-------> Buildpack version 4.6.22
Incorrectly formatted JSON object at: /tmp/tmp.IQ9ozkLkSB/build-f000wi5r/.bp-config/options.json
{
"ADMIN_EMAIL": "dan@mikusa.com"
None
Running test [./tests/test_compile_helpers.py]...
test_compile_helpers.TestCompileHelpers.test_find_all_php_versions ... ok
test_compile_helpers.TestCompileHelpers.test_find_stand_alone_app_to_run_app_start_cmd ... ok
test_compile_helpers.TestCompileHelpers.test_is_web_app ... ok
test_compile_helpers.TestCompileHelpers.test_load_manifest ... ok
test_compile_helpers.TestCompileHelpers.test_setup_if_custom_webdir_does_not_exist ... ok
test_compile_helpers.TestCompileHelpers.test_setup_if_custom_webdir_does_not_exist_with_extensions ... ok
test_compile_helpers.TestCompileHelpers.test_setup_if_custom_webdir_exists ... ok
test_compile_helpers.TestCompileHelpers.test_setup_if_htdocs_does_not_exist ... ok
test_compile_helpers.TestCompileHelpers.test_setup_if_htdocs_does_not_exist_but_library_does ... ok
test_compile_helpers.TestCompileHelpers.test_setup_if_htdocs_does_not_exist_with_extensions ... ok
test_compile_helpers.TestCompileHelpers.test_setup_if_htdocs_with_stand_alone_app ... ok
test_compile_helpers.TestCompileHelpers.test_setup_if_webdir_exists ... ok
test_compile_helpers.TestCompileHelpers.test_setup_log_dir ... ok
test_compile_helpers.TestCompileHelpers.test_setup_log_dir_when_exists ... ok
test_compile_helpers.TestCompileHelpers.test_system_files_not_moved_into_webdir ... ok
test_compile_helpers.TestCompileHelpers.test_validate_php_ini_extensions_when_extension_is_compiled_module ... ok
test_compile_helpers.TestCompileHelpers.test_validate_php_ini_extensions_when_extension_is_supported_php_extension ... ok
test_compile_helpers.TestCompileHelpers.test_validate_php_ini_extensions_when_extension_not_available ... ok
test_compile_helpers.TestCompileHelpers.test_validate_php_ini_extensions_when_extension_not_available_and_listed_in_section ... ok
test_compile_helpers.TestCompileHelpers.test_validate_php_ini_extensions_when_no_php_ini_dir ... ok
test_compile_helpers.TestCompileHelpers.test_validate_php_ini_extensions_when_redis_and_igbinary_are_present ... ok
test_compile_helpers.TestCompileHelpers.test_validate_php_ini_extensions_when_redis_is_specified_without_igbinary ... ok
----------------------------------------------------------------------
Build pack could not find a PHP file to execute!
Ran 22 tests in 0.252s
OK
Running test [./tests/test_composer.py]...
/buildpack/tests/test_composer.py:77: SyntaxWarning: invalid escape sequence '\d'
assert re.match('/composer/[\d\.]+/composer.phar', installer._installer._install_binary_from_manifest.call_args[0][0]), \
/buildpack/extensions/composer/extension.py:97: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
if requested is None or requested is '':
/buildpack/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:278: SyntaxWarning: invalid escape sequence '\d'
NUMERIC = re.compile("^\d+$")
/buildpack/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:684: SyntaxWarning: invalid escape sequence '\s'
range_ = " ".join(re.split("\s+", range_))
/buildpack/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:692: SyntaxWarning: invalid escape sequence '\s'
set_ = re.split("\s+", ' '.join([parse_comparator(comp, loose) for comp in range_.split(" ")]))
/buildpack/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:744: SyntaxWarning: invalid escape sequence '\s'
for c in re.split("\s+", comp.strip())])
/buildpack/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:785: SyntaxWarning: invalid escape sequence '\s'
for c in re.split("\s+", comp.strip())])
/buildpack/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:836: SyntaxWarning: invalid escape sequence '\s'
for c in re.split("\s+", comp.strip())])
test_composer.TestComposer.test_binary_path_for_php ... ok
test_composer.TestComposer.test_build_composer_environment_converts_vars_to_str ... ok
test_composer.TestComposer.test_build_composer_environment_existing_path ... ok
test_composer.TestComposer.test_build_composer_environment_forbids_overwriting_key_vars ... ok
test_composer.TestComposer.test_build_composer_environment_has_missing_key ... ok
test_composer.TestComposer.test_build_composer_environment_inherits_from_ctx ... ok
test_composer.TestComposer.test_build_composer_environment_no_path ... ok
test_composer.TestComposer.test_build_composer_environment_sets_composer_env_vars ... ok
test_composer.TestComposer.test_composer_custom_values ... ok
test_composer.TestComposer.test_composer_defaults ... ok
test_composer.TestComposer.test_composer_invalid_json_causes_system_exit ... -------> Invalid JSON present in composer.json. Parser said: "Expecting ',' delimiter: line 6 column 5 (char 67)"
ok
test_composer.TestComposer.test_composer_tool_install ... ok
test_composer.TestComposer.test_composer_tool_install_latest ... ok
test_composer.TestComposer.test_composer_tool_run_custom_composer_opts ... PROTIP: Include a `composer.lock` file with your application! This will make sure the exact same version of dependencies are used when you deploy to CloudFoundry.
ok
test_composer.TestComposer.test_composer_tool_run_sanity_checks ... ok
test_composer.TestComposer.test_composer_tool_should_compile ... ok
test_composer.TestComposer.test_composer_tool_should_compile_not_found ... ok
test_composer.TestComposer.test_composer_tool_uses_default_version_for ... ok
test_composer.TestComposer.test_configure_composer_with_php_version ... ok
test_composer.TestComposer.test_configure_composer_with_php_version_and_base_extensions ... ok
test_composer.TestComposer.test_configure_composer_without_php_version ... ok
test_composer.TestComposer.test_configure_does_not_run_when_no_composer_json ... ok
test_composer.TestComposer.test_configure_paths_missing ... ok
test_composer.TestComposer.test_empty_platform_section ... ok
test_composer.TestComposer.test_find_composer_php_version ... ok
test_composer.TestComposer.test_github_download_rate_is_exceeded ... ok
test_composer.TestComposer.test_github_download_rate_not_exceeded ... ok
test_composer.TestComposer.test_github_oauth_token_is_valid_interprets_github_api_200_as_true ... ok
test_composer.TestComposer.test_github_oauth_token_is_valid_interprets_github_api_401_as_false ... ok
test_composer.TestComposer.test_github_oauth_token_is_valid_uses_curl ... ok
test_composer.TestComposer.test_ld_library_path_for_php ... ok
test_composer.TestComposer.test_no_github_api_call_with_cached_buildpack ... ok
test_composer.TestComposer.test_none_for_extension_reading ... ok
test_composer.TestComposer.test_pick_php_version ... ok
test_composer.TestComposer.test_process_commands ... ok
test_composer.TestComposer.test_run_does_not_set_github_oauth_if_missing ... PROTIP: Include a `composer.lock` file with your application! This will make sure the exact same version of dependencies are used when you deploy to CloudFoundry.
ok
test_composer.TestComposer.test_run_sets_github_oauth_token_if_present ... PROTIP: Include a `composer.lock` file with your application! This will make sure the exact same version of dependencies are used when you deploy to CloudFoundry.
ok
test_composer.TestComposer.test_service_commands ... ok
test_composer.TestComposer.test_service_environment ... ok
test_composer.TestComposer.test_with_extensions ... ok
test_composer.TestComposer.test_with_oddly_formatted_composer_file ... ok
----------------------------------------------------------------------
Ran 41 tests in 5.157s
OK
PROTIP: Include a `composer.lock` file with your application! This will make sure the exact same version of dependencies are used when you deploy to CloudFoundry.
PROTIP: Include a `composer.lock` file with your application! This will make sure the exact same version of dependencies are used when you deploy to CloudFoundry.
WARNING: PHP version 7.1.2 not available, using default version (7.1.3). In future versions of the buildpack, specifying a non-existent PHP version will cause staging to fail. See: http://docs.cloudfoundry.org/buildpacks/php/gsg-php-composer.html
PROTIP: Include a `composer.lock` file with your application! This will make sure the exact same version of dependencies are used when you deploy to CloudFoundry.
PROTIP: Include a `composer.lock` file with your application! This will make sure the exact same version of dependencies are used when you deploy to CloudFoundry.
-----> Using custom GitHub OAuth token in $COMPOSER_GITHUB_OAUTH_TOKEN
Running test [./tests/test_detect.py]...
test_detect.TestDetect.test_detect_php ... ok
test_detect.TestDetect.test_detect_php_and_htdocs ... ok
test_detect.TestDetect.test_detect_static ... ok
test_detect.TestDetect.test_detect_with_asp_net_app ... ok
test_detect.TestDetect.test_detect_with_invalid_json ... ok
----------------------------------------------------------------------
Ran 5 tests in 14.693s
OK
no
Running test [./tests/test_extension_helper.py]...
test_extension_helper.TestPHPExtensionHelper.test_basic ... ok
test_extension_helper.TestPHPExtensionHelper.test_compile_doesnt_run ... ok
test_extension_helper.TestPHPExtensionHelper.test_compile_runs ... ok
test_extension_helper.TestPHPExtensionHelper.test_configure_doesnt_run ... ok
test_extension_helper.TestPHPExtensionHelper.test_configure_runs ... ok
test_extension_helper.TestPHPExtensionHelper.test_merge_defaults ... ok
test_extension_helper.TestPHPExtensionHelper.test_preprocess_commands_doesnt_run ... ok
test_extension_helper.TestPHPExtensionHelper.test_preprocess_commands_runs ... ok
test_extension_helper.TestPHPExtensionHelper.test_register_extension_methods ... ok
test_extension_helper.TestPHPExtensionHelper.test_service_commands_doesnt_run ... ok
test_extension_helper.TestPHPExtensionHelper.test_service_commands_runs ... ok
test_extension_helper.TestPHPExtensionHelper.test_service_environment_doesnt_run ... ok
test_extension_helper.TestPHPExtensionHelper.test_service_environment_runs ... ok
----------------------------------------------------------------------
Ran 13 tests in 0.015s
OK
Running test [./tests/test_newrelic.py]...
test_newrelic.TestNewRelic.testDefaults ... ok
test_newrelic.TestNewRelic.testModifyPhpIni ... ok
test_newrelic.TestNewRelic.testShouldInstall ... ok
test_newrelic.TestNewRelic.testShouldInstallService ... ok
test_newrelic.TestNewRelic.testShouldInstallServiceAndManual ... Detected a NewRelic Service & Manual Key, using the manual key.
ok
test_newrelic.TestNewRelic.testShouldNotInstall ... Error installing NewRelic! NewRelic will not be available.
Traceback (most recent call last):
File "/buildpack/extensions/newrelic/extension.py", line 47, in __init__
if ctx['PHP_VM'] == 'php':
~~~^^^^^^^^^^
File "/buildpack/lib/build_pack_utils/utils.py", line 151, in __getitem__
return self.format(dict.__getitem__(self, key))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'PHP_VM'
ok
test_newrelic.TestNewRelic.test_set_default_version ... ok
test_newrelic.TestNewRelic.test_set_default_version_bad_manifest ... /buildpack/tests/../compile-extensions/bin/default_version_for:53:in `verify_availability_of_requested_dependency': The buildpack manifest is misconfigured for 'default_versions'. Contact your Cloud Foundry operator/admin. For more information, see https://docs.cloudfoundry.org/buildpacks/custom.html#specifying-default-versions (RuntimeError)
from /buildpack/tests/../compile-extensions/bin/default_version_for:37:in `run'
from /buildpack/tests/../compile-extensions/bin/default_version_for:58:in `<main>'
Error detecting NewRelic default version:
ok
test_newrelic.TestNewRelicCompiled.test_with_httpd_and_newrelic ... ok
test_newrelic.TestNewRelicWithApp5.test_standalone ... ok
----------------------------------------------------------------------
Ran 10 tests in 28.762s
OK
Running test [./tests/test_php_config_files.py]...
test_php_config_files.TestPHPConfigFiles.test_disables_expose_php ... ok
----------------------------------------------------------------------
Ran 1 test in 0.001s
OK
Running test [./tests/test_rewrite.py]...
test_rewrite.TestRewriteScriptPhp.test_rewrite_arg_dir ... ok
test_rewrite.TestRewriteScriptPhp.test_rewrite_arg_file ... ok
test_rewrite.TestRewriteScriptPhp.test_rewrite_no_args ... ok
test_rewrite.TestRewriteScriptWithHttpd.test_rewrite_with_sub_dirs ... ok
test_rewrite.TestRewriteScriptWithNginx.test_rewrite ... ok
----------------------------------------------------------------------
Ran 5 tests in 1.152s
OK
Running test [./tests/test_sessions.py]...
/buildpack/extensions/sessions/extension.py:114: SyntaxWarning: invalid escape sequence '\.'
'^session\.name = JSESSIONID$',
/buildpack/extensions/sessions/extension.py:117: SyntaxWarning: invalid escape sequence '\.'
'^session\.save_handler = files$',
/buildpack/extensions/sessions/extension.py:120: SyntaxWarning: invalid escape sequence '\.'
'^session\.save_path = "@{TMPDIR}"$',
test_sessions.TestSessions.test_alt_name_logic_memcached ... ok
test_sessions.TestSessions.test_alt_name_logic_redis ... ok
test_sessions.TestSessions.test_configure_adds_memcached_config_to_php_ini ... ok
test_sessions.TestSessions.test_configure_adds_memcached_extension ... ok
test_sessions.TestSessions.test_configure_adds_redis_config_to_php_ini ... ok
test_sessions.TestSessions.test_configure_adds_redis_extension ... ok
test_sessions.TestSessions.test_load_session_alt_name ... ok
test_sessions.TestSessions.test_load_session_name_contains_memcached ... ok
test_sessions.TestSessions.test_load_session_name_contains_redis ... ok
test_sessions.TestSessions.test_load_session_no_service ... ok
test_sessions.TestSessions.test_load_session_redis_but_not_for_sessions ... ok
test_sessions.TestSessions.test_should_compile ... ok
----------------------------------------------------------------------
Ran 12 tests in 0.008s
OK
• [SLOW TEST:176.219 seconds]
python unit tests
/Users/gcobb/workspace/php-buildpack/src/php/unit/python_unit_specs_test.go:15
should all pass
/Users/gcobb/workspace/php-buildpack/src/php/unit/python_unit_specs_test.go:16
------------------------------
Options.JSON
PHP_81_LATEST will have the latest 8.1 version
/Users/gcobb/workspace/php-buildpack/src/php/unit/available_versions_test.go:27
•
------------------------------
Options.JSON
PHP_82_LATEST will have the latest 8.2 version
/Users/gcobb/workspace/php-buildpack/src/php/unit/available_versions_test.go:34
•
------------------------------
Options.JSON
PHP_DEFAULT will have the latest 8.1 version
/Users/gcobb/workspace/php-buildpack/src/php/unit/available_versions_test.go:41
•
Ran 5 of 5 Specs in 178.619 seconds
SUCCESS! -- 5 Passed | 0 Failed | 0 Pending | 0 Skipped
PASS
Ginkgo ran 1 suite in 3m0.920686542s
Test Suite Passed
Integration tests:
❯ COMPOSER_GITHUB_OAUTH_TOKEN=foo CF_STACK=cflinuxfs4 ./scripts/integration.sh
Running integration tests (cached=false, stack=cflinuxfs4)
=== RUN TestIntegration
Running Suite: Integration Suite
================================
Random Seed: 1724908375
Will run 62 of 64 specs
• [SLOW TEST:107.167 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_nginx_test.go:12
deploying a basic PHP app using Nginx as the webserver
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_nginx_test.go:16
succeeds
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_nginx_test.go:23
------------------------------
S [SKIPPING] [0.000 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_nginx_test.go:12
has no traffic [It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:209
Running uncached tests
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:148
------------------------------
• [SLOW TEST:97.978 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_nginx_test.go:12
using default versions
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_nginx_test.go:40
installs the default version of nginx
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_nginx_test.go:48
------------------------------
S [SKIPPING] in Spec Setup (BeforeEach) [0.000 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_newrelic_test.go:12
in offline mode
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_newrelic_test.go:16
succeeds [BeforeEach]
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_newrelic_test.go:21
Running uncached tests
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:148
------------------------------
S [SKIPPING] in Spec Setup (BeforeEach) [0.000 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_newrelic_test.go:12
in offline mode
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_newrelic_test.go:16
has no traffic [BeforeEach]
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:209
Running uncached tests
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:148
------------------------------
• [SLOW TEST:104.410 seconds]
App that uses Kafka
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_kafka_test.go:12
deploying a basic PHP app using RdKafka module
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_kafka_test.go:16
after the RdKafka module has been loaded into PHP
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_kafka_test.go:17
logs that Producer could not connect to a Kafka server
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_kafka_test.go:24
------------------------------
• [SLOW TEST:107.151 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_laminas_app_test.go:12
deploying a Laminas app with locally-vendored dependencies
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_laminas_app_test.go:16
------------------------------
S [SKIPPING] [0.000 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_laminas_app_test.go:12
has no traffic [It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:209
Running uncached tests
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:148
------------------------------
• [SLOW TEST:113.846 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_laminas_app_test.go:12
deploying a Laminas app with remote dependencies
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_laminas_app_test.go:25
------------------------------
• [SLOW TEST:125.797 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_amqp_test.go:13
deploying a basic PHP app using AMQP module
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_amqp_test.go:17
after the AMQP module has been loaded into PHP
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_amqp_test.go:18
succeeds
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_amqp_test.go:19
------------------------------
• [SLOW TEST:19.742 seconds]
When composer.json is invalid JSON
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_invalid_json_test.go:12
fails to stage
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_invalid_json_test.go:16
------------------------------
• [SLOW TEST:98.862 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_test.go:12
deploying a basic PHP app
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_test.go:22
------------------------------
S [SKIPPING] [0.274 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_test.go:12
has no traffic [It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:209
Running uncached tests
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:148
------------------------------
S [SKIPPING] [0.000 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_cake_app_test.go:12
deploying a Cake application with local dependencies
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_cake_app_test.go:18
[It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_cake_app_test.go:19
Running uncached tests
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:148
------------------------------
S [SKIPPING] [0.000 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_cake_app_test.go:12
deploying a Cake application with local dependencies
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_cake_app_test.go:18
has no traffic [It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:209
Running uncached tests
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:148
------------------------------
• [SLOW TEST:155.074 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_cake_app_test.go:12
deploying a Cake application with remote dependencies
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_cake_app_test.go:36
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_cake_app_test.go:37
------------------------------
• [SLOW TEST:105.383 seconds]
Composer with custom path
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_custom_path_test.go:12
succeeds
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_custom_path_test.go:16
------------------------------
• [SLOW TEST:163.987 seconds]
Deploy app with
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:15
single dynatrace service without manifest.json
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:65
------------------------------
• [SLOW TEST:85.290 seconds]
Deploy app with
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:15
Deploy app with multiple dynatrace services
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:98
------------------------------
• [SLOW TEST:171.800 seconds]
Deploy app with
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:15
Deploy app with single dynatrace service, wrong url and skiperrors on true
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:118
------------------------------
• [SLOW TEST:98.071 seconds]
Deploy app with
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:15
Deploy app with single dynatrace service, wrong url and skiperrors not set
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:148
------------------------------
• [SLOW TEST:153.720 seconds]
Deploy app with
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:15
Deploy app with single dynatrace service and network zone set
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:175
------------------------------
• [SLOW TEST:150.757 seconds]
Deploy app with
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:15
Deploy app with single dynatrace service and check for config update
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_dynatrace_test.go:187
------------------------------
Pushing app local_dependencies-nnqdprcxkppkafjvreui to org org / space space as admin...
Getting app info...
Creating app with these attributes...
+ name: local_dependencies-nnqdprcxkppkafjvreui
path: /Users/gcobb/workspace/php-buildpack/fixtures/local_dependencies
+ disk quota: 750M
+ memory: 256M
+ stack: cflinuxfs4
routes:
+ localdependencies-nnqdprcxkppkafjvreui.countering.app-runtime-interfaces.ci.cloudfoundry.org
Creating app local_dependencies-nnqdprcxkppkafjvreui...
Mapping routes...
Comparing local files to remote cache...
Packaging files to upload...
Uploading files...
205.09 KiB / 205.09 KiB [================================================================================================================================================================================] 100.00% 1s
Waiting for API to complete processing files...
name: local_dependencies-nnqdprcxkppkafjvreui
requested state: stopped
routes: localdependencies-nnqdprcxkppkafjvreui.countering.app-runtime-interfaces.ci.cloudfoundry.org
last uploaded:
stack:
buildpacks:
type: web
instances: 0/1
memory usage: 256M
state since cpu memory disk details
#0 down 2024-08-29T05:44:07Z 0.0% 0 of 0 0 of 0
Setting env variable 'COMPOSER_GITHUB_OAUTH_TOKEN' for app local_dependencies-nnqdprcxkppkafjvreui in org org / space space as admin...
OK
TIP: Use 'cf restage local_dependencies-nnqdprcxkppkafjvreui' to ensure your env variable changes take effect
signal: killed
Deleting app local_dependencies-nnqdprcxkppkafjvreui in org org / space space as admin...
OK
• Failure [114.419 seconds]
Composer
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_can_configure_github_oauth_token_test.go:13
deploying an app with valid $COMPOSER_GITHUB_OAUTH_TOKEN variable set [It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_can_configure_github_oauth_token_test.go:23
Timed out after 10.000s.
Expected
<string>: Retrieving logs for app local_dependencies-nnqdprcxkppkafjvreui in org org / space space as admin...
2024-08-28T22:44:08.67-0700 [API/0] OUT Creating build for app with guid 8b7752f8-c7d3-4bd9-a64f-3a7d13b0e2be
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloading binary_buildpack...
2024-08-28T22:44:08.79-0700 [API/0] OUT Updated app with guid 8b7752f8-c7d3-4bd9-a64f-3a7d13b0e2be ({"state"=>"STARTED"})
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloading nodejs_buildpack...
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloading php_buildpack...
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloading php_buildpack_2...
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloading nginx_buildpack...
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloaded nginx_buildpack
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloading java_buildpack...
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloaded nodejs_buildpack
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloading staticfile_buildpack...
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloaded php_buildpack_2
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloading ruby_buildpack...
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloaded binary_buildpack
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloading dotnet_core_buildpack...
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloaded php_buildpack
2024-08-28T22:44:08.81-0700 [STG/0] OUT Downloading go_buildpack...
2024-08-28T22:44:08.82-0700 [STG/0] OUT Downloaded java_buildpack
2024-08-28T22:44:08.82-0700 [STG/0] OUT Downloading python_buildpack...
2024-08-28T22:44:08.82-0700 [STG/0] OUT Downloaded staticfile_buildpack
2024-08-28T22:44:08.82-0700 [STG/0] OUT Downloading r_buildpack...
2024-08-28T22:44:08.82-0700 [STG/0] OUT Downloaded go_buildpack
2024-08-28T22:44:08.82-0700 [STG/0] OUT Downloaded ruby_buildpack
2024-08-28T22:44:08.82-0700 [STG/0] OUT Downloaded dotnet_core_buildpack
2024-08-28T22:44:08.82-0700 [STG/0] OUT Downloaded r_buildpack
2024-08-28T22:44:08.83-0700 [STG/0] OUT Downloaded python_buildpack
2024-08-28T22:44:08.83-0700 [STG/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 creating container for instance 7684c61a-ecac-4baa-9542-2a74048d0c2e
2024-08-28T22:44:09.10-0700 [STG/0] OUT Security group rules were updated
2024-08-28T22:44:09.12-0700 [STG/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 successfully created container for instance 7684c61a-ecac-4baa-9542-2a74048d0c2e
2024-08-28T22:44:09.41-0700 [STG/0] OUT Downloading app package...
2024-08-28T22:44:09.45-0700 [STG/0] OUT Downloaded app package (205.1K)
2024-08-28T22:44:14.27-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py:97: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
2024-08-28T22:44:14.27-0700 [STG/0] ERR if requested is None or requested is '':
2024-08-28T22:44:14.38-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:278: SyntaxWarning: invalid escape sequence '\d'
2024-08-28T22:44:14.38-0700 [STG/0] ERR NUMERIC = re.compile("^\d+$")
2024-08-28T22:44:14.38-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:684: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:44:14.38-0700 [STG/0] ERR range_ = " ".join(re.split("\s+", range_))
2024-08-28T22:44:14.38-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:692: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:44:14.38-0700 [STG/0] ERR set_ = re.split("\s+", ' '.join([parse_comparator(comp, loose) for comp in range_.split(" ")]))
2024-08-28T22:44:14.38-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:744: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:44:14.38-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:44:14.38-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:785: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:44:14.38-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:44:14.38-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:836: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:44:14.38-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:44:15.67-0700 [STG/0] OUT -------> Buildpack version 4.6.22
2024-08-28T22:44:17.47-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/dynatrace/extension.py:263: SyntaxWarning: invalid escape sequence '\['
2024-08-28T22:44:17.47-0700 [STG/0] ERR section_regex = re.compile('\[(.*)\]')
2024-08-28T22:44:17.47-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:114: SyntaxWarning: invalid escape sequence '\.'
2024-08-28T22:44:17.47-0700 [STG/0] ERR '^session\.name = JSESSIONID$',
2024-08-28T22:44:17.47-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:117: SyntaxWarning: invalid escape sequence '\.'
2024-08-28T22:44:17.47-0700 [STG/0] ERR '^session\.save_handler = files$',
2024-08-28T22:44:17.47-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:120: SyntaxWarning: invalid escape sequence '\.'
2024-08-28T22:44:17.47-0700 [STG/0] ERR '^session\.save_path = "@{TMPDIR}"$',
2024-08-28T22:44:17.48-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py:97: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
2024-08-28T22:44:17.48-0700 [STG/0] ERR if requested is None or requested is '':
2024-08-28T22:44:17.49-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:278: SyntaxWarning: invalid escape sequence '\d'
2024-08-28T22:44:17.49-0700 [STG/0] ERR NUMERIC = re.compile("^\d+$")
2024-08-28T22:44:17.49-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:684: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:44:17.49-0700 [STG/0] ERR range_ = " ".join(re.split("\s+", range_))
2024-08-28T22:44:17.49-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:692: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:44:17.49-0700 [STG/0] ERR set_ = re.split("\s+", ' '.join([parse_comparator(comp, loose) for comp in range_.split(" ")]))
2024-08-28T22:44:17.49-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:744: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:44:17.49-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:44:17.49-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:785: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:44:17.49-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:44:17.49-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:836: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:44:17.49-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:44:17.52-0700 [STG/0] OUT Installing HTTPD
2024-08-28T22:44:17.52-0700 [STG/0] OUT HTTPD 2.4.61
2024-08-28T22:44:17.81-0700 [STG/0] OUT Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_httpd_httpd_2.4.61_linux_x64_cflinuxfs4_234a6ef5.tgz] to [/tmp]
2024-08-28T22:44:18.20-0700 [STG/0] OUT Installing PHP
2024-08-28T22:44:18.20-0700 [STG/0] OUT PHP 8.1.27
2024-08-28T22:44:19.26-0700 [STG/0] OUT Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_php_php_8.1.27_linux_x64_cflinuxfs4_9c19636c.tgz] to [/tmp]
2024-08-28T22:44:19.40-0700 [STG/0] OUT **WARNING** A newer version of php is available in this buildpack. Please adjust your app to use version 8.1.28 instead of version 8.1.27 as soon as possible. Old versions of php are only provided to assist in migrating to newer versions.
2024-08-28T22:44:23.41-0700 [STG/0] OUT Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_php_php_8.1.27_linux_x64_cflinuxfs4_9c19636c.tgz] to [/tmp]
2024-08-28T22:44:23.56-0700 [STG/0] OUT **WARNING** A newer version of php is available in this buildpack. Please adjust your app to use version 8.1.28 instead of version 8.1.27 as soon as possible. Old versions of php are only provided to assist in migrating to newer versions.
2024-08-28T22:44:26.28-0700 [STG/0] OUT Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_composer_composer_2.7.7_linux_noarch_any-stack_aab940cd.phar] to [/tmp]
2024-08-28T22:44:26.62-0700 [STG/0] ERR Installing dependencies from lock file
2024-08-28T22:44:26.62-0700 [STG/0] ERR Verifying lock file contents can be installed on current platform.
2024-08-28T22:44:26.63-0700 [STG/0] ERR Nothing to install, update or remove
2024-08-28T22:44:26.63-0700 [STG/0] ERR Generating autoload files
2024-08-28T22:44:27.03-0700 [STG/0] OUT Finished: [2024-08-29 05:44:27.036581]
2024-08-28T22:45:15.04-0700 [STG/0] OUT Exit status 0
2024-08-28T22:45:15.04-0700 [STG/0] OUT Uploading droplet, build artifacts cache...
2024-08-28T22:45:15.04-0700 [STG/0] OUT Uploading droplet...
2024-08-28T22:45:15.04-0700 [STG/0] OUT Uploading build artifacts cache...
2024-08-28T22:45:15.10-0700 [STG/0] OUT Uploaded build artifacts cache (333B)
2024-08-28T22:45:19.32-0700 [API/0] OUT Creating droplet for app with guid 8b7752f8-c7d3-4bd9-a64f-3a7d13b0e2be
2024-08-28T22:45:23.15-0700 [STG/0] OUT Uploaded droplet (213.5M)
2024-08-28T22:45:23.20-0700 [STG/0] OUT Uploading complete
2024-08-28T22:45:23.69-0700 [STG/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 stopping instance 7684c61a-ecac-4baa-9542-2a74048d0c2e
2024-08-28T22:45:23.69-0700 [STG/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 destroying container for instance 7684c61a-ecac-4baa-9542-2a74048d0c2e
2024-08-28T22:45:24.36-0700 [CELL/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 creating container for instance 9531c6b1-68bc-4866-467f-92fb
2024-08-28T22:45:24.68-0700 [CELL/0] OUT Security group rules were updated
2024-08-28T22:45:24.70-0700 [CELL/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 successfully created container for instance 9531c6b1-68bc-4866-467f-92fb
2024-08-28T22:45:24.83-0700 [STG/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 successfully destroyed container for instance 7684c61a-ecac-4baa-9542-2a74048d0c2e
2024-08-28T22:45:25.33-0700 [CELL/0] OUT Downloading droplet...
2024-08-28T22:45:36.31-0700 [CELL/0] OUT Downloaded droplet (213.5M)
2024-08-28T22:45:36.31-0700 [CELL/0] OUT Starting health monitoring of container
2024-08-28T22:45:36.57-0700 [APP/PROC/WEB/0] OUT Invoking pre-start scripts.
2024-08-28T22:45:37.55-0700 [APP/PROC/WEB/0] OUT Invoking start command.
2024-08-28T22:45:37.72-0700 [APP/PROC/WEB/0] OUT 05:45:37 httpd | [Thu Aug 29 05:45:37.726214 2024] [mpm_event:notice] [pid 116:tid 116] AH00489: Apache/2.4.61 (Unix) configured -- resuming normal operations
2024-08-28T22:45:37.72-0700 [APP/PROC/WEB/0] OUT 05:45:37 httpd | [Thu Aug 29 05:45:37.726447 2024] [mpm_event:info] [pid 116:tid 116] AH00490: Server built: Jul 3 2024 20:44:29
2024-08-28T22:45:37.72-0700 [APP/PROC/WEB/0] OUT 05:45:37 httpd | [Thu Aug 29 05:45:37.726472 2024] [core:notice] [pid 116:tid 116] AH00094: Command line: '/app/httpd/bin/httpd -f /home/vcap/app/httpd/conf/httpd.conf -D FOREGROUND'
2024-08-28T22:45:37.76-0700 [APP/PROC/WEB/0] OUT 05:45:37 php-fpm | [29-Aug-2024 05:45:37] NOTICE: fpm is running, pid 114
2024-08-28T22:45:37.76-0700 [APP/PROC/WEB/0] OUT 05:45:37 php-fpm | [29-Aug-2024 05:45:37] NOTICE: ready to handle connections
2024-08-28T22:45:41.37-0700 [CELL/0] OUT Container became healthy
2024-08-28T22:45:41.40-0700 [API/0] OUT Process became ready with guid 8b7752f8-c7d3-4bd9-a64f-3a7d13b0e2be payload: {"instance"=>"9531c6b1-68bc-4866-467f-92fb", "index"=>0, "cell_id"=>"3bfbaf85-dcdd-4717-b5b7-ced12ef96293", "ready"=>true, "version"=>"7ce4b987-0ca2-4e88-9f9c-a41b3b8947a5"}
to contain substring
<string>: -----> Using custom GitHub OAuth token in $COMPOSER_GITHUB_OAUTH_TOKEN
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_can_configure_github_oauth_token_test.go:27
------------------------------
Pushing app local_dependencies-jzrzlcouvromumzejtqd to org org / space space as admin...
Getting app info...
Creating app with these attributes...
+ name: local_dependencies-jzrzlcouvromumzejtqd
path: /Users/gcobb/workspace/php-buildpack/fixtures/local_dependencies
+ disk quota: 750M
+ memory: 256M
+ stack: cflinuxfs4
routes:
+ localdependencies-jzrzlcouvromumzejtqd.countering.app-runtime-interfaces.ci.cloudfoundry.org
Creating app local_dependencies-jzrzlcouvromumzejtqd...
Mapping routes...
Comparing local files to remote cache...
Packaging files to upload...
Uploading files...
205.09 KiB / 205.09 KiB [================================================================================================================================================================================] 100.00% 1s
Waiting for API to complete processing files...
name: local_dependencies-jzrzlcouvromumzejtqd
requested state: stopped
routes: localdependencies-jzrzlcouvromumzejtqd.countering.app-runtime-interfaces.ci.cloudfoundry.org
last uploaded:
stack:
buildpacks:
type: web
instances: 0/1
memory usage: 256M
state since cpu memory disk details
#0 down 2024-08-29T05:46:04Z 0.0% 0 of 0 0 of 0
Setting env variable 'COMPOSER_GITHUB_OAUTH_TOKEN' for app local_dependencies-jzrzlcouvromumzejtqd in org org / space space as admin...
OK
TIP: Use 'cf restage local_dependencies-jzrzlcouvromumzejtqd' to ensure your env variable changes take effect
signal: killed
Deleting app local_dependencies-jzrzlcouvromumzejtqd in org org / space space as admin...
OK
• Failure [117.037 seconds]
Composer
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_can_configure_github_oauth_token_test.go:13
deploying an app with an invalid $COMPOSER_GITHUB_OAUTH_TOKEN [It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_can_configure_github_oauth_token_test.go:30
Timed out after 10.000s.
Expected
<string>: Retrieving logs for app local_dependencies-jzrzlcouvromumzejtqd in org org / space space as admin...
2024-08-28T22:46:06.35-0700 [API/0] OUT Creating build for app with guid d06fd852-9ed3-4f58-af3b-30dddb660921
2024-08-28T22:46:06.47-0700 [API/0] OUT Updated app with guid d06fd852-9ed3-4f58-af3b-30dddb660921 ({"state"=>"STARTED"})
2024-08-28T22:46:06.49-0700 [STG/0] OUT Downloading binary_buildpack...
2024-08-28T22:46:06.49-0700 [STG/0] OUT Downloading java_buildpack...
2024-08-28T22:46:06.49-0700 [STG/0] OUT Downloading ruby_buildpack...
2024-08-28T22:46:06.49-0700 [STG/0] OUT Downloading go_buildpack...
2024-08-28T22:46:06.49-0700 [STG/0] OUT Downloading php_buildpack_2...
2024-08-28T22:46:06.49-0700 [STG/0] OUT Downloaded java_buildpack
2024-08-28T22:46:06.49-0700 [STG/0] OUT Downloaded php_buildpack_2
2024-08-28T22:46:06.49-0700 [STG/0] OUT Downloading php_buildpack...
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloading python_buildpack...
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloaded go_buildpack
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloading staticfile_buildpack...
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloaded binary_buildpack
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloading dotnet_core_buildpack...
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloaded ruby_buildpack
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloading nodejs_buildpack...
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloaded python_buildpack
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloading nginx_buildpack...
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloaded php_buildpack
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloading r_buildpack...
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloaded dotnet_core_buildpack
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloaded nodejs_buildpack
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloaded staticfile_buildpack
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloaded nginx_buildpack
2024-08-28T22:46:06.50-0700 [STG/0] OUT Downloaded r_buildpack
2024-08-28T22:46:06.50-0700 [STG/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 creating container for instance d20b7a3e-f950-439b-bb3d-f209f64e8b7b
2024-08-28T22:46:06.78-0700 [STG/0] OUT Security group rules were updated
2024-08-28T22:46:06.80-0700 [STG/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 successfully created container for instance d20b7a3e-f950-439b-bb3d-f209f64e8b7b
2024-08-28T22:46:07.12-0700 [STG/0] OUT Downloading app package...
2024-08-28T22:46:07.16-0700 [STG/0] OUT Downloaded app package (205.1K)
2024-08-28T22:46:12.09-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py:97: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
2024-08-28T22:46:12.09-0700 [STG/0] ERR if requested is None or requested is '':
2024-08-28T22:46:12.20-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:278: SyntaxWarning: invalid escape sequence '\d'
2024-08-28T22:46:12.20-0700 [STG/0] ERR NUMERIC = re.compile("^\d+$")
2024-08-28T22:46:12.20-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:684: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:46:12.20-0700 [STG/0] ERR range_ = " ".join(re.split("\s+", range_))
2024-08-28T22:46:12.20-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:692: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:46:12.20-0700 [STG/0] ERR set_ = re.split("\s+", ' '.join([parse_comparator(comp, loose) for comp in range_.split(" ")]))
2024-08-28T22:46:12.20-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:744: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:46:12.20-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:46:12.20-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:785: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:46:12.20-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:46:12.21-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:836: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:46:12.21-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:46:13.58-0700 [STG/0] OUT -------> Buildpack version 4.6.22
2024-08-28T22:46:15.47-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/dynatrace/extension.py:263: SyntaxWarning: invalid escape sequence '\['
2024-08-28T22:46:15.47-0700 [STG/0] ERR section_regex = re.compile('\[(.*)\]')
2024-08-28T22:46:15.48-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:114: SyntaxWarning: invalid escape sequence '\.'
2024-08-28T22:46:15.48-0700 [STG/0] ERR '^session\.name = JSESSIONID$',
2024-08-28T22:46:15.48-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:117: SyntaxWarning: invalid escape sequence '\.'
2024-08-28T22:46:15.48-0700 [STG/0] ERR '^session\.save_handler = files$',
2024-08-28T22:46:15.48-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:120: SyntaxWarning: invalid escape sequence '\.'
2024-08-28T22:46:15.48-0700 [STG/0] ERR '^session\.save_path = "@{TMPDIR}"$',
2024-08-28T22:46:15.48-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py:97: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
2024-08-28T22:46:15.48-0700 [STG/0] ERR if requested is None or requested is '':
2024-08-28T22:46:15.49-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:278: SyntaxWarning: invalid escape sequence '\d'
2024-08-28T22:46:15.49-0700 [STG/0] ERR NUMERIC = re.compile("^\d+$")
2024-08-28T22:46:15.49-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:684: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:46:15.49-0700 [STG/0] ERR range_ = " ".join(re.split("\s+", range_))
2024-08-28T22:46:15.49-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:692: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:46:15.49-0700 [STG/0] ERR set_ = re.split("\s+", ' '.join([parse_comparator(comp, loose) for comp in range_.split(" ")]))
2024-08-28T22:46:15.49-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:744: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:46:15.49-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:46:15.49-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:785: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:46:15.49-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:46:15.50-0700 [STG/0] ERR /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:836: SyntaxWarning: invalid escape sequence '\s'
2024-08-28T22:46:15.50-0700 [STG/0] ERR for c in re.split("\s+", comp.strip())])
2024-08-28T22:46:15.52-0700 [STG/0] OUT Installing HTTPD
2024-08-28T22:46:15.52-0700 [STG/0] OUT HTTPD 2.4.61
2024-08-28T22:46:15.83-0700 [STG/0] OUT Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_httpd_httpd_2.4.61_linux_x64_cflinuxfs4_234a6ef5.tgz] to [/tmp]
2024-08-28T22:46:16.24-0700 [STG/0] OUT Installing PHP
2024-08-28T22:46:16.24-0700 [STG/0] OUT PHP 8.1.27
2024-08-28T22:46:17.37-0700 [STG/0] OUT Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_php_php_8.1.27_linux_x64_cflinuxfs4_9c19636c.tgz] to [/tmp]
2024-08-28T22:46:17.53-0700 [STG/0] OUT **WARNING** A newer version of php is available in this buildpack. Please adjust your app to use version 8.1.28 instead of version 8.1.27 as soon as possible. Old versions of php are only provided to assist in migrating to newer versions.
2024-08-28T22:46:21.49-0700 [STG/0] OUT Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_php_php_8.1.27_linux_x64_cflinuxfs4_9c19636c.tgz] to [/tmp]
2024-08-28T22:46:21.64-0700 [STG/0] OUT **WARNING** A newer version of php is available in this buildpack. Please adjust your app to use version 8.1.28 instead of version 8.1.27 as soon as possible. Old versions of php are only provided to assist in migrating to newer versions.
2024-08-28T22:46:24.43-0700 [STG/0] OUT Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_composer_composer_2.7.7_linux_noarch_any-stack_aab940cd.phar] to [/tmp]
2024-08-28T22:46:24.78-0700 [STG/0] ERR Installing dependencies from lock file
2024-08-28T22:46:24.78-0700 [STG/0] ERR Verifying lock file contents can be installed on current platform.
2024-08-28T22:46:24.80-0700 [STG/0] ERR Nothing to install, update or remove
2024-08-28T22:46:24.80-0700 [STG/0] ERR Generating autoload files
2024-08-28T22:46:25.20-0700 [STG/0] OUT Finished: [2024-08-29 05:46:25.205394]
2024-08-28T22:47:11.25-0700 [STG/0] OUT Exit status 0
2024-08-28T22:47:11.25-0700 [STG/0] OUT Uploading droplet, build artifacts cache...
2024-08-28T22:47:11.25-0700 [STG/0] OUT Uploading droplet...
2024-08-28T22:47:11.25-0700 [STG/0] OUT Uploading build artifacts cache...
2024-08-28T22:47:11.70-0700 [STG/0] OUT Uploaded build artifacts cache (318B)
2024-08-28T22:47:16.63-0700 [API/0] OUT Creating droplet for app with guid d06fd852-9ed3-4f58-af3b-30dddb660921
2024-08-28T22:47:21.49-0700 [STG/0] OUT Uploaded droplet (213.4M)
2024-08-28T22:47:21.53-0700 [STG/0] OUT Uploading complete
2024-08-28T22:47:22.39-0700 [STG/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 stopping instance d20b7a3e-f950-439b-bb3d-f209f64e8b7b
2024-08-28T22:47:22.39-0700 [STG/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 destroying container for instance d20b7a3e-f950-439b-bb3d-f209f64e8b7b
2024-08-28T22:47:22.76-0700 [CELL/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 creating container for instance 7119783f-3b2c-436d-7eb2-cd45
2024-08-28T22:47:23.11-0700 [CELL/0] OUT Security group rules were updated
2024-08-28T22:47:23.14-0700 [CELL/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 successfully created container for instance 7119783f-3b2c-436d-7eb2-cd45
2024-08-28T22:47:23.49-0700 [STG/0] OUT Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 successfully destroyed container for instance d20b7a3e-f950-439b-bb3d-f209f64e8b7b
2024-08-28T22:47:23.71-0700 [CELL/0] OUT Downloading droplet...
2024-08-28T22:47:34.41-0700 [CELL/0] OUT Downloaded droplet (213.4M)
2024-08-28T22:47:34.41-0700 [CELL/0] OUT Starting health monitoring of container
2024-08-28T22:47:34.73-0700 [APP/PROC/WEB/0] OUT Invoking pre-start scripts.
2024-08-28T22:47:36.00-0700 [APP/PROC/WEB/0] OUT Invoking start command.
2024-08-28T22:47:36.21-0700 [APP/PROC/WEB/0] OUT 05:47:36 httpd | [Thu Aug 29 05:47:36.211125 2024] [mpm_event:notice] [pid 120:tid 120] AH00489: Apache/2.4.61 (Unix) configured -- resuming normal operations
2024-08-28T22:47:36.21-0700 [APP/PROC/WEB/0] OUT 05:47:36 httpd | [Thu Aug 29 05:47:36.211501 2024] [mpm_event:info] [pid 120:tid 120] AH00490: Server built: Jul 3 2024 20:44:29
2024-08-28T22:47:36.21-0700 [APP/PROC/WEB/0] OUT 05:47:36 httpd | [Thu Aug 29 05:47:36.211541 2024] [core:notice] [pid 120:tid 120] AH00094: Command line: '/app/httpd/bin/httpd -f /home/vcap/app/httpd/conf/httpd.conf -D FOREGROUND'
2024-08-28T22:47:36.25-0700 [APP/PROC/WEB/0] OUT 05:47:36 php-fpm | [29-Aug-2024 05:47:36] NOTICE: fpm is running, pid 118
2024-08-28T22:47:36.25-0700 [APP/PROC/WEB/0] OUT 05:47:36 php-fpm | [29-Aug-2024 05:47:36] NOTICE: ready to handle connections
2024-08-28T22:47:38.87-0700 [CELL/0] OUT Container became healthy
2024-08-28T22:47:38.90-0700 [API/0] OUT Process became ready with guid d06fd852-9ed3-4f58-af3b-30dddb660921 payload: {"instance"=>"7119783f-3b2c-436d-7eb2-cd45", "index"=>0, "cell_id"=>"3bfbaf85-dcdd-4717-b5b7-ced12ef96293", "ready"=>true, "version"=>"b22eeafe-c9ae-4d43-9f42-5009e133ff7a"}
to contain substring
<string>: -----> The GitHub OAuth token supplied from $COMPOSER_GITHUB_OAUTH_TOKEN is invalid
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_can_configure_github_oauth_token_test.go:34
------------------------------
• [SLOW TEST:98.306 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_and_proxying_test.go:12
deploying a basic PHP app using HTTPD as the webserver
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_and_proxying_test.go:16
does not set the HTTP_PROXY environment variable as the Proxy header value
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_and_proxying_test.go:23
------------------------------
• [SLOW TEST:98.105 seconds]
deploying a basic PHP app with compiled modules in PHP_EXTENSIONS
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_compiled_modules_test.go:10
starts
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_compiled_modules_test.go:14
------------------------------
Pushing app composer_latest_version-lhlredecreebfoyzsyub to org org / space space as admin...
Getting app info...
Creating app with these attributes...
+ name: composer_latest_version-lhlredecreebfoyzsyub
path: /Users/gcobb/workspace/php-buildpack/fixtures/composer_latest_version
+ disk quota: 750M
+ memory: 256M
+ stack: cflinuxfs4
routes:
+ composerlatestversion-lhlredecreebfoyzsyub.countering.app-runtime-interfaces.ci.cloudfoundry.org
Creating app composer_latest_version-lhlredecreebfoyzsyub...
Mapping routes...
Comparing local files to remote cache...
Packaging files to upload...
Uploading files...
2.47 KiB / 2.47 KiB [====================================================================================================================================================================================] 100.00% 1s
Waiting for API to complete processing files...
name: composer_latest_version-lhlredecreebfoyzsyub
requested state: stopped
routes: composerlatestversion-lhlredecreebfoyzsyub.countering.app-runtime-interfaces.ci.cloudfoundry.org
last uploaded:
stack:
buildpacks:
type: web
instances: 0/1
memory usage: 256M
state since cpu memory disk details
#0 down 2024-08-29T05:51:14Z 0.0% 0 of 0 0 of 0
Setting env variable 'COMPOSER_GITHUB_OAUTH_TOKEN' for app composer_latest_version-lhlredecreebfoyzsyub in org org / space space as admin...
OK
TIP: Use 'cf restage composer_latest_version-lhlredecreebfoyzsyub' to ensure your env variable changes take effect
signal: killed
Deleting app composer_latest_version-lhlredecreebfoyzsyub in org org / space space as admin...
OK
• Failure [28.797 seconds]
Composer with version set to 'latest'
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_version_set_to_latest_test.go:12
[It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_version_set_to_latest_test.go:16
Expected success, but got an error:
<*errors.errorString | 0x14000432ae0>:
err: exit status 1
logs: Starting app composer_latest_version-lhlredecreebfoyzsyub in org org / space space as admin...
Staging app and tracing logs...
Downloading binary_buildpack...
Downloading php_buildpack_2...
Downloading java_buildpack...
Downloading staticfile_buildpack...
Downloading ruby_buildpack...
Downloaded staticfile_buildpack
Downloading dotnet_core_buildpack...
Downloaded java_buildpack
Downloading nodejs_buildpack...
Downloaded php_buildpack_2
Downloading go_buildpack...
Downloaded binary_buildpack
Downloading nginx_buildpack...
Downloaded dotnet_core_buildpack
Downloading r_buildpack...
Downloaded go_buildpack
Downloading python_buildpack...
Downloaded nodejs_buildpack
Downloading php_buildpack...
Downloaded nginx_buildpack
Downloaded r_buildpack
Downloaded python_buildpack
Downloaded php_buildpack
Downloaded ruby_buildpack
Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 creating container for instance f8d5d6c2-fde1-48b2-9398-d7649510a5da
Security group rules were updated
Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 successfully created container for instance f8d5d6c2-fde1-48b2-9398-d7649510a5da
Downloading app package...
Downloaded app package (2.5K)
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py:97: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
if requested is None or requested is '':
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:278: SyntaxWarning: invalid escape sequence '\d'
NUMERIC = re.compile("^\d+$")
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:684: SyntaxWarning: invalid escape sequence '\s'
range_ = " ".join(re.split("\s+", range_))
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:692: SyntaxWarning: invalid escape sequence '\s'
set_ = re.split("\s+", ' '.join([parse_comparator(comp, loose) for comp in range_.split(" ")]))
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:744: SyntaxWarning: invalid escape sequence '\s'
for c in re.split("\s+", comp.strip())])
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:785: SyntaxWarning: invalid escape sequence '\s'
for c in re.split("\s+", comp.strip())])
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:836: SyntaxWarning: invalid escape sequence '\s'
for c in re.split("\s+", comp.strip())])
-------> Buildpack version 4.6.22
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/dynatrace/extension.py:263: SyntaxWarning: invalid escape sequence '\['
section_regex = re.compile('\[(.*)\]')
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:114: SyntaxWarning: invalid escape sequence '\.'
'^session\.name = JSESSIONID$',
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:117: SyntaxWarning: invalid escape sequence '\.'
'^session\.save_handler = files$',
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:120: SyntaxWarning: invalid escape sequence '\.'
'^session\.save_path = "@{TMPDIR}"$',
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py:97: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
if requested is None or requested is '':
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:278: SyntaxWarning: invalid escape sequence '\d'
NUMERIC = re.compile("^\d+$")
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:684: SyntaxWarning: invalid escape sequence '\s'
range_ = " ".join(re.split("\s+", range_))
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:692: SyntaxWarning: invalid escape sequence '\s'
set_ = re.split("\s+", ' '.join([parse_comparator(comp, loose) for comp in range_.split(" ")]))
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:744: SyntaxWarning: invalid escape sequence '\s'
for c in re.split("\s+", comp.strip())])
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:785: SyntaxWarning: invalid escape sequence '\s'
for c in re.split("\s+", comp.strip())])
/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:836: SyntaxWarning: invalid escape sequence '\s'
for c in re.split("\s+", comp.strip())])
Installing HTTPD
HTTPD 2.4.61
Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_httpd_httpd_2.4.61_linux_x64_cflinuxfs4_234a6ef5.tgz] to [/tmp]
Installing PHP
PHP 8.1.27
Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_php_php_8.1.27_linux_x64_cflinuxfs4_9c19636c.tgz] to [/tmp]
**WARNING** A newer version of php is available in this buildpack. Please adjust your app to use version 8.1.28 instead of version 8.1.27 as soon as possible. Old versions of php are only provided to assist in migrating to newer versions.
Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_php_php_8.1.27_linux_x64_cflinuxfs4_9c19636c.tgz] to [/tmp]
**WARNING** A newer version of php is available in this buildpack. Please adjust your app to use version 8.1.28 instead of version 8.1.27 as soon as possible. Old versions of php are only provided to assist in migrating to newer versions.
Traceback (most recent call last):
File "/tmp/buildpacks/dac1a61a1b0aa7ba/scripts/compile.py", line 59, in <module>
.extensions()
^^^^^^^^^^^^
File "/tmp/buildpacks/dac1a61a1b0aa7ba/lib/build_pack_utils/builder.py", line 212, in extensions
process_extension(path, ctx, 'compile', process, args=[self])
File "/tmp/buildpacks/dac1a61a1b0aa7ba/lib/build_pack_utils/utils.py", line 69, in process_extension
success(getattr(extn, to_call)(*args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py", line 443, in compile
return composer.compile(install)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/buildpacks/dac1a61a1b0aa7ba/lib/extension_helpers.py", line 154, in compile
self._compile(install)
File "/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py", line 195, in _compile
self.install()
File "/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py", line 222, in install
raise RuntimeError('"COMPOSER_VERSION": "latest" ' \
RuntimeError: "COMPOSER_VERSION": "latest" is not supported in the cached buildpack. Please vendor your preferred version of composer with your app, or use the provided default composer version.
Failed to compile droplet: Failed to run finalize script: exit status 1
Exit status 223
Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 stopping instance f8d5d6c2-fde1-48b2-9398-d7649510a5da
Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 destroying container for instance f8d5d6c2-fde1-48b2-9398-d7649510a5da
Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 successfully destroyed container for instance f8d5d6c2-fde1-48b2-9398-d7649510a5da
Error staging application: App staging failed in the buildpack compile phase
FAILED
{
s: "err: exit status 1\n\nlogs: Starting app composer_latest_version-lhlredecreebfoyzsyub in org org / space space as admin...\n\nStaging app and tracing logs...\n Downloading binary_buildpack...\n Downloading php_buildpack_2...\n Downloading java_buildpack...\n Downloading staticfile_buildpack...\n Downloading ruby_buildpack...\n Downloaded staticfile_buildpack\n Downloading dotnet_core_buildpack...\n Downloaded java_buildpack\n Downloading nodejs_buildpack...\n Downloaded php_buildpack_2\n Downloading go_buildpack...\n Downloaded binary_buildpack\n Downloading nginx_buildpack...\n Downloaded dotnet_core_buildpack\n Downloading r_buildpack...\n Downloaded go_buildpack\n Downloading python_buildpack...\n Downloaded nodejs_buildpack\n Downloading php_buildpack...\n Downloaded nginx_buildpack\n Downloaded r_buildpack\n Downloaded python_buildpack\n Downloaded php_buildpack\n Downloaded ruby_buildpack\n Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 creating container for instance f8d5d6c2-fde1-48b2-9398-d7649510a5da\n Security group rules were updated\n Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 successfully created container for instance f8d5d6c2-fde1-48b2-9398-d7649510a5da\n Downloading app package...\n Downloaded app package (2.5K)\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py:97: SyntaxWarning: \"is\" with 'str' literal. Did you mean \"==\"?\n if requested is None or requested is '':\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:278: SyntaxWarning: invalid escape sequence '\\d'\n NUMERIC = re.compile(\"^\\d+$\")\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:684: SyntaxWarning: invalid escape sequence '\\s'\n range_ = \" \".join(re.split(\"\\s+\", range_))\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:692: SyntaxWarning: invalid escape sequence '\\s'\n set_ = re.split(\"\\s+\", ' '.join([parse_comparator(comp, loose) for comp in range_.split(\" \")]))\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:744: SyntaxWarning: invalid escape sequence '\\s'\n for c in re.split(\"\\s+\", comp.strip())])\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:785: SyntaxWarning: invalid escape sequence '\\s'\n for c in re.split(\"\\s+\", comp.strip())])\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:836: SyntaxWarning: invalid escape sequence '\\s'\n for c in re.split(\"\\s+\", comp.strip())])\n -------> Buildpack version 4.6.22\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/dynatrace/extension.py:263: SyntaxWarning: invalid escape sequence '\\['\n section_regex = re.compile('\\[(.*)\\]')\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:114: SyntaxWarning: invalid escape sequence '\\.'\n '^session\\.name = JSESSIONID$',\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:117: SyntaxWarning: invalid escape sequence '\\.'\n '^session\\.save_handler = files$',\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/sessions/extension.py:120: SyntaxWarning: invalid escape sequence '\\.'\n '^session\\.save_path = \"@{TMPDIR}\"$',\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py:97: SyntaxWarning: \"is\" with 'str' literal. Did you mean \"==\"?\n if requested is None or requested is '':\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:278: SyntaxWarning: invalid escape sequence '\\d'\n NUMERIC = re.compile(\"^\\d+$\")\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:684: SyntaxWarning: invalid escape sequence '\\s'\n range_ = \" \".join(re.split(\"\\s+\", range_))\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:692: SyntaxWarning: invalid escape sequence '\\s'\n set_ = re.split(\"\\s+\", ' '.join([parse_comparator(comp, loose) for comp in range_.split(\" \")]))\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:744: SyntaxWarning: invalid escape sequence '\\s'\n for c in re.split(\"\\s+\", comp.strip())])\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:785: SyntaxWarning: invalid escape sequence '\\s'\n for c in re.split(\"\\s+\", comp.strip())])\n /tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:836: SyntaxWarning: invalid escape sequence '\\s'\n for c in re.split(\"\\s+\", comp.strip())])\n Installing HTTPD\n HTTPD 2.4.61\n Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_httpd_httpd_2.4.61_linux_x64_cflinuxfs4_234a6ef5.tgz] to [/tmp]\n Installing PHP\n PHP 8.1.27\n Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_php_php_8.1.27_linux_x64_cflinuxfs4_9c19636c.tgz] to [/tmp]\n **WARNING** A newer version of php is available in this buildpack. Please adjust your app to use version 8.1.28 instead of version 8.1.27 as soon as possible. Old versions of php are only provided to assist in migrating to newer versions.\n Downloaded [file:///tmp/buildpacks/dac1a61a1b0aa7ba/dependencies/https___buildpacks.cloudfoundry.org_dependencies_php_php_8.1.27_linux_x64_cflinuxfs4_9c19636c.tgz] to [/tmp]\n **WARNING** A newer version of php is available in this buildpack. Please adjust your app to use version 8.1.28 instead of version 8.1.27 as soon as possible. Old versions of php are only provided to assist in migrating to newer versions.\n Traceback (most recent call last):\n File \"/tmp/buildpacks/dac1a61a1b0aa7ba/scripts/compile.py\", line 59, in <module>\n .extensions()\n ^^^^^^^^^^^^\n File \"/tmp/buildpacks/dac1a61a1b0aa7ba/lib/build_pack_utils/builder.py\", line 212, in extensions\n process_extension(path, ctx, 'compile', process, args=[self])\n File \"/tmp/buildpacks/dac1a61a1b0aa7ba/lib/build_pack_utils/utils.py\", line 69, in process_extension\n success(getattr(extn, to_call)(*args))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py\", line 443, in compile\n return composer.compile(install)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/tmp/buildpacks/dac1a61a1b0aa7ba/lib/extension_helpers.py\", line 154, in compile\n self._compile(install)\n File \"/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py\", line 195, in _compile\n self.install()\n File \"/tmp/buildpacks/dac1a61a1b0aa7ba/extensions/composer/extension.py\", line 222, in install\n raise RuntimeError('\"COMPOSER_VERSION\": \"latest\" ' \\\n RuntimeError: \"COMPOSER_VERSION\": \"latest\" is not supported in the cached buildpack. Please vendor your preferred version of composer with your app, or use the provided default composer version.\n Failed to compile droplet: Failed to run finalize script: exit status 1\n Exit status 223\n Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 stopping instance f8d5d6c2-fde1-48b2-9398-d7649510a5da\n Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 destroying container for instance f8d5d6c2-fde1-48b2-9398-d7649510a5da\n Cell 3bfbaf85-dcdd-4717-b5b7-ced12ef96293 successfully destroyed container for instance f8d5d6c2-fde1-48b2-9398-d7649510a5da\nError staging application: App staging failed in the buildpack compile phase\nFAILED\n",
}
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:94
------------------------------
• [SLOW TEST:98.317 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_app_testing_locale_test.go:12
the application should run and emit the translated string
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_app_testing_locale_test.go:16
expects the app to respond to GET request
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_app_testing_locale_test.go:22
------------------------------
• [SLOW TEST:97.810 seconds]
An app deployed specifying unsupported extensions and valid
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_unsupported_extensions_test.go:10
runs
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_unsupported_extensions_test.go:14
------------------------------
• [SLOW TEST:221.254 seconds]
running supply buildpacks before the php buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/fake_supply_before_php_test.go:10
the app is pushed once
/Users/gcobb/workspace/php-buildpack/src/php/integration/fake_supply_before_php_test.go:19
finds the supplied dependency in the runtime container
/Users/gcobb/workspace/php-buildpack/src/php/integration/fake_supply_before_php_test.go:33
------------------------------
• [SLOW TEST:101.778 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_an_app_with_custom_extension_test.go:10
app has a custom extension
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_an_app_with_custom_extension_test.go:16
deploys successfully
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_an_app_with_custom_extension_test.go:21
------------------------------
S [SKIPPING] [0.000 seconds]
Composer failures
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_failures_are_caught_test.go:13
deploying an app with an impossible dependency in composer.json [It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_failures_are_caught_test.go:17
Running uncached tests
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:148
------------------------------
• [SLOW TEST:20.551 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_non_php_app_with_composer_json_test.go:12
deploying a non php app with composer.json file
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_non_php_app_with_composer_json_test.go:16
does not detect the app
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_non_php_app_with_composer_json_test.go:20
------------------------------
• [SLOW TEST:94.901 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_nginx_and_proxying_test.go:12
deploying a basic PHP app using Nginx as the webserver
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_nginx_and_proxying_test.go:16
does not set the HTTP_PROXY environment variable as the Proxy header value
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_nginx_and_proxying_test.go:23
------------------------------
P [PENDING]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_symfony_app_test.go:12
deploying a symfony 5 app with locally-vendored dependencies
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_symfony_app_test.go:18
------------------------------
P [PENDING]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_symfony_app_test.go:12
deploying a symfony 5 app with remotely-sourced dependencies
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_symfony_app_test.go:29
------------------------------
• [SLOW TEST:99.047 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_all_modules_test.go:58
extensions are specified in .bp-config
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_all_modules_test.go:64
deploying a basic PHP app that loads all prepackaged extensions
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_all_modules_test.go:65
------------------------------
S [SKIPPING] [0.001 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_all_modules_test.go:58
extensions are specified in .bp-config
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_all_modules_test.go:64
deploying a basic PHP app with cflinuxfs3 extensions [It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_all_modules_test.go:82
Skipping because the current stack is not cflinuxfs3
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:154
------------------------------
• [SLOW TEST:107.768 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_all_modules_test.go:58
extensions are specified in composer.json
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_all_modules_test.go:102
deploying a basic PHP app that loads all prepackaged extensions
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_all_modules_test.go:103
------------------------------
• [SLOW TEST:135.362 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_phpredis_test.go:13
deploying a basic PHP app using phpredis module
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_phpredis_test.go:17
after the phpredis module has been loaded into PHP
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_phpredis_test.go:18
logs that phpredis could not connect to a server
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_phpredis_test.go:25
------------------------------
• [SLOW TEST:102.311 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_an_app_with_manifest_variables_test.go:12
deploying a composer app with post install commands
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_an_app_with_manifest_variables_test.go:16
logs variables from manifest.yml
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_an_app_with_manifest_variables_test.go:22
------------------------------
• [SLOW TEST:95.190 seconds]
deploying a basic PHP app using APCu module
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_apcu_test.go:12
after the APCu module has been loaded into PHP
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_apcu_test.go:16
caches a variable using APCu
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_apcu_test.go:17
------------------------------
• [SLOW TEST:98.040 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_php_ini_d_dir_test.go:13
deploying a basic PHP app with custom conf files in php.ini.d dir in app root
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_php_ini_d_dir_test.go:20
sets custom configurations
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_php_ini_d_dir_test.go:25
------------------------------
• [SLOW TEST:22.766 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_php_ini_d_dir_test.go:13
deploying an app with an invalid extension in php.ini.d dir
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_php_ini_d_dir_test.go:31
fails during staging
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_php_ini_d_dir_test.go:36
------------------------------
• [SLOW TEST:106.940 seconds]
Composer with unicode env variables
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_unicode_env_test.go:10
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_unicode_env_test.go:14
------------------------------
• [SLOW TEST:98.480 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_app_with_logs_dir_test.go:12
app has a logs directory
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_app_with_logs_dir_test.go:16
expects the app to respond to GET request
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_app_with_logs_dir_test.go:22
------------------------------
• [SLOW TEST:101.107 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_fpm_d_dir_test.go:12
deploying a PHP app with custom conf files in fpm.d dir in app root
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_fpm_d_dir_test.go:16
sets custom configurations
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_fpm_d_dir_test.go:17
------------------------------
• [SLOW TEST:99.524 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/profile_d_sets_environment_variables_test.go:12
deploying a PHP app with .profile.d directory
/Users/gcobb/workspace/php-buildpack/src/php/integration/profile_d_sets_environment_variables_test.go:16
sets environment variables via .profile.d script
/Users/gcobb/workspace/php-buildpack/src/php/integration/profile_d_sets_environment_variables_test.go:23
------------------------------
• [SLOW TEST:98.788 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/profile_d_sets_environment_variables_test.go:12
deploying a PHP app with .profile script
/Users/gcobb/workspace/php-buildpack/src/php/integration/profile_d_sets_environment_variables_test.go:28
------------------------------
• [SLOW TEST:19.987 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_invalid_webserver_test.go:13
deploying a basic PHP app using 'apache' as the webserver
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_invalid_webserver_test.go:17
shows an error message indicating the supported web servers
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_invalid_webserver_test.go:23
------------------------------
• [SLOW TEST:103.255 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_app_with_remote_dependencies_test.go:12
the application has remote dependencies
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_app_with_remote_dependencies_test.go:16
expects the app to respond to GET request
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_app_with_remote_dependencies_test.go:22
------------------------------
• [SLOW TEST:104.211 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_custom_modules_test.go:12
deploying a basic PHP app using httpd as the webserver and a custom httpd-modules.conf
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_custom_modules_test.go:16
does not log an error about the RequestHeader command
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_custom_modules_test.go:24
------------------------------
• [SLOW TEST:148.734 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_appdynamics_test.go:12
configures appdynamics
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_appdynamics_test.go:27
------------------------------
• [SLOW TEST:129.755 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_phpiredis_test.go:13
deploying a basic PHP app using phpiredis module
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_phpiredis_test.go:17
after the phpiredis module has been loaded into PHP
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_phpiredis_test.go:18
logs that the approrpiate phpiredis method was invoked
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_phpiredis_test.go:25
------------------------------
• [SLOW TEST:9.235 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_app_with_dependencies_test.go:7
with an uncached buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:176
uses a proxy during staging if present
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:179
------------------------------
S [SKIPPING] [0.000 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_app_with_dependencies_test.go:7
has no traffic [It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:209
Running uncached tests
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:148
------------------------------
• [SLOW TEST:99.213 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_test.go:13
deploying a basic PHP app using httpd as the webserver
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_test.go:17
succeeds
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_test.go:24
------------------------------
• [SLOW TEST:98.234 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_test.go:13
deploying a basic PHP app using httpd as the webserver
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_test.go:53
installs the default version of httpd
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_test.go:61
------------------------------
S [SKIPPING] [0.000 seconds]
CF PHP Buildpack
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_httpd_test.go:13
has no traffic [It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:209
Running uncached tests
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:148
------------------------------
• [SLOW TEST:100.088 seconds]
deploying a basic PHP app using Argon2
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_argon2_test.go:12
when PHP has been compiled with argon2
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_argon2_test.go:16
prints a password hash
/Users/gcobb/workspace/php-buildpack/src/php/integration/deploy_a_php_app_with_argon2_test.go:23
------------------------------
• [SLOW TEST:22.978 seconds]
When composer.lock is invalid JSON
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_invalid_lockfile_json_test.go:13
fails to stage
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_invalid_lockfile_json_test.go:17
------------------------------
• [SLOW TEST:98.029 seconds]
invalid PHP versions
/Users/gcobb/workspace/php-buildpack/src/php/integration/invalid_php_versions_test.go:12
version is specified using .bp-config/options.json
/Users/gcobb/workspace/php-buildpack/src/php/integration/invalid_php_versions_test.go:16
------------------------------
• [SLOW TEST:28.942 seconds]
invalid PHP versions
/Users/gcobb/workspace/php-buildpack/src/php/integration/invalid_php_versions_test.go:12
version is specified using composer.json
/Users/gcobb/workspace/php-buildpack/src/php/integration/invalid_php_versions_test.go:31
------------------------------
Summarizing 3 Failures:
[Fail] Composer [It] deploying an app with valid $COMPOSER_GITHUB_OAUTH_TOKEN variable set
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_can_configure_github_oauth_token_test.go:27
[Fail] Composer [It] deploying an app with an invalid $COMPOSER_GITHUB_OAUTH_TOKEN
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_can_configure_github_oauth_token_test.go:34
[Fail] Composer with version set to 'latest' [It]
/Users/gcobb/workspace/php-buildpack/src/php/integration/integration_suite_test.go:94
Ran 51 of 64 Specs in 5087.758 seconds
FAIL! -- 48 Passed | 3 Failed | 2 Pending | 11 Skipped
The $COMPOSER_GITHUB_OAUTH_TOKEN
integration tests understandably fail, because I'm not providing a legit GitHub token.
For the "latest Composer" test, it's conditional based on if the buildpack is cached or not.
Cached:
❯ ./scripts/package.sh --stack cflinuxfs4 --cached
Buildpack packaged successfully
❯ CF_STACK=cflinuxfs4 COMPOSER_GITHUB_OAUTH_TOKEN=foo BUILDPACK_FILE=/Users/gcobb/workspace/php-buildpack/php_buildpack-cached-cflinuxfs4-v4.6.22.zip GOMAXPROCS=1 go test -count=1 -timeout=0 -mod vendor -v `pwd`/src/php/integration --stack=cflinuxfs4 --cached=true --ginkgo.focus="Composer with version set to"
=== RUN TestIntegration
Running Suite: Integration Suite
================================
Random Seed: 1724950156
Will run 1 of 64 specs
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
------------------------------
• [SLOW TEST:56.035 seconds]
Composer with version set to 'latest'
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_version_set_to_latest_test.go:12
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_version_set_to_latest_test.go:16
------------------------------
SSSSSSSSSSSSSSSSSSSSSSSSSS
Ran 1 of 64 Specs in 316.208 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 63 Skipped
--- PASS: TestIntegration (316.23s)
PASS
ok github.com/cloudfoundry/php-buildpack/src/php/integration 316.493s
Uncached:
❯ ./scripts/package.sh --stack cflinuxfs4 --uncached
Buildpack packaged successfully
❯ CF_STACK=cflinuxfs4 COMPOSER_GITHUB_OAUTH_TOKEN=foo BUILDPACK_FILE=/Users/gcobb/workspace/php-buildpack/php_buildpack-cflinuxfs4-v4.6.22.zip GOMAXPROCS=1 go test -count=1 -timeout=0 -mod vendor -v `pwd`/src/php/integration --stack=cflinuxfs4 --cached=false --ginkgo.focus="Composer with version set to"
=== RUN TestIntegration
Running Suite: Integration Suite
================================
Random Seed: 1724961435
Will run 1 of 64 specs
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
------------------------------
• [SLOW TEST:112.951 seconds]
Composer with version set to 'latest'
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_version_set_to_latest_test.go:12
/Users/gcobb/workspace/php-buildpack/src/php/integration/composer_with_version_set_to_latest_test.go:16
------------------------------
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
Ran 1 of 64 Specs in 117.114 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 63 Skipped
Hey @Gerg thank you for the PR!! Your comments were helpful. I don't know Python super well, but most of the changes you made look pretty reasonable syntactically with what I'd expect to see upgrading to a newer Python version. I'm not super worried about the integration test failures since the environment can make such a big difference, and this change will get tested in our CI when it hits develop.
cc @dmikusa for old time's sake
Thank you @Gerg !
This looks good to me. I think if @arjun024 has no concerns then we're good to merge.
Thanks for contributing to the buildpack. To speed up the process of reviewing your pull request please provide us with:
[x] I have viewed signed and have submitted the Contributor License Agreement
[x] I have made this pull request to the
develop
branch[x] I have added an integration test
Upgrades the python version used by the buildpack to 3.12.x from 2.6 on cflinuxfs3 and 2.7 on cflinuxfs4.
I intentionally tried to keep the change set small. There are probably many opportunities to use the python features introduced in the last decade, but I tried to stick to a direct port when possible.
Known issues:
/buildpack/extensions/composer/../../python-vendor/node-semver/semver/__init__.py:278: SyntaxWarning: invalid escape sequence '\d'
) that doesn't appear to meaningfully affect buildpack operation