testgres-pg-probackup2 0.2.1__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/PKG-INFO +11 -2
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/pg_probackup2/app.py +26 -10
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/setup.py +1 -1
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/testgres_pg_probackup2.egg-info/PKG-INFO +12 -3
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/README.md +0 -0
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/pg_probackup2/__init__.py +0 -0
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/pg_probackup2/gdb.py +0 -0
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/pg_probackup2/init_helpers.py +0 -0
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/pg_probackup2/storage/__init__.py +0 -0
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/pg_probackup2/storage/fs_backup.py +0 -0
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/setup.cfg +0 -0
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/testgres_pg_probackup2.egg-info/SOURCES.txt +0 -0
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/testgres_pg_probackup2.egg-info/dependency_links.txt +0 -0
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/testgres_pg_probackup2.egg-info/requires.txt +0 -0
- {testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/testgres_pg_probackup2.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: testgres_pg_probackup2
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Plugin for testgres that manages pg_probackup2
|
|
5
5
|
Home-page: https://github.com/postgrespro/testgres
|
|
6
6
|
Author: Postgres Professional
|
|
@@ -8,3 +8,12 @@ Author-email: testgres@postgrespro.ru
|
|
|
8
8
|
License: PostgreSQL
|
|
9
9
|
Keywords: pg_probackup,testing,testgres
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: testgres>=1.9.2
|
|
12
|
+
Dynamic: author
|
|
13
|
+
Dynamic: author-email
|
|
14
|
+
Dynamic: description-content-type
|
|
15
|
+
Dynamic: home-page
|
|
16
|
+
Dynamic: keywords
|
|
17
|
+
Dynamic: license
|
|
18
|
+
Dynamic: requires-dist
|
|
19
|
+
Dynamic: summary
|
|
@@ -64,7 +64,10 @@ class ProbackupApp:
|
|
|
64
64
|
self.valgrind_sup_path = init_params.valgrind_sup_path
|
|
65
65
|
|
|
66
66
|
def form_daemon_process(self, cmdline, env):
|
|
67
|
-
|
|
67
|
+
if self.test_class.output is None:
|
|
68
|
+
self.test_class.output = str()
|
|
69
|
+
|
|
70
|
+
def stream_output(stream) -> None:
|
|
68
71
|
try:
|
|
69
72
|
for line in iter(stream.readline, ''):
|
|
70
73
|
print(line)
|
|
@@ -82,11 +85,11 @@ class ProbackupApp:
|
|
|
82
85
|
logging.info(f"Process started in background with PID: {self.process.pid}")
|
|
83
86
|
|
|
84
87
|
if self.process.stdout and self.process.stderr:
|
|
85
|
-
stdout_thread = threading.Thread(target=stream_output, args=(self.process.stdout,), daemon=True)
|
|
86
|
-
stderr_thread = threading.Thread(target=stream_output, args=(self.process.stderr,), daemon=True)
|
|
88
|
+
self.stdout_thread = threading.Thread(target=stream_output, args=(self.process.stdout,), daemon=True)
|
|
89
|
+
self.stderr_thread = threading.Thread(target=stream_output, args=(self.process.stderr,), daemon=True)
|
|
87
90
|
|
|
88
|
-
stdout_thread.start()
|
|
89
|
-
stderr_thread.start()
|
|
91
|
+
self.stdout_thread.start()
|
|
92
|
+
self.stderr_thread.start()
|
|
90
93
|
|
|
91
94
|
return self.process.pid
|
|
92
95
|
|
|
@@ -195,7 +198,14 @@ class ProbackupApp:
|
|
|
195
198
|
# Execute command
|
|
196
199
|
start_time = time.time()
|
|
197
200
|
if daemonize:
|
|
198
|
-
|
|
201
|
+
pid = self.form_daemon_process(cmdline, env)
|
|
202
|
+
if expect_error:
|
|
203
|
+
_timeout = 120
|
|
204
|
+
if self.stdout_thread:
|
|
205
|
+
self.stdout_thread.join(_timeout)
|
|
206
|
+
if self.stderr_thread:
|
|
207
|
+
self.stderr_thread.join(_timeout)
|
|
208
|
+
return pid
|
|
199
209
|
else:
|
|
200
210
|
self.test_class.output = subprocess.check_output(
|
|
201
211
|
cmdline,
|
|
@@ -492,10 +502,16 @@ class ProbackupApp:
|
|
|
492
502
|
if remote_port:
|
|
493
503
|
cmd_list.append(f'--remote-port={remote_port}')
|
|
494
504
|
if self.verbose:
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
505
|
+
if init_params.major_version > 2:
|
|
506
|
+
cmd_list += [
|
|
507
|
+
'--log-level-file=trace',
|
|
508
|
+
'--log-directory={0}'.format(destination_node.logs_dir)
|
|
509
|
+
]
|
|
510
|
+
else:
|
|
511
|
+
cmd_list += [
|
|
512
|
+
'--log-level-file=VERBOSE',
|
|
513
|
+
'--log-directory={0}'.format(destination_node.logs_dir)
|
|
514
|
+
]
|
|
499
515
|
|
|
500
516
|
return self.run(cmd_list + options, gdb=gdb, expect_error=expect_error, use_backup_dir=False)
|
|
501
517
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: testgres_pg_probackup2
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Plugin for testgres that manages pg_probackup2
|
|
5
5
|
Home-page: https://github.com/postgrespro/testgres
|
|
6
6
|
Author: Postgres Professional
|
|
@@ -8,3 +8,12 @@ Author-email: testgres@postgrespro.ru
|
|
|
8
8
|
License: PostgreSQL
|
|
9
9
|
Keywords: pg_probackup,testing,testgres
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: testgres>=1.9.2
|
|
12
|
+
Dynamic: author
|
|
13
|
+
Dynamic: author-email
|
|
14
|
+
Dynamic: description-content-type
|
|
15
|
+
Dynamic: home-page
|
|
16
|
+
Dynamic: keywords
|
|
17
|
+
Dynamic: license
|
|
18
|
+
Dynamic: requires-dist
|
|
19
|
+
Dynamic: summary
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/pg_probackup2/storage/__init__.py
RENAMED
|
File without changes
|
{testgres_pg_probackup2-0.2.1 → testgres_pg_probackup2-0.3.0}/pg_probackup2/storage/fs_backup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|