SQLite testing in GitlabCI - apache2(98)Address already in use

Created on 27 October 2023, 8 months ago
Updated 10 November 2023, 8 months ago

Problem/Motivation

The SQLite tests in D7 GitlabCI are green, but if we examine them closely, they are never run at all, because there are errors (probably caused by the image used in _TARGET_DB) - https://git.drupalcode.org/project/drupal/-/jobs/234413:

  1. $ sudo service apache2 start
    Starting Apache httpd web server: apache2(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    AH00015: Unable to open logs
    Action 'start' failed.
    The Apache error log may have more information.
    
  2. $ sudo -u www-data php ./scripts/run-tests.sh --color --concurrency "$CONCURRENCY" --url "$SIMPLETEST_BASE_URL" --verbose --fail-only --all --xml "$CI_PROJECT_DIR/sites/default/files/simpletest" --ci-parallel-node-index $CI_PARALLEL_NODE_INDEX --ci-parallel-node-total $CI_PARALLEL_NODE_TOTAL
    PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in lock_may_be_available() (line 167 of /builds/project/drupal/includes/lock.inc).
    

Steps to reproduce

See: https://git.drupalcode.org/project/drupal/-/jobs/234413

Proposed resolution

Try to update the _TARGET_DB to "sqlite-3" to match D10 to see if this will be sufficient, or if any other changes will be needed regarding the second error.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

7.0 ⚰️

Component
PHPUnit 

Last updated about 9 hours ago

Created by

🇸🇰Slovakia poker10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024