From 6a9c872e9b04a5893e92f5e764aef1904303e368 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Thu, 5 Oct 2023 19:30:41 -0400 Subject: [PATCH] Use phpunit instead of paratest. PostgreSQL tests fail because Drupal core patch is trying to install pg_trgm extension in parallel multiple times. Failed to run installer database tasks: Drupal could not check for the pg_trgm extension: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "pg_extension_name_index" DETAIL: Key (extname)=(pg_trgm) already exists.: CREATE EXTENSION IF NOT EXISTS pg_trgm; --- .github/workflows/deliver.yml | 5 +---- composer.project.json | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/deliver.yml b/.github/workflows/deliver.yml index 975d334dc..a0f51d161 100644 --- a/.github/workflows/deliver.yml +++ b/.github/workflows/deliver.yml @@ -92,13 +92,10 @@ jobs: include: - dbms: pgsql DB_URL: pgsql://farm:farm@db/farm - processes: auto - dbms: mariadb DB_URL: mysql://farm:farm@db/farm - processes: auto - dbms: sqlite DB_URL: sqlite://localhost/sites/default/files/db.sqlite - processes: 1 steps: - name: Print test matrix variables run: echo "matrix.dbms=${{ matrix.dbms }}, matrix.DB_URL=${{ matrix.DB_URL }}" @@ -126,7 +123,7 @@ jobs: # so waiting for that lets us know it is safe to start the tests run: until [ -f ./www/www-container-fs-ready ]; do sleep 0.1; done - name: Run PHPUnit tests - run: docker compose exec -u www-data -T www paratest -vv --processes=${{ matrix.processes }} /opt/drupal/web/profiles/farm + run: docker compose exec -u www-data -T www phpunit --verbose /opt/drupal/web/profiles/farm - name: Test Drush site install with all modules run: docker compose exec -u www-data -T www drush site-install --db-url=${{ matrix.DB_URL }} farm farm.modules='all' release: diff --git a/composer.project.json b/composer.project.json index 4c4a6c092..4c2da2f31 100644 --- a/composer.project.json +++ b/composer.project.json @@ -7,7 +7,6 @@ "behat/mink": "^1.10", "behat/mink-browserkit-driver": "^2.1", "behat/mink-selenium2-driver": "^1.6", - "brianium/paratest": "^6", "drupal/coder": "^8.3", "mglaman/phpstan-drupal": "^1.1", "mikey179/vfsstream": "^1.6",