Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3cf1112

Browse files
committed
Update github actions file (c-cpp.yml):
1. Enable TAP-tests2. Add some useful options for configure and build stages.3. Parameterize github CI, just to reduce code duplication.Authors: m.polyakova (mostly), and a.lepikhov.
1 parent3ec9848 commit3cf1112

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

‎.github/workflows/c-cpp.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:[ master ]
88

99
env:
10-
BRANCH_NAME:${{ github.head_ref || github.ref_name }}
10+
BRANCH_NAME:${{ github.head_ref || github.ref_name }}
1111

1212
jobs:
1313
build:
@@ -17,22 +17,25 @@ jobs:
1717
steps:
1818
-name:pg
1919
run:|
20+
sudo apt install libipc-run-perl
2021
echo "Deploying to production server on branch" $BRANCH_NAME
2122
git config --global user.email "ci@postgrespro.ru"
2223
git config --global user.name "CI PgPro admin"
24+
export COPT=-Werror
25+
export CONFIGURE_OPTS="--prefix=`pwd`/tmp_install --enable-tap-tests --enable-cassert"
2326
git clone https://github.com/postgres/postgres.git pg
2427
cd pg
2528
git checkout master
26-
./configure--prefix=`pwd`/tmp_install CFLAGS="-O3"
29+
./configure$CONFIGURE_OPTS CFLAGS="-O3"
2730
git clone https://github.com/postgrespro/aqo.git contrib/aqo
2831
git -C contrib/aqo checkout $BRANCH_NAME
2932
patch -p1 --no-backup-if-mismatch < contrib/aqo/aqo_master.patch
3033
make -j4 > /dev/null && make -j4 -C contrib > /dev/null
3134
env CLIENTS=50 THREADS=50 make -C contrib/aqo check
32-
35+
3336
echo "Use AQO with debug code included"
3437
git clean -fdx
3538
git -C contrib/aqo clean -fdx
36-
./configure--prefix=`pwd`/tmp_install CFLAGS="-DAQO_DEBUG_PRINT -O0"
39+
./configure$CONFIGURE_OPTS CFLAGS="-DAQO_DEBUG_PRINT -O0"
3740
make -j4 > /dev/null && make -j4 -C contrib > /dev/null
3841
env CLIENTS=50 THREADS=50 make -C contrib/aqo check

‎t/001_pgbench.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
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");
342342
is($res, 0,'AQO has learned on the queries - 2');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp