Improve build error output
We created a feature branch and the site gets deployed. After a few commits, the build fails, but no error is shown in the build log:
- Installing sebastian/code-unit-reverse-lookup (2.0.3): Extracting archive
- Installing phpunit/php-code-coverage (9.2.29): Extracting archive
- Installing phar-io/version (3.2.1): Extracting archive
- Installing phar-io/manifest (2.0.3): Extracting archive
- Installing myclabs/deep-copy (1.11.1): Extracting archive
- Installing doctrine/instantiator (2.0.0): Extracting archive
- Installing phpunit/phpunit (9.6.13): Extracting archive
- Installing phpstan/phpstan (1.10.39): Extracting archive
- Installing phpstan/phpstan-deprecation-rules (1.1.4): Extracting archive
Skipped installation of bin bin/behat for package behat/behat: name conflicts with an existing file
Skipped installation of bin bin/simple-phpunit for package symfony/phpunit-bridge: name conflicts with an existing file
Skipped installation of bin bin/phpcs for package squizlabs/php_codesniffer: name conflicts with an existing file
Skipped installation of bin bin/phpcbf for package squizlabs/php_codesniffer: name conflicts with an existing file
Skipped installation of bin phpunit for package phpunit/phpunit: name conflicts with an existing file
Skipped installation of bin phpstan for package phpstan/phpstan: name conflicts with an existing file
Skipped installation of bin phpstan.phar for package phpstan/phpstan: name conflicts with an existing file
Cleaning: symfony/dom-crawler
Cleaning: symfony/css-selector
Cleaning: symfony/browser-kit
Cleaning: behat/mink
Cleaning: behat/mink-browserkit-driver
Cleaning: instaclick/php-webdriver
Cleaning: behat/mink-selenium2-driver
- Applying patches for henrywhitaker3/healthchecks-io
https://patch-diff.githubusercontent.com/raw/henrywhitaker3/PHP-healthchecks.io/pull/77.diff (#76 Double slashes in URL)
Cleaning: symfony/phpunit-bridge
Cleaning: squizlabs/php_codesniffer
Cleaning: sebastian/recursion-context
Cleaning: sebastian/object-reflector
Cleaning: sebastian/object-enumerator
Cleaning: sebastian/global-state
Cleaning: sebastian/exporter
Cleaning: sebastian/environment
Cleaning: sebastian/diff
Cleaning: sebastian/comparator
Cleaning: phpunit/php-timer
Cleaning: theseer/tokenizer
Cleaning: sebastian/code-unit-reverse-lookup
Cleaning: phpunit/php-code-coverage
Cleaning: phar-io/version
Cleaning: phar-io/manifest
Cleaning: myclabs/deep-copy
Cleaning: doctrine/instantiator
Cleaning: phpunit/phpunit
- Installing phpstan/extension-installer (1.3.1): Extracting archive
- Installing phpstan/phpdoc-parser (1.24.2): Extracting archive
- Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
- Installing phpdocumentor/type-resolver (1.7.3): Extracting archive
- Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
- Installing phpspec/prophecy (v1.17.0): Extracting archive
- Installing phpspec/prophecy-phpunit (v2.0.2): Extracting archive
- Installing phpmetrics/phpmetrics (v2.8.2): Extracting archive
- Installing pdepend/pdepend (2.15.1): Extracting archive
- Installing composer/xdebug-handler (3.0.3): Extracting archive
- Installing phpmd/phpmd (2.14.1): Extracting archive
- Installing php-parallel-lint/php-parallel-lint (v1.3.2): Extracting archive
- Installing mikey179/vfsstream (v1.6.11): Extracting archive
- Installing mglaman/phpstan-drupal (1.2.0): Extracting archive
Skipped installation of bin bin/phpmetrics for package phpmetrics/phpmetrics: name conflicts with an existing file
Skipped installation of bin src/bin/pdepend for package pdepend/pdepend: name conflicts with an existing file
Skipped installation of bin src/bin/phpmd for package phpmd/phpmd: name conflicts with an existing file
Skipped installation of bin parallel-lint for package php-parallel-lint/php-parallel-lint: name conflicts with an existing file
Cleaning: phpdocumentor/reflection-docblock
Cleaning: phpspec/prophecy
Cleaning: mikey179/vfsstream
- Installing lakedrops/dorgflow (v1.10.0): Cloning c8213ae99b from cache
- Installing lakedrops/docker4drupal (v3.9.13): Cloning 84d21c3898 from cache
- Installing lakedrops/behat4drupal (v3.1.0): Cloning e84fbec6d2 from cache
- Installing drupal/devel (5.1.2): Extracting archive
- Installing drupal/webprofiler (9.0.2): Extracting archive
- Installing dealerdirect/phpcodesniffer-composer-installer (v1.0.0): Extracting archive
- Installing slevomat/coding-standard (8.14.1): Extracting archive
- Installing sirbrillig/phpcs-variable-analysis (v2.11.17): Extracting archive
- Installing drupal/coder (8.3.22): Extracting archive
- Installing drupal-code-builder/drupal-code-builder-drush (9.0.2): Extracting archive
Cleaning: drupal/coder
- Installing lakedrops/drupal-development-environment (v3.2.7): Cloning 6e6d746ecc from cache
- Installing drupal/helpdesk_integration (1.1.10): Extracting archive
- Installing roave/security-advisories (dev-master 320a7a6)
- Applying patches for drupal/helpdesk_integration
https://git.drupalcode.org/project/helpdesk_integration/-/merge_requests/7.diff (#3228537 Exception Handling in Service class)
Could not apply patch! Skipping. The error was: Cannot apply patch https://git.drupalcode.org/project/helpdesk_integration/-/merge_requests/7.diff
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package zendesk/zendesk_api_client_php is abandoned, you should avoid using it. No replacement was suggested.
Package behat/mink-goutte-driver is abandoned, you should avoid using it. Use behat/mink-browserkit-driver instead.
Package fabpot/goutte is abandoned, you should avoid using it. Use symfony/browser-kit instead.
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
124 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Endroid Installer did not detect a specific framework for auto-configuration
Installing assets
Already on 'main'
Your branch is up to date with 'origin/main'.
Already up to date.
Cleaning installed packages.
phpstan/extension-installer: Extensions installed
> mglaman/phpstan-drupal: installed
> phpstan/phpstan-deprecation-rules: installed
PHP CodeSniffer Config installed_paths set to ../../drupal/coder/coder_sniffer,../../sirbrillig/phpcs-variable-analysis,../../slevomat/coding-standard
> rm -rf web/libraries/plupload/examples/ && rm -f web/themes/contrib/bootstrap_barrio/bootstrap_barrio.layouts.yml && rm -f web/themes/contrib/bootstrap_barrio/layouts/media.html.twig
$ composer install --no-interaction --no-progress
Gathering patches from patch file.
Removing package drupal/helpdesk_integration so that it can be re-installed and re-patched.
- Removing drupal/helpdesk_integration (1.1.10)
Deleting web/modules/contrib/helpdesk_integration - deleted
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 1 install, 0 updates, 0 removals
Gathering patches from patch file.
Gathering patches for dependencies. This might take a minute.
- Installing drupal/helpdesk_integration (1.1.10): Extracting archive
- Applying patches for drupal/helpdesk_integration
https://git.drupalcode.org/project/helpdesk_integration/-/merge_requests/7.diff (#3228537 Exception Handling in Service class)
Could not apply patch! Skipping. The error was: Cannot apply patch https://git.drupalcode.org/project/helpdesk_integration/-/merge_requests/7.diff
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package zendesk/zendesk_api_client_php is abandoned, you should avoid using it. No replacement was suggested.
Package behat/mink-goutte-driver is abandoned, you should avoid using it. Use behat/mink-browserkit-driver instead.
Package fabpot/goutte is abandoned, you should avoid using it. Use symfony/browser-kit instead.
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
124 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Endroid Installer did not detect a specific framework for auto-configuration
Installing assets
Already on 'main'
Your branch is up to date with 'origin/main'.
Already up to date.
phpstan/extension-installer: Extensions installed
Cleaning installed packages.
> rm -rf web/libraries/plupload/examples/ && rm -f web/themes/contrib/bootstrap_barrio/bootstrap_barrio.layouts.yml && rm -f web/themes/contrib/bootstrap_barrio/layouts/media.html.twig
$ composer lakedrops:scaffold --no-interaction
$ composer lakedrops:docker4drupal --no-interaction
$ docker compose pull --quiet
Error response from daemon: received unexpected HTTP status: 500 Internal Server Error
Uploading artifacts for failed job
00:29
Uploading artifacts...
.docker-init/: found 2 matching artifact files and directories
WARNING: apache/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/mobimo/portals/kriens)
WARNING: assets/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/mobimo/portals/kriens)
config/: found 4017 matching artifact files and directories
drush/: found 78 matching artifact files and directories
files/: found 15 matching artifact files and directories
WARNING: keys/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/mobimo/portals/kriens)
settings/: found 8 matching artifact files and directories
tests/: found 16 matching artifact files and directories
vendor/: found 19353 matching artifact files and directories
web/: found 50732 matching artifact files and directories
.ahoy.yml: found 1 matching artifact files and directories
.env: found 1 matching artifact files and directories
WARNING: .phpcsignore: no matching files. Ensure that the artifact path is relative to the working directory (/builds/mobimo/portals/kriens)
composer.*: found 2 matching artifact files and directories
docker-compose.yml: found 1 matching artifact files and directories
vendor/**/.git/**/*: excluded 465 files
Uploading artifacts as "archive" to coordinator... 201 Created id=1252682 responseStatus=201 Created token=64_XEs7s
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit code 1
Example is here:
https://gitlab.lakedrops.com/mobimo/portals/kriens/-/jobs/1252682