Skip to content

Commit 2fd9bd4

Browse files
committed
[travis] try to fix test_ptrack_vacuum_full
1 parent 437a469 commit 2fd9bd4

File tree

3 files changed

+43
-22
lines changed

3 files changed

+43
-22
lines changed

.travis.yml

+19-19
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ notifications:
2121

2222
# keep in sync with codecov.yml number of builds
2323
env:
24-
- PG_VERSION=15 PG_BRANCH=master TEST_CASE=tap
25-
- PG_VERSION=15 PG_BRANCH=master TEST_CASE=tap MODE=legacy
26-
- PG_VERSION=15 PG_BRANCH=master TEST_CASE=all
27-
- PG_VERSION=15 PG_BRANCH=master TEST_CASE=all MODE=paranoia
28-
- PG_VERSION=14 PG_BRANCH=REL_14_STABLE TEST_CASE=tap
29-
- PG_VERSION=14 PG_BRANCH=REL_14_STABLE TEST_CASE=tap MODE=legacy
30-
- PG_VERSION=14 PG_BRANCH=REL_14_STABLE TEST_CASE=all
24+
# - PG_VERSION=15 PG_BRANCH=master TEST_CASE=tap
25+
# - PG_VERSION=15 PG_BRANCH=master TEST_CASE=tap MODE=legacy
26+
# - PG_VERSION=15 PG_BRANCH=master TEST_CASE=all
27+
# - PG_VERSION=15 PG_BRANCH=master TEST_CASE=all MODE=paranoia
28+
# - PG_VERSION=14 PG_BRANCH=REL_14_STABLE TEST_CASE=tap
29+
# - PG_VERSION=14 PG_BRANCH=REL_14_STABLE TEST_CASE=tap MODE=legacy
30+
# - PG_VERSION=14 PG_BRANCH=REL_14_STABLE TEST_CASE=all
3131
- PG_VERSION=14 PG_BRANCH=REL_14_STABLE TEST_CASE=all MODE=paranoia
32-
- PG_VERSION=13 PG_BRANCH=REL_13_STABLE TEST_CASE=tap
33-
- PG_VERSION=13 PG_BRANCH=REL_13_STABLE TEST_CASE=tap MODE=legacy
34-
- PG_VERSION=13 PG_BRANCH=REL_13_STABLE TEST_CASE=all
35-
- PG_VERSION=13 PG_BRANCH=REL_13_STABLE TEST_CASE=all MODE=paranoia
36-
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=tap
37-
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=tap MODE=legacy
38-
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=all
39-
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=all MODE=paranoia
40-
- PG_VERSION=11 PG_BRANCH=REL_11_STABLE TEST_CASE=tap
41-
- PG_VERSION=11 PG_BRANCH=REL_11_STABLE TEST_CASE=tap MODE=legacy
42-
- PG_VERSION=11 PG_BRANCH=REL_11_STABLE TEST_CASE=all
43-
- PG_VERSION=11 PG_BRANCH=REL_11_STABLE TEST_CASE=all MODE=paranoia
32+
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE TEST_CASE=tap
33+
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE TEST_CASE=tap MODE=legacy
34+
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE TEST_CASE=all
35+
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE TEST_CASE=all MODE=paranoia
36+
# - PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=tap
37+
# - PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=tap MODE=legacy
38+
# - PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=all
39+
# - PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=all MODE=paranoia
40+
# - PG_VERSION=11 PG_BRANCH=REL_11_STABLE TEST_CASE=tap
41+
# - PG_VERSION=11 PG_BRANCH=REL_11_STABLE TEST_CASE=tap MODE=legacy
42+
# - PG_VERSION=11 PG_BRANCH=REL_11_STABLE TEST_CASE=all
43+
# - PG_VERSION=11 PG_BRANCH=REL_11_STABLE TEST_CASE=all MODE=paranoia
4444

4545
jobs:
4646
allow_failures:

docker-compose.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1-
tests:
2-
privileged: true
3-
build: .
1+
version: "3.7"
2+
services:
3+
tests:
4+
build:
5+
context: .
6+
7+
cap_add:
8+
- SYS_PTRACE
9+
10+
security_opt:
11+
- seccomp=unconfined
12+
13+
# don't work
14+
#sysctls:
15+
# kernel.yama.ptrace_scope: 0
16+
privileged: true
17+

run_tests.sh

+7
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ if [ "$TEST_CASE" = "tap" ]; then
9797
fi
9898

9999
else
100+
# Show kernel params (used for debugging -- probackup tests)
101+
echo "############### kernel params:"
102+
cat /proc/sys/kernel/yama/ptrace_scope
103+
sysctl kernel.yama.ptrace_scope=0
104+
cat /proc/sys/kernel/yama/ptrace_scope
105+
sudo sysctl kernel.yama.ptrace_scope=0
106+
cat /proc/sys/kernel/yama/ptrace_scope
100107

101108
# Build and install pg_probackup
102109
echo "############### Compiling and installing pg_probackup"

0 commit comments

Comments
 (0)