Skip to content

Commit

Permalink
Use phpunit instead of paratest.
Browse files Browse the repository at this point in the history
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;
  • Loading branch information
mstenta committed Oct 30, 2023
1 parent 7c73c28 commit 6a9c872
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deliver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion composer.project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6a9c872

Please sign in to comment.