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

Commitea4ff49

Browse files
authored
Merge pull request#668 from postgrespro/autotests
Update autotests .travis.yml
2 parentsabe44f3 +5562f37 commitea4ff49

File tree

11 files changed

+46
-116
lines changed

11 files changed

+46
-116
lines changed

‎.github/workflows/build.yml‎

Lines changed: 0 additions & 93 deletions
This file was deleted.

‎.travis.yml‎

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
os:linux
22

3-
dist:jammy
3+
dist:noble
44

55
language:c
66

@@ -63,17 +63,21 @@ notifications:
6363

6464
# Default MODE is basic, i.e. all tests with PG_PROBACKUP_TEST_BASIC=ON
6565
env:
66-
-PG_VERSION=16 PG_BRANCH=master PTRACK_PATCH_PG_BRANCH=master
66+
-PG_VERSION=19 PG_BRANCH=master PTRACK_PATCH_PG_BRANCH=master
67+
-PG_VERSION=18 PG_BRANCH=REL_18_STABLE PTRACK_PATCH_PG_BRANCH=REL_18_STABLE
68+
-PG_VERSION=18 PG_BRANCH=REL_18_STABLE PTRACK_PATCH_PG_BRANCH=REL_18_STABLE MODE=full
69+
-PG_VERSION=17 PG_BRANCH=REL_17_STABLE PTRACK_PATCH_PG_BRANCH=REL_17_STABLE
70+
-PG_VERSION=16 PG_BRANCH=REL_16_STABLE PTRACK_PATCH_PG_BRANCH=REL_16_STABLE
6771
-PG_VERSION=15 PG_BRANCH=REL_15_STABLE PTRACK_PATCH_PG_BRANCH=REL_15_STABLE
6872
-PG_VERSION=14 PG_BRANCH=REL_14_STABLE PTRACK_PATCH_PG_BRANCH=REL_14_STABLE
6973
-PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=REL_13_STABLE
70-
-PG_VERSION=12 PG_BRANCH=REL_12_STABLE PTRACK_PATCH_PG_BRANCH=REL_12_STABLE
71-
-PG_VERSION=11 PG_BRANCH=REL_11_STABLE PTRACK_PATCH_PG_BRANCH=REL_11_STABLE
72-
-PG_VERSION=10 PG_BRANCH=REL_10_STABLE
73-
-PG_VERSION=9.6 PG_BRANCH=REL9_6_STABLE
74-
-PG_VERSION=9.5 PG_BRANCH=REL9_5_STABLE
75-
-PG_VERSION=15 PG_BRANCH=REL_15_STABLE PTRACK_PATCH_PG_BRANCH=OFF MODE=backup_test.BackupTest.test_full_backup
76-
-PG_VERSION=15 PG_BRANCH=REL_15_STABLE PTRACK_PATCH_PG_BRANCH=OFF MODE=backup_test.BackupTest.test_full_backup_stream
74+
# - PG_VERSION=12 PG_BRANCH=REL_12_STABLE PTRACK_PATCH_PG_BRANCH=REL_12_STABLE
75+
# - PG_VERSION=11 PG_BRANCH=REL_11_STABLE PTRACK_PATCH_PG_BRANCH=REL_11_STABLE
76+
# - PG_VERSION=10 PG_BRANCH=REL_10_STABLE
77+
# - PG_VERSION=9.6 PG_BRANCH=REL9_6_STABLE
78+
# - PG_VERSION=9.5 PG_BRANCH=REL9_5_STABLE
79+
# - PG_VERSION=18 PG_BRANCH=REL_18_STABLE PTRACK_PATCH_PG_BRANCH=OFF MODE=backup_test.BackupTest.test_full_backup
80+
# - PG_VERSION=18 PG_BRANCH=REL_18_STABLE PTRACK_PATCH_PG_BRANCH=OFF MODE=backup_test.BackupTest.test_full_backup_stream
7781
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=REL_13_STABLE MODE=backup
7882
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=REL_13_STABLE MODE=catchup
7983
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=REL_13_STABLE MODE=checkdb
@@ -92,7 +96,8 @@ env:
9296
jobs:
9397
allow_failures:
9498
-if:env(PG_BRANCH) = master
95-
-if:env(PG_BRANCH) = REL9_5_STABLE
99+
-if:env(MODE) = full
100+
# - if: env(PG_BRANCH) = REL9_5_STABLE
96101
# - if: env(MODE) IN (archive, backup, delta, locking, merge, replica, retention, restore)
97102

98103
# Only run CI for master branch commits to limit our travis usage

‎tests/cfs_backup_test.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ def test_delete_random_data_file_from_tablespace_dir(self):
11041104

