mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 01:53:41 +08:00
Save postgres logs on Windows in CI
We don't save them currently.
This commit is contained in:
parent
8d1e165d7f
commit
d8e892a658
22
.github/workflows/windows-build-and-test.yaml
vendored
22
.github/workflows/windows-build-and-test.yaml
vendored
@ -107,10 +107,18 @@ jobs:
|
||||
icacls ${{ env.TABLESPACE2 }} /grant runneradmin:F /T
|
||||
copy build_win/test/postgresql.conf ${{ env.PGDATA }}
|
||||
copy build_win/test/pg_hba.conf ${{ env.PGDATA }}
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/pg_ctl start -o "${{ matrix.pg_config }}"
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/pg_ctl start -o "${{ matrix.pg_config }}" --log=postgres.log
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/pg_isready -U postgres -d postgres --timeout=30
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/psql -U postgres -d postgres -c 'CREATE USER root SUPERUSER LOGIN;'
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/psql -U postgres -d postgres -c 'SHOW log_filename;SHOW data_directory;SELECT version();'
|
||||
echo "PG version:"
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/psql -U postgres -d postgres -c 'SELECT version();'
|
||||
echo "Log configuration:"
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/psql -U postgres -d postgres -c 'SHOW logging_collector;'
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/psql -U postgres -d postgres -c 'SHOW log_filename;'
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/psql -U postgres -d postgres -c 'SHOW log_directory;'
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/psql -U postgres -d postgres -c 'SELECT pg_current_logfile();'
|
||||
echo "Data directory:"
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/psql -U postgres -d postgres -c 'SHOW data_directory;'
|
||||
|
||||
- name: Setup WSL
|
||||
if: matrix.pg != '12'
|
||||
@ -155,7 +163,7 @@ jobs:
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/initdb -U postgres -A trust --locale=us --encoding=UTF8
|
||||
copy build_win/tsl/test/postgresql.conf ${{ env.PGDATA }}
|
||||
copy build_win/tsl/test/pg_hba.conf ${{ env.PGDATA }}
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/pg_ctl start -o "${{ matrix.pg_config }}"
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/pg_ctl start -o "${{ matrix.pg_config }}" --log="postgres.log"
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/pg_isready -U postgres -d postgres --timeout=30
|
||||
~/PostgreSQL/${{ matrix.pg }}/bin/psql -U postgres -d postgres -c 'CREATE USER root SUPERUSER LOGIN;'
|
||||
|
||||
@ -201,3 +209,11 @@ jobs:
|
||||
with:
|
||||
name: Regression diff ${{ matrix.os }} ${{ matrix.name }} ${{ matrix.pg }}
|
||||
path: regression.log
|
||||
|
||||
- name: Save postgres log
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Postgres log ${{ matrix.os }} ${{ matrix.name }} ${{ matrix.pg }}
|
||||
path: postgres.log
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
# NOTE: any changes here require changes to two other places
|
||||
# 1) tsl/test/postgresql.conf requires that it's prefix be the same as this file.
|
||||
# 2) appveyor.yml needs to be updated with the same options
|
||||
# NOTE: any changes here require changes to tsl/test/postgresql.conf. Its prefix
|
||||
# must be the same as this file.
|
||||
|
||||
shared_preload_libraries=timescaledb
|
||||
max_worker_processes=24
|
||||
@ -13,7 +12,7 @@ timescaledb.license='apache'
|
||||
timescaledb.last_tuned='1971-02-03 04:05:06.789012 -0300'
|
||||
timescaledb.last_tuned_version='0.0.1'
|
||||
timescaledb_telemetry.cloud='ci'
|
||||
log_line_prefix='%u [%p] %d '
|
||||
log_line_prefix='%m: %u [%p] %d '
|
||||
# PG12 changed the default rounding behavior of floating point
|
||||
# numbers. Setting extra_float_digits=0 retains the old behavior which
|
||||
# is needed to make our tests work for multiple PostgreSQL versions.
|
||||
|
@ -9,25 +9,23 @@ datestyle='Postgres, MDY'
|
||||
timescaledb.last_tuned='1971-02-03 04:05:06.789012 -0300'
|
||||
timescaledb.last_tuned_version='0.0.1'
|
||||
timescaledb_telemetry.cloud='ci'
|
||||
log_line_prefix='%u [%p] '
|
||||
|
||||
# This section adds additional options required by TSL
|
||||
# Note any changes here require updates to appveyor.yml
|
||||
timescaledb.license='timescale'
|
||||
log_line_prefix='%u [%p] %d '
|
||||
log_line_prefix='%m %u [%p] %d '
|
||||
# PG12 changed the default rounding behavior of floating point
|
||||
# numbers. Setting extra_float_digits=0 retains the old behavior which
|
||||
# is needed to make our tests work for multiple PostgreSQL versions.
|
||||
extra_float_digits=0
|
||||
timescaledb.passfile='@TEST_PASSFILE@'
|
||||
hba_file='@TEST_PG_HBA_FILE@'
|
||||
|
||||
# This section adds additional options required by TSL.
|
||||
timescaledb.license='timescale'
|
||||
max_connections=200
|
||||
max_prepared_transactions=100 #set same as max_connections
|
||||
hba_file='@TEST_PG_HBA_FILE@'
|
||||
ssl=on
|
||||
ssl_ca_file='@TEST_OUTPUT_DIR@/ts_root.crt'
|
||||
ssl_cert_file='@TEST_OUTPUT_DIR@/ts_data_node.crt'
|
||||
ssl_key_file='@TEST_OUTPUT_DIR@/ts_data_node.key'
|
||||
timescaledb.ssl_dir='@TEST_OUTPUT_DIR@/timescaledb/certs'
|
||||
timescaledb.passfile='@TEST_PASSFILE@'
|
||||
wal_level='logical'
|
||||
timescaledb_experimental.enable_distributed_ddl=on
|
||||
log_error_verbosity='VERBOSE'
|
||||
|
Loading…
x
Reference in New Issue
Block a user