mirror of
https://github.com/timescale/timescaledb.git
synced 2025-04-20 13:53:19 +08:00
Run update test on PG 11.8 and 12.3
This patch changes the update test to run on PG 11.8 and 12.3 instead of 11.0 and 12.0. This patch also adds additional diagnostic output when errors occur during the update test.
This commit is contained in:
parent
d547d61516
commit
cb801fb215
6
.github/workflows/update-test.yaml
vendored
6
.github/workflows/update-test.yaml
vendored
@ -13,11 +13,11 @@ jobs:
|
||||
runs-on: 'ubuntu-18.04'
|
||||
strategy:
|
||||
matrix:
|
||||
pg: ["11.0","12.0"]
|
||||
pg: ["11.8","12.3"]
|
||||
include:
|
||||
- pg: "11.0"
|
||||
- pg: "11.8"
|
||||
pg_major: 11
|
||||
- pg: "12.0"
|
||||
- pg: "12.3"
|
||||
pg_major: 12
|
||||
fail-fast: false
|
||||
env:
|
||||
|
@ -80,7 +80,13 @@ docker_logs() {
|
||||
}
|
||||
|
||||
docker_pgcmd() {
|
||||
docker_exec $1 "psql -h localhost -U postgres -d single -c \"$2\""
|
||||
set +e
|
||||
docker_exec $1 "psql -h localhost -U postgres -d single -v VERBOSITY=verbose -c \"$2\""
|
||||
if [ $? -ne 0 ]; then
|
||||
docker_logs $1
|
||||
exit 1
|
||||
fi
|
||||
set -e
|
||||
}
|
||||
|
||||
docker_pgscript() {
|
||||
@ -96,7 +102,13 @@ docker_pgdiff() {
|
||||
diff_file=update_test.diff.${UPDATE_FROM_TAG}
|
||||
>&2 echo -e "\033[1m$1 vs $2\033[0m: $2"
|
||||
docker_pgtest $1 $3
|
||||
if [ $? -ne 0 ]; then
|
||||
docker_logs $1
|
||||
fi
|
||||
docker_pgtest $2 $3
|
||||
if [ $? -ne 0 ]; then
|
||||
docker_logs $2
|
||||
fi
|
||||
echo "RUNNING: diff ${TEST_TMPDIR}/$1.out ${TEST_TMPDIR}/$2.out "
|
||||
diff -u ${TEST_TMPDIR}/$1.out ${TEST_TMPDIR}/$2.out | tee ${diff_file}
|
||||
if [ ! -s ${diff_file} ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user