11051105
list_data_files=find_by_pattern(
11061106
[self.get_tblspace_path(self.node,tblspace_name)],
1107-
'^.*/\d+$')
1107+
r'^.*/\d+$')
11081108
self.assertTrue(
11091109
list_data_files,
11101110
"ERROR: Files of data not found into tablespace dir"
@@ -1166,7 +1166,7 @@ def test_broken_random_data_file_into_tablespace_dir(self):
11661166

11671167
list_data_files=find_by_pattern(
11681168
[self.get_tblspace_path(self.node,tblspace_name)],
1169-
'^.*/\d+$')
1169+
r'^.*/\d+$')
11701170
self.assertTrue(
11711171
list_data_files,
11721172
"ERROR: Files of data not found into tablespace dir"

‎tests/delete_test.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def test_delete_interleaved_incremental_chains(self):
486486

487487
# @unittest.skip("skip")
488488
deftest_delete_multiple_descendants(self):
489-
"""
489+
r"""
490490
PAGEb3
491491
| PAGEa3
492492
PAGEb2 /
@@ -654,7 +654,7 @@ def test_delete_multiple_descendants(self):
654654

655655
# @unittest.skip("skip")
656656
deftest_delete_multiple_descendants_dry_run(self):
657-
"""
657+
r"""
658658
PAGEa3
659659
PAGEa2 /
660660
\ /

‎tests/false_positive_test.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def test_recovery_target_lsn_backup_victim(self):
214214
@y.sokolov: looks like this test should pass.
215215
So I commented 'expectedFailure'
216216
"""
217+
self._check_gdb_flag_or_skip_test()
217218
backup_dir=os.path.join(self.tmp_path,self.module_name,self.fname,'backup')
218219
node=self.make_simple_node(
219220
base_dir=os.path.join(self.module_name,self.fname,'node'),

‎tests/incr_restore_test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,7 @@ def test_incr_restore_issue_313(self):
24292429
"""
24302430
Check that failed incremental restore can be restarted
24312431
"""
2432-
self._check_gdb_flag_or_skip_test
2432+
self._check_gdb_flag_or_skip_test()
24332433
node=self.make_simple_node('node',
24342434
set_replication=True,
24352435
initdb_params=['--data-checksums'])

‎tests/merge_test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ def test_merge_backup_from_future(self):
19501950

19511951
# @unittest.skip("skip")
19521952
deftest_merge_multiple_descendants(self):
1953-
"""
1953+
r"""
19541954
PAGEb3
19551955
| PAGEa3
19561956
PAGEb2 /

‎tests/restore_test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3866,7 +3866,7 @@ def test_restore_issue_313(self):
38663866
"""
38673867
Check that partially restored PostgreSQL instance cannot be started
38683868
"""
3869-
self._check_gdb_flag_or_skip_test
3869+
self._check_gdb_flag_or_skip_test()
38703870
node=self.make_simple_node('node',
38713871
set_replication=True,
38723872
initdb_params=['--data-checksums'])

‎tests/retention_test.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def test_window_merge_interleaved_incremental_chains_1(self):
714714

715715
# @unittest.skip("skip")
716716
deftest_basic_window_merge_multiple_descendants(self):
717-
"""
717+
r"""
718718
PAGEb3
719719
| PAGEa3
720720
-----------------------------retention window
@@ -970,7 +970,7 @@ def test_basic_window_merge_multiple_descendants(self):
970970

971971
# @unittest.skip("skip")
972972
deftest_basic_window_merge_multiple_descendants_1(self):
973-
"""
973+
r"""
974974
PAGEb3
975975
| PAGEa3
976976
-----------------------------retention window

‎travis/install.sh‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ cd postgres # Go to postgres dir
3939
if ["$PG_PROBACKUP_PTRACK"="ON" ];then
4040
git apply -3 contrib/ptrack/patches/${PTRACK_PATCH_PG_BRANCH}-ptrack-core.diff
4141
fi
42+
43+
if ["$PG_BRANCH"="REL_18_STABLE" ];then
44+
git apply -3 ../patches/${PG_BRANCH}_pg_probackup.patch
45+
fi
46+
4247
CC='ccache gcc' CFLAGS="-Og" ./configure --prefix=$PGHOME \
4348
--cache-file=~/.ccache/configure-cache \
4449
--enable-debug --enable-cassert --enable-depend \
@@ -63,4 +68,4 @@ if [ ! -d "contrib/amcheck" ]; then
6368
make -C contrib/amcheck install
6469
fi
6570

66-
pip3 installtestgres
71+
pip3 install-r ../tests/requirements.txt

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp