File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ stable15 ]
88
9+ env :
10+ BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
11+
912jobs :
1013 build :
1114
@@ -14,14 +17,27 @@ jobs:
1417 steps :
1518 - name : pg
1619 run : |
17- echo "Deploying to production server on branch $GITHUB_REF"
20+ sudo apt install libipc-run-perl
21+
22+ echo "Deploying to production server on branch" $BRANCH_NAME
1823 git config --global user.email "ci@postgrespro.ru"
1924 git config --global user.name "CI PgPro admin"
25+ export COPT=-Werror
26+ export CONFIGURE_OPTS="--prefix=`pwd`/tmp_install --enable-tap-tests --enable-cassert"
2027 git clone https://github.com/postgres/postgres.git pg
2128 cd pg
29+
2230 git checkout REL_15_STABLE
23- ./configure --prefix=`pwd`/tmp_install
24- git subtree add --prefix= contrib/aqo https://github.com/postgrespro/aqo.git $GITHUB_REF
31+ git clone https://github.com/postgrespro/aqo.git contrib/aqo
32+ git -C contrib/aqo checkout $BRANCH_NAME
2533 patch -p1 --no-backup-if-mismatch < contrib/aqo/aqo_pg15.patch
34+ ./configure $CONFIGURE_OPTS CFLAGS="-O3"
35+ make -j4 > /dev/null && make -j4 -C contrib > /dev/null
36+ env CLIENTS=50 THREADS=50 make -C contrib/aqo check
37+
38+ echo "Use AQO with debug code included"
39+ git clean -fdx
40+ git -C contrib/aqo clean -fdx
41+ ./configure $CONFIGURE_OPTS CFLAGS="-DAQO_DEBUG_PRINT -O0"
2642 make -j4 > /dev/null && make -j4 -C contrib > /dev/null
2743 env CLIENTS=50 THREADS=50 make -C contrib/aqo check
Original file line number Diff line number Diff line change 336336 " SELECT sum(executions_with_aqo) FROM test.aqo_query_stat" );
337337
338338# 25 trans * 10 clients * 4 query classes = 1000 + unique SELECT to pgbench_branches
339- is($res , 1001 , ' Each query should be logged in LEARN mode' );
339+ is($res , $CLIENTS *100+1 , ' Each query should be logged in LEARN mode' );
340340$res = $node -> safe_psql(' postgres' ,
341341 " SELECT sum(executions_without_aqo) FROM test.aqo_query_stat" );
342342is($res , 0, ' AQO has learned on the queries - 2' );
You can’t perform that action at this time.
0 commit comments