Closed phracek closed 10 months ago
same isue here (using CRC)
@remicollet Can you please help us how to fix it? I am trying to create a CI for this ex application so it is tested by each PR.
RHEL9 and PHP-8.1 is failing as well.
Cloning "https://github.com/sclorg/cakephp-ex.git" ...
Commit: 69743d924a9bfeeee309590fc279f33430a9f009 (Merge pull request #131 from dperaza4dustbit/remove_v1_duplicate)
Author: Petr Hracek <phracek@redhat.com>
Date: Tue Apr 12 08:18:24 2022 +0200
time="2023-11-07T09:45:43Z" level=info msg="Not using native diff for overlay, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled"
I1107 09:45:43.083327 1 defaults.go:112] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].
Caching blobs under "/var/cache/blobs".
Trying to pull image-registry.openshift-image-registry.svc:5000/sclorg-test-25813/php@sha256:f9f381e95db996f161e732c5d9685569b18ac66c363706a117b91ba701a78c24...
Getting image source signatures
Copying blob sha256:b5df793717367347daef37f308a588d1b43516edc1f629eff2e68fcae065e18b
Copying blob sha256:12d4d76541d2213ac9516981aa7390650001527390300acdbc820ef96991eb9a
Copying blob sha256:cc7c08d56aada5b55c0b4a8ecc515a2fa2dc25a96479425437ff8fefa387cc20
Copying blob sha256:c43b504f69378acd61b2ecb913b97a0680c508e3ea930b2b34c8ae02a4e0fbf1
Copying blob sha256:2c13be401503c1f48d55f3cce162ebe3566ca60c59d94f0066a30ee4c8add8e3
Copying blob sha256:8d45e871b3e2d95f99235162ff7e25745961c3d0c44ea0460e587b0baba127f7
Copying blob sha256:99ac58e45d44332dd55691f63ea1160884e442bd1a833df5442a226c7e4923d1
Copying blob sha256:170ddcd95ceba345a61a4c973d818ee2d54174756a009c5e520b2a50392bf8e6
Copying config sha256:e71edeb143ec697c976d7794e6c32ff953eac23fd25379d9e27c6717b9d51072
Writing manifest to image destination
Storing signatures
Generating dockerfile with builder image image-registry.openshift-image-registry.svc:5000/sclorg-test-25813/php@sha256:f9f381e95db996f161e732c5d9685569b18ac66c363706a117b91ba701a78c24
Replaced Dockerfile FROM image image-registry.openshift-image-registry.svc:5000/sclorg-test-25813/php@sha256:f9f381e95db996f161e732c5d9685569b18ac66c363706a117b91ba701a78c24
Adding transient rw bind mount for /run/secrets/rhsm
[1/3] STEP 1/10: FROM image-registry.openshift-image-registry.svc:5000/sclorg-test-25813/php@sha256:f9f381e95db996f161e732c5d9685569b18ac66c363706a117b91ba701a78c24 AS appimage779d3ab4f38f4af8a0da24fbd73603a1
[1/3] STEP 2/10: LABEL "io.openshift.build.commit.id"="69743d924a9bfeeee309590fc279f33430a9f009" "io.openshift.build.commit.ref"="master" "io.openshift.build.commit.message"="Merge pull request #131 from dperaza4dustbit/remove_v1_duplicate" "io.openshift.build.source-location"="https://github.com/sclorg/cakephp-ex.git" "io.openshift.build.image"="image-registry.openshift-image-registry.svc:5000/sclorg-test-25813/php@sha256:f9f381e95db996f161e732c5d9685569b18ac66c363706a117b91ba701a78c24" "io.openshift.build.commit.author"="Petr Hracek <phracek@redhat.com>" "io.openshift.build.commit.date"="Tue Apr 12 08:18:24 2022 +0200"
[1/3] STEP 3/10: ENV OPENSHIFT_BUILD_NAME="php-testing-1" OPENSHIFT_BUILD_NAMESPACE="sclorg-test-25813" OPENSHIFT_BUILD_SOURCE="https://github.com/sclorg/cakephp-ex.git" OPENSHIFT_BUILD_REFERENCE="master" OPENSHIFT_BUILD_COMMIT="69743d924a9bfeeee309590fc279f33430a9f009" COMPOSER_MIRROR=""
[1/3] STEP 4/10: USER root
[1/3] STEP 5/10: COPY upload/scripts /tmp/scripts
[1/3] STEP 6/10: COPY upload/src /tmp/src
[1/3] STEP 7/10: RUN chown -R 1001:0 /tmp/scripts /tmp/src
[1/3] STEP 8/10: USER 1001
[1/3] STEP 9/10: RUN /tmp/scripts/assemble
---> Installing application source...
Found 'composer.json', installing dependencies using composer.phar...
Downloading https://getcomposer.org/installer, attempt 1/6
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 58167 100 58167 0 0 211k 0 --:--:-- --:--:-- --:--:-- 210k
By default, latest composer will be used. If you want to use v1 please use the environment variable COMPOSER_VERSION=1
All settings correct for using Composer
Downloading...
Composer (version 2.6.5) successfully installed to: /opt/app-root/src/composer.phar
Use it: php composer.phar
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 80 installs, 0 updates, 0 removals
- Downloading cakephp/plugin-installer (1.3.0)
- Downloading aura/intl (3.0.0)
- Downloading symfony/polyfill-ctype (v1.20.0)
- Downloading twig/twig (v1.43.1)
- Downloading umpirsky/twig-php-function (v0.1)
- Downloading jasny/twig-extensions (v1.2.0)
- Downloading psr/simple-cache (1.0.1)
- Downloading psr/log (1.1.3)
- Downloading paragonie/random_compat (v9.99.99)
- Downloading psr/http-message (1.0.1)
- Downloading laminas/laminas-zendframework-bridge (1.1.1)
- Downloading laminas/laminas-diactoros (1.8.7p2)
- Downloading cakephp/chronos (1.3.0)
- Downloading cakephp/cakephp (3.9.3)
- Downloading asm89/twig-cache-extension (1.4.0)
- Downloading aptoma/twig-markdown (2.0.0)
- Downloading ajgl/breakpoint-twig-extension (0.3.4)
- Downloading wyrihaximus/twig-view (4.3.8)
- Downloading cakephp/bake (1.12.0)
- Downloading squizlabs/php_codesniffer (3.5.8)
- Downloading cakephp/cakephp-codesniffer (3.3.0)
- Downloading jdorn/sql-formatter (v1.2.17)
- Downloading symfony/process (v4.4.15)
- Downloading symfony/finder (v4.4.15)
- Downloading symfony/filesystem (v4.4.15)
- Downloading psr/container (1.0.0)
- Downloading symfony/service-contracts (v1.1.9)
- Downloading symfony/polyfill-php80 (v1.20.0)
- Downloading symfony/polyfill-php73 (v1.20.0)
- Downloading symfony/polyfill-mbstring (v1.20.0)
- Downloading symfony/console (v4.4.15)
- Downloading seld/phar-utils (1.1.1)
- Downloading seld/jsonlint (1.8.2)
- Downloading justinrainbow/json-schema (5.2.10)
- Downloading composer/xdebug-handler (1.4.4)
- Downloading composer/spdx-licenses (1.5.4)
- Downloading composer/semver (1.7.1)
- Downloading composer/ca-bundle (1.2.8)
- Downloading composer/composer (1.10.16)
- Downloading cakephp/debug_kit (3.22.4)
- Downloading symfony/yaml (v4.4.15)
- Downloading symfony/config (v4.4.15)
- Downloading robmorgan/phinx (0.11.7)
- Downloading cakephp/migrations (2.4.2)
- Downloading m1/env (2.2.0)
- Downloading josegonzalez/dotenv (3.2.0)
- Downloading mobiledetect/mobiledetectlib (2.8.34)
- Downloading webmozart/assert (1.9.1)
- Downloading phpdocumentor/reflection-common (2.2.0)
- Downloading phpdocumentor/type-resolver (1.4.0)
- Downloading phpdocumentor/reflection-docblock (5.2.2)
- Downloading phpunit/php-token-stream (2.0.2)
- Downloading sebastian/version (2.0.1)
- Downloading sebastian/resource-operations (1.0.0)
- Downloading sebastian/recursion-context (3.0.0)
- Downloading sebastian/object-reflector (1.1.1)
- Downloading sebastian/object-enumerator (3.0.3)
- Downloading sebastian/global-state (2.0.0)
- Downloading sebastian/exporter (3.1.2)
- Downloading sebastian/environment (3.1.0)
- Downloading sebastian/diff (2.0.1)
- Downloading sebastian/comparator (2.1.3)
- Downloading phpunit/php-text-template (1.2.1)
- Downloading doctrine/instantiator (1.3.1)
- Downloading phpunit/phpunit-mock-objects (5.0.10)
- Downloading phpunit/php-timer (1.0.9)
- Downloading phpunit/php-file-iterator (1.4.5)
- Downloading theseer/tokenizer (1.2.0)
- Downloading sebastian/code-unit-reverse-lookup (1.0.1)
- Downloading phpunit/php-code-coverage (5.3.2)
- Downloading phpspec/prophecy (v1.10.3)
- Downloading phar-io/version (1.0.1)
- Downloading phar-io/manifest (1.0.1)
- Downloading myclabs/deep-copy (1.10.1)
- Downloading phpunit/phpunit (6.5.14)
- Downloading symfony/polyfill-php72 (v1.20.0)
- Downloading symfony/var-dumper (v4.4.15)
- Downloading nikic/php-parser (v4.10.2)
- Downloading dnoegel/php-xdg-base-dir (v0.1.1)
- Downloading psy/psysh (v0.10.4)
For additional security you should declare the allow-plugins config with a list of packages names that are allowed to run code. See https://getcomposer.org/allow-plugins
This warning will become an exception once you run composer update!
- Installing cakephp/plugin-installer (1.3.0): Extracting archive
- Installing aura/intl (3.0.0): Extracting archive
- Installing symfony/polyfill-ctype (v1.20.0): Extracting archive
- Installing twig/twig (v1.43.1): Extracting archive
- Installing umpirsky/twig-php-function (v0.1): Extracting archive
- Installing jasny/twig-extensions (v1.2.0): Extracting archive
- Installing psr/simple-cache (1.0.1): Extracting archive
- Installing psr/log (1.1.3): Extracting archive
- Installing paragonie/random_compat (v9.99.99): Extracting archive
- Installing psr/http-message (1.0.1): Extracting archive
- Installing laminas/laminas-zendframework-bridge (1.1.1): Extracting archive
- Installing laminas/laminas-diactoros (1.8.7p2): Extracting archive
- Installing cakephp/chronos (1.3.0): Extracting archive
- Installing cakephp/cakephp (3.9.3): Extracting archive
- Installing asm89/twig-cache-extension (1.4.0): Extracting archive
- Installing aptoma/twig-markdown (2.0.0): Extracting archive
- Installing ajgl/breakpoint-twig-extension (0.3.4): Extracting archive
- Installing wyrihaximus/twig-view (4.3.8): Extracting archive
- Installing cakephp/bake (1.12.0): Extracting archive
- Installing squizlabs/php_codesniffer (3.5.8): Extracting archive
- Installing cakephp/cakephp-codesniffer (3.3.0): Extracting archive
- Installing jdorn/sql-formatter (v1.2.17): Extracting archive
- Installing symfony/process (v4.4.15): Extracting archive
- Installing symfony/finder (v4.4.15): Extracting archive
- Installing symfony/filesystem (v4.4.15): Extracting archive
- Installing psr/container (1.0.0): Extracting archive
- Installing symfony/service-contracts (v1.1.9): Extracting archive
- Installing symfony/polyfill-php80 (v1.20.0): Extracting archive
- Installing symfony/polyfill-php73 (v1.20.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.20.0): Extracting archive
- Installing symfony/console (v4.4.15): Extracting archive
- Installing seld/phar-utils (1.1.1): Extracting archive
- Installing seld/jsonlint (1.8.2): Extracting archive
- Installing justinrainbow/json-schema (5.2.10): Extracting archive
- Installing composer/xdebug-handler (1.4.4): Extracting archive
- Installing composer/spdx-licenses (1.5.4): Extracting archive
- Installing composer/semver (1.7.1): Extracting archive
- Installing composer/ca-bundle (1.2.8): Extracting archive
- Installing composer/composer (1.10.16): Extracting archive
- Installing cakephp/debug_kit (3.22.4): Extracting archive
- Installing symfony/yaml (v4.4.15): Extracting archive
- Installing symfony/config (v4.4.15): Extracting archive
- Installing robmorgan/phinx (0.11.7): Extracting archive
- Installing cakephp/migrations (2.4.2): Extracting archive
- Installing m1/env (2.2.0): Extracting archive
- Installing josegonzalez/dotenv (3.2.0): Extracting archive
- Installing mobiledetect/mobiledetectlib (2.8.34): Extracting archive
- Installing webmozart/assert (1.9.1): Extracting archive
- Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
- Installing phpdocumentor/type-resolver (1.4.0): Extracting archive
- Installing phpdocumentor/reflection-docblock (5.2.2): Extracting archive
- Installing phpunit/php-token-stream (2.0.2): Extracting archive
- Installing sebastian/version (2.0.1): Extracting archive
- Installing sebastian/resource-operations (1.0.0): Extracting archive
- Installing sebastian/recursion-context (3.0.0): Extracting archive
- Installing sebastian/object-reflector (1.1.1): Extracting archive
- Installing sebastian/object-enumerator (3.0.3): Extracting archive
- Installing sebastian/global-state (2.0.0): Extracting archive
- Installing sebastian/exporter (3.1.2): Extracting archive
- Installing sebastian/environment (3.1.0): Extracting archive
- Installing sebastian/diff (2.0.1): Extracting archive
- Installing sebastian/comparator (2.1.3): Extracting archive
- Installing phpunit/php-text-template (1.2.1): Extracting archive
- Installing doctrine/instantiator (1.3.1): Extracting archive
- Installing phpunit/phpunit-mock-objects (5.0.10): Extracting archive
- Installing phpunit/php-timer (1.0.9): Extracting archive
- Installing phpunit/php-file-iterator (1.4.5): Extracting archive
- Installing theseer/tokenizer (1.2.0): Extracting archive
- Installing sebastian/code-unit-reverse-lookup (1.0.1): Extracting archive
- Installing phpunit/php-code-coverage (5.3.2): Extracting archive
- Installing phpspec/prophecy (v1.10.3): Extracting archive
- Installing phar-io/version (1.0.1): Extracting archive
- Installing phar-io/manifest (1.0.1): Extracting archive
- Installing myclabs/deep-copy (1.10.1): Extracting archive
- Installing phpunit/phpunit (6.5.14): Extracting archive
- Installing symfony/polyfill-php72 (v1.20.0): Extracting archive
- Installing symfony/var-dumper (v4.4.15): Extracting archive
- Installing nikic/php-parser (v4.10.2): Extracting archive
- Installing dnoegel/php-xdg-base-dir (v0.1.1): Extracting archive
- Installing psy/psysh (v0.10.4): Extracting archive
Package asm89/twig-cache-extension is abandoned, you should avoid using it. Use twig/cache-extension instead.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
24 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> App\Console\Installer::postInstall
Created `/opt/app-root/src/tmp` directory
Created `/opt/app-root/src/tmp/cache` directory
Created `/opt/app-root/src/tmp/cache/models` directory
Created `/opt/app-root/src/tmp/cache/persistent` directory
Created `/opt/app-root/src/tmp/cache/views` directory
Created `/opt/app-root/src/tmp/sessions` directory
Created `/opt/app-root/src/tmp/tests` directory
Permissions set on /opt/app-root/src/tmp/cache
Permissions set on /opt/app-root/src/tmp/cache/models
Permissions set on /opt/app-root/src/tmp/cache/persistent
Permissions set on /opt/app-root/src/tmp/cache/views
Permissions set on /opt/app-root/src/tmp/sessions
Permissions set on /opt/app-root/src/tmp/tests
Permissions set on /opt/app-root/src/tmp
Permissions set on /opt/app-root/src/logs
No Security.salt placeholder to replace.
=> sourcing 20-copy-config.sh ...
---> 09:46:01 Processing additional arbitrary httpd configuration provided by s2i ...
=> sourcing 00-documentroot.conf ...
=> sourcing 50-mpm-tuning.conf ...
=> sourcing 40-ssl-certs.sh ...
[1/3] STEP 10/10: CMD /usr/libexec/s2i/run
Getting image source signatures
Copying blob sha256:6f740e9430896c5575f685b73a06bae50b08045eefd8d2e96da3f4c6fc104902
Copying blob sha256:07168f7dbac118f0f0372b4704384e39179d84910300fad3d6e400791a917594
Copying blob sha256:25a23f7c4c85a98e876efb0f1a192e3b88f518b868e810c5819954f9c64985d5
Copying blob sha256:40f2528efd90e910cf1f9d227fc6f3f202878ce713fad433406996a81169cdcb
Copying blob sha256:189a9223da8d256d5fd8b867232ebcd75cf8d16900b0304c6a5bf0e260788623
Copying blob sha256:4eab081f291eb3c22aa592b066a008f0895ba6ae611e53876cd45c38175d4ae8
Copying blob sha256:b7c9002791a773ea314424cf040d56592c3672920f70d3675c864a590930c63b
Copying blob sha256:a9bb1edafa8201ccb2b312586c78548c4eb6c663f9d856d85213b38dab40aa92
Copying blob sha256:71a8f9791dd6e29839e9487eada8507b1cd86a886eb04c25b7bad077a632dd21
Copying config sha256:5e55d9ae32f0d3838cbaabc03f85d87209540bb1bc18e23bc6b38a366a76b357
Writing manifest to image destination
Storing signatures
--> 5e55d9ae32f
[2/3] STEP 1/2: FROM 5e55d9ae32f0d3838cbaabc03f85d87209540bb1bc18e23bc6b38a366a76b357
[2/3] STEP 2/2: RUN /bin/sh -ic './vendor/bin/phpunit'
sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
PHP Warning: Private methods cannot be final as they are never overridden by other classes in /opt/app-root/src/vendor/phpunit/phpunit/src/Util/Configuration.php on line 176
PHP Fatal error: Cannot acquire reference to $GLOBALS in /opt/app-root/src/vendor/phpunit/phpunit/src/Util/Configuration.php on line 543
error: build error: error building at STEP "RUN /bin/sh -ic './vendor/bin/phpunit'": error while running runtime: exit status 255
- Installing cakephp/cakephp (3.9.3): Extracting archive
- Downloading phpunit/phpunit (6.5.14)
It looks like you are trying to run old versions on modern PHP
FYI cakephp have version 4.x (PHP 7.4+, phpunit 8 or 9) and recent 5.x (PHP 8.1+, phpunit 10)
IMHO, trying to run CI on very old 3.x doesn't make sense anymore
@cuppett Hi Stephen, can you please provide more details how did you generate all files in this PR https://github.com/sclorg/cakephp-ex/pull/126.
It looks like we need it for versions PHP7.4 and PHP8.1. PHP8.1 should be in branched named like 5.X. Thank you.
@cuppett See log:
Found 'composer.json', installing dependencies using composer.phar...
Downloading https://getcomposer.org/installer, attempt 1/6
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 58167 100 58167 0 0 274k 0 --:--:-- --:--:-- --:--:-- 274k
By default, latest composer will be used. If you want to use v1 please use the environment variable COMPOSER_VERSION=1
All settings correct for using Composer
Downloading...
Composer (version 2.6.5) successfully installed to: /opt/app-root/src/composer.phar
Use it: php composer.phar
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- symfony/service-contracts is locked to version v1.1.2 and an update of this package was not requested.
- symfony/service-contracts v1.1.2 requires php ^7.1.3 -> your php version (8.0.30) does not satisfy that requirement.
Problem 2
- symfony/service-contracts v1.1.2 requires php ^7.1.3 -> your php version (8.0.30) does not satisfy that requirement.
- symfony/console v5.3.10 requires symfony/service-contracts ^1.1|^2 -> satisfiable by symfony/service-contracts[v1.1.2].
- symfony/console is locked to version v5.3.10 and an update of this package was not requested.
error: build error: error building at STEP "RUN /tmp/scripts/assemble": error while running runtime: exit status 2
I would prefer to have branch 4.X for PHP 7.4+ and recent 5.x for PHP 8.1+, phpunit 10
@cuppett Hi Stephen, can you please provide more details how did you generate all files in this PR #126.
It looks like we need it for versions PHP7.4 and PHP8.1. PHP8.1 should be in branched named like 5.X. Thank you.
It's been a couple years, but I think I could retrace my steps. Will take me a day or so. Do you have those two branches set up or do you want me to create those branches on my fork and let you do the pull request stuff?
(I'll include my steps and tests that I perform as well.)
I have already created branches
https://github.com/sclorg/cakephp-ex/tree/4.X https://github.com/sclorg/cakephp-ex/tree/5.X
@cuppett I would prefer to document it in README.md or in similar file, so our team can do it by ourselfs :)
I have already created branches
https://github.com/sclorg/cakephp-ex/tree/4.X https://github.com/sclorg/cakephp-ex/tree/5.X
What is the driver for 5.x? 4 supports 7.4->8.2 which is the range of our PHP support:
I have already created branches https://github.com/sclorg/cakephp-ex/tree/4.X https://github.com/sclorg/cakephp-ex/tree/5.X
What is the driver for 5.x? 4 supports 7.4->8.2 which is the range of our PHP support:
As @remicollet wrote: FYI cakephp have version 4.x (PHP 7.4+, phpunit 8 or 9) and recent 5.x (PHP 8.1+, phpunit 10)
and therefore I would prefer to create also cakephp 5.X in order to support PHP8.1. But I will test it in PR directly in s2i-php-container repository. Wait for a PR here.
I have already created branches https://github.com/sclorg/cakephp-ex/tree/4.X https://github.com/sclorg/cakephp-ex/tree/5.X
What is the driver for 5.x? 4 supports 7.4->8.2 which is the range of our PHP support:
As @remicollet wrote:
FYI cakephp have version 4.x (PHP 7.4+, phpunit 8 or 9) and recent 5.x (PHP 8.1+, phpunit 10)
and therefore I would prefer to create also cakephp 5.X in order to support PHP8.1. But I will test it in PR directly in s2i-php-container repository. Wait for a PR here.
No worries. You should be able to repeat similar commits to my 4.x steps and be successful.
Fwiw, the 4.x branch works just as well against 8.1.
This issue should be fixed by these PRs: CakePHP 5.X https://github.com/sclorg/cakephp-ex/pull/146 and CakePHP 4.X https://github.com/sclorg/cakephp-ex/pull/143.
The repository is already tested in s2i-php-container repository by this PR: https://github.com/sclorg/s2i-php-container/pull/430.
Everything is now working properly after couple months.
Thank you @remicollet @cuppett for your cooperation. Closing this issue. Feel free to re-open new one in case of something is wrong.
I did those steps based on the 'ansible-tests' repo: