- Notifications
You must be signed in to change notification settings - Fork36
Usage of external testgres.os_ops and testgres.common#289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
dmitry-lipetsk wants to merge20 commits intopostgrespro:masterChoose a base branch fromdmitry-lipetsk:D20250816_001--external_os_ops_v001
base:master
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes fromall commits
Commits
Show all changes
20 commits Select commitHold shift + click to select a range
be36713
[prepare] rename: testgres -> src
dmitry-lipetska36f485
Using an testgres.os_ops
dmitry-lipetsk594fdb5
setup.py is corrected [install_requires: testgres.os_ops]
dmitry-lipetsk4170212
cleanup
dmitry-lipetsk0d5d30f
cleanup (__init__.py, pg_probackup2)
dmitry-lipetsk54082f8
[rollback] src/__init__.py is restored
dmitry-lipetskdd1c2a2
flake8
dmitry-lipetsk674026d
tests/requirements.txt is added
dmitry-lipetsk1a70df7
Usage of testgres.os_ops from postgrespro is begun
dmitry-lipetsk36acc38
GITHUB_TESTGRES_TOKEN_RO is used
dmitry-lipetsk5937003
setup.py is updated [secret]
dmitry-lipetskcce238a
cleanup
dmitry-lipetsk801ae9a
Merge branch 'master' into D20250816_001--external_os_ops_v001
dmitry-lipetske58698a
testgres.os_ops is open now
dmitry-lipetsk7f3c512
requirements.txt is updated
dmitry-lipetsk2266d99
cleanup [garbage]
dmitry-lipetske7dc9f3
[CI] Docker files are updated (git)
dmitry-lipetsk611943d
[CI] Docker file for Ubuntu 24.04 is fixed.
dmitry-lipetskebe8a08
[CI] Docker file for Ubuntu 24.04 is fixed [one more time]
dmitry-lipetskf13d4ae
A problem with documentation is fixed [Sphinx]
dmitry-lipetskFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
3 changes: 3 additions & 0 deletionsDockerfile--std-all.tmpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletionsDockerfile--std.tmpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletionsDockerfile--ubuntu_24_04.tmpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletionsdocs/Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletionsdocs/source/conf.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletionsetup.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletionstestgres/__init__.py → src/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletiontestgres/backup.py → src/backup.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletionstestgres/cache.py → src/cache.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletionstestgres/config.py → src/config.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
71 changes: 71 additions & 0 deletionssrc/exceptions.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# coding: utf-8 | ||
import six | ||
from testgres.operations.exceptions import TestgresException | ||
from testgres.operations.exceptions import ExecUtilException | ||
from testgres.operations.exceptions import InvalidOperationException | ||
class PortForException(TestgresException): | ||
pass | ||
@six.python_2_unicode_compatible | ||
class QueryException(TestgresException): | ||
def __init__(self, message=None, query=None): | ||
super(QueryException, self).__init__(message) | ||
self.message = message | ||
self.query = query | ||
def __str__(self): | ||
msg = [] | ||
if self.message: | ||
msg.append(self.message) | ||
if self.query: | ||
msg.append(u'Query: {}'.format(self.query)) | ||
return six.text_type('\n').join(msg) | ||
class TimeoutException(QueryException): | ||
pass | ||
class CatchUpException(QueryException): | ||
pass | ||
@six.python_2_unicode_compatible | ||
class StartNodeException(TestgresException): | ||
def __init__(self, message=None, files=None): | ||
super(StartNodeException, self).__init__(message) | ||
self.message = message | ||
self.files = files | ||
def __str__(self): | ||
msg = [] | ||
if self.message: | ||
msg.append(self.message) | ||
for f, lines in self.files or []: | ||
msg.append(u'{}\n----\n{}\n'.format(f, lines)) | ||
return six.text_type('\n').join(msg) | ||
class InitNodeException(TestgresException): | ||
pass | ||
class BackupException(TestgresException): | ||
pass | ||
assert ExecUtilException.__name__ == "ExecUtilException" | ||
assert InvalidOperationException.__name__ == "InvalidOperationException" |
2 changes: 1 addition & 1 deletiontestgres/impl/port_manager__generic.py → src/impl/port_manager__generic.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletionstestgres/node.py → src/node.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletionstestgres/utils.py → src/utils.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Empty file removedtestgres/operations/__init__.py
Empty file.
55 changes: 0 additions & 55 deletionstestgres/operations/helpers.py
This file was deleted.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.