mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
Print DB Logs (#4754)
* Print DB Logs * Fake Fail Test * Remove Test Stuff * Prefer Long-Hand Options * Remove Test Failure * Print deadlocks
This commit is contained in:
parent
4f874ff375
commit
3f1127489d
12
.github/workflows/test-database.yml
vendored
12
.github/workflows/test-database.yml
vendored
@ -114,6 +114,18 @@ jobs:
|
|||||||
BW_TEST_DATABASES__3__CONNECTIONSTRING: "Data Source=${{ runner.temp }}/test.db"
|
BW_TEST_DATABASES__3__CONNECTIONSTRING: "Data Source=${{ runner.temp }}/test.db"
|
||||||
run: dotnet test --logger "trx;LogFileName=infrastructure-test-results.trx"
|
run: dotnet test --logger "trx;LogFileName=infrastructure-test-results.trx"
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
|
- name: Print MySQL Logs
|
||||||
|
if: failure()
|
||||||
|
run: 'docker logs $(docker ps --quiet --filter "name=mysql")'
|
||||||
|
|
||||||
|
- name: Print Postgres Logs
|
||||||
|
if: failure()
|
||||||
|
run: 'docker logs $(docker ps --quiet --filter "name=postgres")'
|
||||||
|
|
||||||
|
- name: Print MSSQL Logs
|
||||||
|
if: failure()
|
||||||
|
run: 'docker logs $(docker ps --quiet --filter "name=mssql")'
|
||||||
|
|
||||||
- name: Report test results
|
- name: Report test results
|
||||||
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
|
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
|
||||||
|
@ -58,7 +58,9 @@ services:
|
|||||||
container_name: bw-mysql
|
container_name: bw-mysql
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
command: --default-authentication-plugin=mysql_native_password
|
command:
|
||||||
|
- --default-authentication-plugin=mysql_native_password
|
||||||
|
- --innodb-print-all-deadlocks=ON
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||||
MYSQL_DATABASE: vault_dev
|
MYSQL_DATABASE: vault_dev
|
||||||
|
Loading…
Reference in New Issue
Block a user