Yura Sokolov
2538b5d91f
delete "\r" in windows command output.
2023-04-18 18:25:36 +03:00
Daria Lepikhova
9727a98976
PBCKP-422: Fix is_enterprise checking for upstream and pgpro. Add is_pgpro checking
2023-03-10 18:24:46 +03:00
Yura Sokolov
610216c6f8
ptrack_helpers.py: fix compare_pgdata
2023-01-13 15:31:12 +03:00
Yura Sokolov
22bdbb3915
[PBCKP-423] test_archive_push_sanity: wait logs with tail_file
...
(and some other test as well).
2023-01-11 23:37:45 +03:00
Yura Sokolov
25e63c5a7c
raw strings in python regex; ignore generated transation files
...
Author: Sergey Fukanchik
2022-12-08 07:44:12 +03:00
Yura Sokolov
fc50cf0ddf
tests: fix
...
travis uses old image with python3.5
2022-12-04 04:24:55 +03:00
Yura Sokolov
02e3fb0477
tests: table_checksum needs no sorting in fact
...
since we are compare table content exactly
2022-12-04 04:15:55 +03:00
Yura Sokolov
8d8a92c1d1
tests: more usages for table_checksum
...
and reduce batch twice for sanity
2022-12-02 16:56:54 +03:00
Yura Sokolov
9bcefb2569
[PBCKP-327] test_ptrack_multiple_segments: try to avoid memory consumption
2022-12-02 15:10:22 +03:00
Yura Sokolov
440441dc6f
... fix names
2022-11-25 11:26:54 +03:00
Yura Sokolov
1617eb34ec
tests: prettify pgdata_content and compare_pgdata
2022-11-25 11:03:52 +03:00
Yura Sokolov
20667e9594
tests: better directory collection in pgdata_content
...
There is no need to walk pgdata twice.
We could delete parent directories instead of skipping them.
2022-11-25 08:31:00 +03:00
Yura Sokolov
19a7c5b01f
tests: do not read whole file at once for digest. Iterate instead.
2022-11-25 07:59:14 +03:00
Yura Sokolov
7eab6e3463
[PBCKP-358] sort directories to not skip 'base/1' because of 'base/12699'
...
Looks like os.walk may yield dirs unsorted.
This way "check if directory already here as part of larger directory"
man mistakenly skip short 'base/1' as "part of" 'base/12699'
2022-11-25 07:58:08 +03:00
Yura Sokolov
b7a183081e
[PBCKP-357] fix UnicodeDecodeError
...
Got in some tests:
```
Traceback (most recent call last):
File "pg_probackup/tests/replica.py", line 625, in test_replica_stop_lsn_null_offset
gdb_checkpointer = self.gdb_attach(bgwriter_pid)
File "pg_probackup/tests/helpers/ptrack_helpers.py", line 1984, in gdb_attach
return GDBobj([str(pid)], self, attach=True)
File "pg_probackup/tests/helpers/ptrack_helpers.py", line 2054, in __init__
line = self.get_line()
File "pg_probackup/tests/helpers/ptrack_helpers.py", line 2065, in get_line
line = self.proc.stdout.readline()
File "/usr/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 189: invalid continuation byte
```
Fixed with `errors='replace'`
2022-11-25 06:40:07 +03:00
Yura Sokolov
73cce507c2
[PBCKP-358] fix CatchupTest.test_unclean_(delta|ptrack)_catchup
...
and BugTest.test_minrecpoint_on_replica as well
Tests were broken with introduction of "startness" handling in
9924ab014 [PBCKP-304] extended testgres.PosgresNode to ...
since tests uses os.kill directly.
2022-11-25 04:20:29 +03:00
Yura Sokolov
4c823b3930
...
2022-11-16 16:14:32 +03:00
Yura Sokolov
516d325a11
Merge branch 'REL_2_5' into REL_2_5-PBCKP-304
2022-11-16 16:12:10 +03:00
Ivan Lazarev
af4fb2e8c6
[PBCKP-304] moved _is_result_is_ok() into ProbackupTest class scope
2022-11-16 02:00:05 +03:00
Ivan Lazarev
9924ab0142
[PBCKP-304] extended testgres.PosgresNode to filter excessive close() and its log entries calls
2022-11-15 17:45:28 +03:00
Yura Sokolov
e2b4549887
Merge branch 'REL_2_5' into REL_2_5-PBCKP-304
2022-11-15 17:35:22 +03:00
Yura Sokolov
de411ed393
Merge branch 'REL_2_5_correct_test_skip' into REL_2_5
2022-11-15 13:03:45 +03:00
Yura Sokolov
b7bd831b8d
correctly test skips
2022-11-15 11:32:15 +03:00
Alexey Savchkov
d7cc00b358
Check pg_probackup binary in PATH
2022-11-10 01:02:29 +07:00
Ivan Lazarev
cda016c955
[PBCKP-304] removed ProbackupTest.clean_all() GC magic, simplified ProbackupTest.tearDown()
2022-11-09 03:44:47 +03:00
Ivan Lazarev
39e06f576b
[PBCKP-304] test dirs cleanup fixed - added logic for nodes GC and dirs cleanup
2022-11-09 01:56:11 +03:00
Ivan Lazarev
bc945994de
[PBCKP-304] auto tests cleanup added to ptrack_helper.py
2022-11-03 07:04:34 +03:00
Ivan Lazarev
03f210b2be
[PBCKP-304] cfs tests moved back to build
2022-11-03 07:04:34 +03:00
Yura Sokolov
a20eb7bddb
[PGPRO-146] pgdata_content: checksum for truncated cfm
2022-10-24 21:57:14 +03:00
Daniel Shelepanov
53abc0b6e7
[PGPRO-6938] pg_probackup has been ported to version 15
...
Has been tested on 15beta2 and 16
tags: pg_probackup
2022-09-14 18:31:22 +03:00
Mikhail A. Kulagin
1bb0762729
[PBCKP-259] fix for 'ERROR: Cannot create directory for older backup'… ( #526 )
...
* [PBCKP-259] fix for 'ERROR: Cannot create directory for older backup', rewrite --start_time implementation
* rewritten 5f2283c8de
* fixes for several tests
* disabled tests.merge.MergeTest.test_merge_backup_from_future and tests.restore.RestoreTest.test_restore_backup_from_future as incorrect for now
Co-authored-by: d.lepikhova <d.lepikhova@postgrespro.ru >
2022-09-01 14:38:17 +03:00
dlepikhova
2bc096bdf0
Merge pull request #515 from postgrespro/PBCKP-170
...
PBCKP-170
2022-08-04 20:56:34 +05:00
dlepikhova
a0484a2d19
Merge branch 'REL_2_5' into PBCKP-155
2022-08-04 13:22:29 +05:00
dlepikhova
786ccf0564
Merge pull request #501 from postgrespro/enable_nls_check
...
Add checking enable-nls option in configure
2022-08-03 18:55:43 +05:00
Ivan Lazarev
81c53ea0bb
[PBCKP-231] hotfix for python2
2022-07-12 15:04:21 +03:00
d.lepikhova
94caeb1793
Shorthand return-expression
2022-07-08 15:51:09 +05:00
Ivan Lazarev
9c6e3ce3f7
[PBCKP-220] all gdb tests fixup
2022-07-01 13:52:20 +03:00
Ivan Lazarev
26939d67c4
[PBCKP-220] removed inheritance GDBObj->ProbackupTest
2022-07-01 04:00:05 +03:00
Ivan Lazarev
32aae17928
[PBCKP-220] minor updates for gdb checks, checking CI tests
2022-06-30 02:28:29 +03:00
d.lepikhova
f544da1ecd
Shorthand return-expression
2022-06-29 22:18:07 +05:00
d.lepikhova
55d3fa8979
Rename enable_nls() function in ptrack_helpers.p is_nls_enabled()
2022-06-29 11:08:05 +05:00
d.lepikhova
039e3c8678
Add checking enable-nls option in configure For correct work test_help_6 we need skip this test if PostgreSQL configured without --enable-nls
2022-06-22 17:04:55 +05:00
d.lepikhova
1b75b4ed62
Add tests for --start-time option on the one and few nodes
2022-06-07 14:29:44 +05:00
d.lepikhova
02aef65853
Fix is_enterprise checking in ptrack_helpers.py
2022-05-31 11:21:59 +05:00
asavchkov
0b5b37e893
Add a workflow to build and test probackup on Windows ( #484 )
...
* Add a workflow to build and test probackup on Windows
* [PBCKP-149] fix test_basic_validate_nullified_heap_page_backup for windows
Co-authored-by: Alexey Savchkov <a.savchkov@postgrespro.ru >
Co-authored-by: Mikhail A. Kulagin <m.kulagin@postgrespro.ru >
2022-05-26 15:53:01 +03:00
dlepikhova
b87ca18bfc
[Issue #265 ][PGPRO-5421] archive-push backward compatibility ( #437 )
...
Restore the --wal-file-path option of the archive-push command (it was ignored since a196073 )
Co-authored-by: Mikhail A. Kulagin <m.kulagin@postgrespro.ru >
Co-authored-by: Elena Indrupskaya <e.indrupskaya@postgrespro.ru >
2021-11-22 10:41:49 +03:00
Mikhail A. Kulagin
196a70bd32
Fixes for ptrack tests (test_ptrack_vacuum, test_ptrack_vacuum_bits_frozen, test_ptrack_vacuum_bits_visibility):
...
this is workaround for spgist metadata update bug (PGPRO-5707)
2021-10-20 20:37:44 +03:00
Mikhail A. Kulagin
3cd69fb903
relaxation of the requirement for calling the old pg_catalog.ptrack_version() function
2021-10-18 17:20:35 +03:00
Mikhail A. Kulagin
80e88588c7
Fix broken in da5eb96 tests.validate.ValidateTest.test_basic_validate_nullified_heap_page_backup
2021-10-14 16:52:25 +03:00
Mikhail A. Kulagin
da5eb961c4
Stabilize tests.backup.BackupTest.test_backup_modes_archive
2021-10-14 16:06:10 +03:00