This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Oracle for ORA-01408: such column list already indexed (#325)
- Loading branch information
Showing
6 changed files
with
87 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,42 +10,54 @@ env: | |
SIMPLETEST_BASE_URL: "http://localhost:8080" | ||
PHPUNIT_SKIP_CLASS: '[ | ||
"Drupal\\KernelTests\\Core\\Cache\\ApcuBackendTest", | ||
"Drupal\\Tests\\file\\Functional\\FileAddPermissionsUpdateTest", | ||
"Drupal\\Tests\\file\\Functional\\DownloadTest" | ||
"Drupal\\Tests\\file\\Functional\\FileAddPermissionsUpdateTest" | ||
]' | ||
|
||
jobs: | ||
|
||
################################# | ||
|
||
sqlite-pdo: | ||
name: "SQLite with PDO" | ||
oracle-oci8: | ||
name: "Oracle on Oci8" | ||
runs-on: ubuntu-20.04 | ||
env: | ||
DRUDBAL_ENV: "dbal/sqlite/file" | ||
DBAL_URL: "sqlite://localhost/sites/drudbal.sqlite" | ||
SIMPLETEST_DB: "dbal://localhost/sites/drudbal.sqlite?module=drudbal&dbal_driver=pdo_sqlite" | ||
DRUDBAL_ENV: "dbal/oci8" | ||
DBAL_URL: "oci8://DRUDBAL:[email protected]:1521/XE" | ||
SIMPLETEST_DB: "dbal://DRUDBAL:[email protected]:1521/XE?module=drudbal&dbal_driver=oci8#dru" | ||
|
||
services: | ||
oracle: | ||
image: gvenzl/oracle-xe:slim-faststart | ||
env: | ||
ORACLE_PASSWORD: oracle | ||
ports: | ||
- "1521:1521" | ||
options: >- | ||
--health-cmd healthcheck.sh | ||
--health-interval 20s | ||
--health-timeout 10s | ||
--health-retries 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
# - "8.1" | ||
- "8.2" | ||
test-args: | ||
- "--group Database" | ||
# - "--group Entity" | ||
# - "--group Cache,Config" | ||
# - "--group field,Field" | ||
# - "--group file" | ||
# - "--group views" | ||
# - "--group Entity" | ||
# - "--group Cache,Config" | ||
# - "--group field,Field" | ||
# - "--group file" | ||
# - "--group views" | ||
|
||
steps: | ||
- name: Install PHP | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
coverage: "none" | ||
extensions: "oci8" | ||
ini-values: "zend.assertions=1" | ||
|
||
- name: Checkout Drupal | ||
|
@@ -62,21 +74,28 @@ jobs: | |
- name: Install Composer dependencies | ||
run: | | ||
composer install --no-progress --ansi | ||
composer config --no-plugins allow-plugins.composer/package-versions-deprecated true | ||
- name: Composer require DruDbal from local staging | ||
run: | | ||
git -C drudbal_staging checkout -b test-run-branch | ||
composer config repositories.test-run '{"type": "path", "url": "drudbal_staging", "options": {"symlink": false}}' | ||
composer require "mondrake/drudbal:dev-test-run-branch" --no-progress --ansi | ||
- name: Install Drupal | ||
- name: Create Oracle schema | ||
run: | | ||
cp modules/contrib/drudbal/tests/github/install_* . | ||
php install_oracle.php | ||
- name: Install Drupal | ||
continue-on-error: true | ||
run: | | ||
vendor/bin/drush site-install standard --db-url=$SIMPLETEST_DB -y | ||
vendor/bin/drush runserver localhost:8080 --default-server=localhost:8080 & | ||
sleep 1s | ||
sleep 5s | ||
- name: Report installation | ||
continue-on-error: true | ||
run: | | ||
php install_report.php | ||
vendor/bin/drush core:status | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters