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

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 merge27 commits intopostgrespro:master
base:master
Choose a base branch
Loading
fromdmitry-lipetsk:D20250816_001--external_os_ops_v001
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
27 commits
Select commitHold shift + click to select a range
be36713
[prepare] rename: testgres -> src
dmitry-lipetskAug 16, 2025
a36f485
Using an testgres.os_ops
dmitry-lipetskAug 16, 2025
594fdb5
setup.py is corrected [install_requires: testgres.os_ops]
dmitry-lipetskAug 16, 2025
4170212
cleanup
dmitry-lipetskSep 10, 2025
0d5d30f
cleanup (__init__.py, pg_probackup2)
dmitry-lipetskSep 10, 2025
54082f8
[rollback] src/__init__.py is restored
dmitry-lipetskSep 14, 2025
dd1c2a2
flake8
dmitry-lipetskSep 15, 2025
674026d
tests/requirements.txt is added
dmitry-lipetskSep 15, 2025
1a70df7
Usage of testgres.os_ops from postgrespro is begun
dmitry-lipetskSep 15, 2025
36acc38
GITHUB_TESTGRES_TOKEN_RO is used
dmitry-lipetskSep 22, 2025
5937003
setup.py is updated [secret]
dmitry-lipetskSep 22, 2025
cce238a
cleanup
dmitry-lipetskSep 23, 2025
801ae9a
Merge branch 'master' into D20250816_001--external_os_ops_v001
dmitry-lipetskSep 23, 2025
e58698a
testgres.os_ops is open now
dmitry-lipetskSep 30, 2025
7f3c512
requirements.txt is updated
dmitry-lipetskSep 30, 2025
2266d99
cleanup [garbage]
dmitry-lipetskSep 30, 2025
e7dc9f3
[CI] Docker files are updated (git)
dmitry-lipetskSep 30, 2025
611943d
[CI] Docker file for Ubuntu 24.04 is fixed.
dmitry-lipetskOct 1, 2025
ebe8a08
[CI] Docker file for Ubuntu 24.04 is fixed [one more time]
dmitry-lipetskOct 1, 2025
f13d4ae
A problem with documentation is fixed [Sphinx]
dmitry-lipetskOct 1, 2025
6b408fb
fix: testgres/exceptions.py is deleted (again)
dmitry-lipetskNov 1, 2025
de73028
req: testgres.os_ops>=0.0.2,<1.0.0
dmitry-lipetskNov 1, 2025
5d3ec71
Merge branch 'master' into D20250816_001--external_os_ops_v001
dmitry-lipetskNov 1, 2025
3084635
Merge branch 'master' into D20250816_001--external_os_ops_v001
dmitry-lipetskNov 3, 2025
4219763
dockerfiles: git is not required to get python packages
dmitry-lipetskNov 3, 2025
2b44d99
Merge branch 'master' into D20250816_001--external_os_ops_v001
dmitry-lipetskNov 3, 2025
a1037aa
Merge branch 'master' into D20250816_001--external_os_ops_v001
dmitry-lipetskNov 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
[prepare] rename: testgres -> src
Minimal changes.pg_probackup2 was not changed [I think, it is broken now].
  • Loading branch information
@dmitry-lipetsk
dmitry-lipetsk committedAug 16, 2025
commitbe36713711e2c82bda5dc597c6fb58ee4d02c01b
10 changes: 10 additions & 0 deletions.vscode/settings.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
{
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,

"python.testing.pytestArgs": [
"-l",
"-vvv",
"-n", "8"
],
}
9 changes: 9 additions & 0 deletionscreate_py_env.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
virtualenv venv
source venv/bin/activate
# pip install -U .
pip install flake8
pip install pytest
pip install pytest-xdist
pip install psycopg2
pip install six
pip install psutil
5 changes: 5 additions & 0 deletionsinit_test_env.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
export PG_BIN='/usr/local/pgsql/bin'
export PG_CONFIG=${PG_BIN}/pg_config
#export PGPROBACKUPBIN="/home/dima/MY/GitLab2/pg_probackup2/ee/work5/pg_probackup"
export PATH=${PATH}:${PG_BIN}

4 changes: 4 additions & 0 deletionsrun_vscode.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
source ./init_test_env.sh

code .

1 change: 1 addition & 0 deletionssetup.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,6 +30,7 @@
version='1.11.0',
name='testgres',
packages=['testgres', 'testgres.operations', 'testgres.impl'],
package_dir={"testgres": "src"},
description='Testing utility for PostgreSQL and its extensions',
url='https://github.com/postgrespro/testgres',
long_description=readme,
Expand Down
File renamed without changes.
View file
Open in desktop
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletionstests/helpers/global_data.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
fromtestgres.operations.os_ops import OsOperations
fromtestgres.operations.os_ops import ConnectionParams
fromtestgres.operations.local_ops import LocalOperations
fromtestgres.operations.remote_ops import RemoteOperations

fromtestgres.node import PortManager
fromtestgres.node import PortManager__ThisHost
fromtestgres.node import PortManager__Generic
fromsrc.operations.os_ops import OsOperations
fromsrc.operations.os_ops import ConnectionParams
fromsrc.operations.local_ops import LocalOperations
fromsrc.operations.remote_ops import RemoteOperations

fromsrc.node import PortManager
fromsrc.node import PortManager__ThisHost
fromsrc.node import PortManager__Generic

import os

Expand Down
10 changes: 5 additions & 5 deletionstests/test_config.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
fromtestgres import TestgresConfig
fromtestgres import configure_testgres
fromtestgres import scoped_config
fromtestgres import pop_config
fromsrc import TestgresConfig
fromsrc import configure_testgres
fromsrc import scoped_config
fromsrc import pop_config

import testgres
importsrc astestgres

import pytest

Expand Down
4 changes: 2 additions & 2 deletionstests/test_os_ops_common.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,8 +15,8 @@
import typing
import uuid

fromtestgres import InvalidOperationException
fromtestgres import ExecUtilException
fromsrc import InvalidOperationException
fromsrc import ExecUtilException

from concurrent.futures import ThreadPoolExecutor
from concurrent.futures import Future as ThreadFuture
Expand Down
2 changes: 1 addition & 1 deletiontests/test_os_ops_remote.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,7 @@
from .helpers.global_data import OsOpsDescrs
from .helpers.global_data import OsOperations

fromtestgres import ExecUtilException
fromsrc import ExecUtilException

import os
import pytest
Expand Down
46 changes: 23 additions & 23 deletionstests/test_testgres_common.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,32 +5,32 @@
from .helpers.global_data import OsOperations
from .helpers.global_data import PortManager

fromtestgres.node import PgVer
fromtestgres.node import PostgresNode
fromtestgres.node import PostgresNodeLogReader
fromtestgres.node import PostgresNodeUtils
fromtestgres.utils import get_pg_version2
fromtestgres.utils import file_tail
fromtestgres.utils import get_bin_path2
fromtestgres import ProcessType
fromtestgres import NodeStatus
fromtestgres import IsolationLevel
fromtestgres import NodeApp
fromsrc.node import PgVer
fromsrc.node import PostgresNode
fromsrc.node import PostgresNodeLogReader
fromsrc.node import PostgresNodeUtils
fromsrc.utils import get_pg_version2
fromsrc.utils import file_tail
fromsrc.utils import get_bin_path2
fromsrc import ProcessType
fromsrc import NodeStatus
fromsrc import IsolationLevel
fromsrc import NodeApp

# New name prevents to collect test-functions in TestgresException and fixes
# the problem with pytest warning.
fromtestgres import TestgresException as testgres_TestgresException

fromtestgres import InitNodeException
fromtestgres import StartNodeException
fromtestgres import QueryException
fromtestgres import ExecUtilException
fromtestgres import TimeoutException
fromtestgres import InvalidOperationException
fromtestgres import BackupException
fromtestgres import ProgrammingError
fromtestgres import scoped_config
fromtestgres import First, Any
fromsrc import TestgresException as testgres_TestgresException

fromsrc import InitNodeException
fromsrc import StartNodeException
fromsrc import QueryException
fromsrc import ExecUtilException
fromsrc import TimeoutException
fromsrc import InvalidOperationException
fromsrc import BackupException
fromsrc import ProgrammingError
fromsrc import scoped_config
fromsrc import First, Any

from contextlib import contextmanager

Expand Down
24 changes: 12 additions & 12 deletionstests/test_testgres_local.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,21 +7,21 @@
import platform
import logging

import testgres
importsrc astestgres

fromtestgres import StartNodeException
fromtestgres import ExecUtilException
fromtestgres import NodeApp
fromtestgres import scoped_config
fromtestgres import get_new_node
fromtestgres import get_bin_path
fromtestgres import get_pg_config
fromtestgres import get_pg_version
fromsrc import StartNodeException
fromsrc import ExecUtilException
fromsrc import NodeApp
fromsrc import scoped_config
fromsrc import get_new_node
fromsrc import get_bin_path
fromsrc import get_pg_config
fromsrc import get_pg_version

# NOTE: those are ugly imports
fromtestgres.utils import bound_ports
fromtestgres.utils import PgVer
fromtestgres.node import ProcessProxy
fromsrc.utils import bound_ports
fromsrc.utils import PgVer
fromsrc.node import ProcessProxy


def pg_version_ge(version):
Expand Down
14 changes: 7 additions & 7 deletionstests/test_testgres_remote.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,16 +7,16 @@
from .helpers.global_data import PostgresNodeService
from .helpers.global_data import PostgresNodeServices

import testgres
importsrc astestgres

fromtestgres.exceptions import InitNodeException
fromtestgres.exceptions import ExecUtilException
fromsrc.exceptions import InitNodeException
fromsrc.exceptions import ExecUtilException

fromtestgres.config import scoped_config
fromtestgres.config import testgres_config
fromsrc.config import scoped_config
fromsrc.config import testgres_config

fromtestgres import get_bin_path
fromtestgres import get_pg_config
fromsrc import get_bin_path
fromsrc import get_pg_config

# NOTE: those are ugly imports

Expand Down
6 changes: 3 additions & 3 deletionstests/test_utils.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,9 +2,9 @@
from .helpers.global_data import OsOpsDescrs
from .helpers.global_data import OsOperations

fromtestgres.utils import parse_pg_version
fromtestgres.utils import get_pg_config2
fromtestgres import scoped_config
fromsrc.utils import parse_pg_version
fromsrc.utils import get_pg_config2
fromsrc import scoped_config

import pytest
import typing
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp