-
Notifications
You must be signed in to change notification settings - Fork 35
Comparing changes
Open a pull request
base repository: postgrespro/testgres
base: 330fd9a
head repository: postgrespro/testgres
compare: 0470d30
- 17 commits
- 26 files changed
- 2 contributors
Commits on Apr 24, 2025
-
2
Configuration menu - View commit details
-
Copy full SHA for 6e5e4f5 - Browse repository at this point
Copy the full SHA 6e5e4f5View commit details
Commits on Apr 25, 2025
-
[FIX] Tests include testgres by right way through import (#241)
When we do not have root __init__.py tests must to import testgres through "import testgres" not through "from <relative_path> import testgres"
Configuration menu - View commit details
-
Copy full SHA for 1a662f1 - Browse repository at this point
Copy the full SHA 1a662f1View commit details
Commits on Apr 28, 2025
-
[#240] Using of node.psql with other host and port (#242)
* [FIX] Tests include testgres by right way through import When we do not have root __init__.py tests must to import testgres through "import testgres" not through "from <relative_path> import testgres" * [#240] Using of node.psql with other host and port This patch adds the support of using other host and port in the following methods: - PostgresNode.psql (explicit new args: host and port) - PostgresNode.safe_psql (indirectly through **kwargs) It allows to run psql utility from one PostgreSQL instance to work with another one. If explicit host and port are not defined (are None), PostgresNode will use own ones. This patch closes #240.
Configuration menu - View commit details
-
Copy full SHA for 94d7572 - Browse repository at this point
Copy the full SHA 94d7572View commit details
Commits on May 1, 2025
-
Testgres tests create log dir in exact place (#243)
When we do not define TEST_CFG__LOG_DIR it is expected the testgres tests will create a log directory in a root of testgres project folder. We used config.rootpath for detect this folder in pytest_configure function. It was occurred that config.rootpath can point to another (unexpected) place. So we will use exact code to calculate testgres project folder (see TestStartupData.GetRootLogDir) to avid this problem.
Configuration menu - View commit details
-
Copy full SHA for 2f550d8 - Browse repository at this point
Copy the full SHA 2f550d8View commit details
Commits on May 4, 2025
-
[test] TestTestgresLocal.test_upgrade_node is corrected (#246)
Let's "release" all our test nodes correctly.
Configuration menu - View commit details
-
Copy full SHA for 5f8f5dd - Browse repository at this point
Copy the full SHA 5f8f5ddView commit details -
Releasing of reserved port in tests (#248)
* [test] TestTestgresLocal.test_pg_ctl_wait_option is corrected Let's "release" all our test nodes correctly. * [test] TestTestgresLocal.test_simple_with_bin_dir is corrected Let's "release" all our test nodes correctly.
Configuration menu - View commit details
-
Copy full SHA for 0b331e6 - Browse repository at this point
Copy the full SHA 0b331e6View commit details -
[#249] Fix of port number leak in NodeBackup::spawn_replica (#250)
This patch has the following changes: 1) It adds a new argument release_resources to PostgresNode::cleanup method. Default value is False. 2) It fixes a port number leak in NodeBackup::spawn_replica through explicit call of PostgresNode::cleanup(release_resources=True). Closes #249.
Configuration menu - View commit details
-
Copy full SHA for c3b25b2 - Browse repository at this point
Copy the full SHA c3b25b2View commit details
Commits on May 5, 2025
-
[Refactoring] Default port manager functions now use PortManager__Gen…
…eric and LocalOperations (#251) * [Refactoring] Default port manager functions now use PortManager__Generic and LocalOperations This patch deletes a duplication of port manager code. Now utils.reserve_port and utils.release_port works through _old_port_manager - it is a global instance of PortManager__Generic that uses a global instance of LocalOperations. This commit is a part of work for #247. * [BUG FIX] PortManager__ThisHost::__new__ had MT-problem After MT-lock we must to check __class__.sm_single_instance again. Refactoring - PortManager__ThisHost::__new__ is replaced with an explicit PortManager__ThisHost::get_single_instance() - PortManager__ThisHost::__init__ is deleted
Configuration menu - View commit details
-
Copy full SHA for a683c65 - Browse repository at this point
Copy the full SHA a683c65View commit details -
[#244] PostgresNode now uses os_ops only (#245)
This patch implements the proposal #244 - detach PostgresNode from ConnectionParams object. It will use os_ops object only. conn_params is saved but must be None. It will be removed in the future.
Configuration menu - View commit details
-
Copy full SHA for 6972bfc - Browse repository at this point
Copy the full SHA 6972bfcView commit details
Commits on May 6, 2025
-
LocalOperations::get_single_instance is added (#252)
* LocalOperations::get_single_instance is added This patch forces testgres to use a single instance of LocalOperations that is created with default parameters. Note that, PortManager__ThisHost is used only when PostgresNode uses this single local_ops instance.
Configuration menu - View commit details
-
Copy full SHA for df4f545 - Browse repository at this point
Copy the full SHA df4f545View commit details -
New OsOperations methods: makedir, rmdir (#253)
Signatures: def makedir(self, path: str) def rmdir(self, path: str) It is a part of work for #247.
Configuration menu - View commit details
-
Copy full SHA for a0a8506 - Browse repository at this point
Copy the full SHA a0a8506View commit details -
OsOperations::get_tempdir() is added (#254)
Signature: def get_tempdir(self) -> str
Configuration menu - View commit details
-
Copy full SHA for edd64db - Browse repository at this point
Copy the full SHA edd64dbView commit details
Commits on May 7, 2025
-
[#235] test_pg_ctl_wait_option detects a port conflict (#257)
This patch must fix a problem in test_pg_ctl_wait_option when his PostgreSQL instance conflicts with another one. For this, we added two new things: - PostgresNodeLogReader - PostgresNodeUtils PostgresNodeLogReader reads server logs. PostgresNodeUtils provides an utility to detect a port conflict. PostgresNode::start also uses these new classes.
Configuration menu - View commit details
-
Copy full SHA for 3bb59c6 - Browse repository at this point
Copy the full SHA 3bb59c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c6bb17 - Browse repository at this point
Copy the full SHA 4c6bb17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 354de69 - Browse repository at this point
Copy the full SHA 354de69View commit details
Commits on May 12, 2025
-
[#258] Problems in ProbackupTest and TestBasic(ProbackupTest) are fix…
…ed (#259) * [#258] Declaration of ProbackupTest::pg_node is corrected ProbackupTest::pg_node is testgres.NodeApp, not testgres.PostgresNode. Asserts are added. * [#258] TestBasic::test_full_backup cleans node object Node cleanup is added. TODO: we should to stop node only and cleanup his data in conftest.
Configuration menu - View commit details
-
Copy full SHA for d48477d - Browse repository at this point
Copy the full SHA d48477dView commit details -
- the calls of logging.root.handle are handled (LogWrapper2) - critical errors are processed
Configuration menu - View commit details
-
Copy full SHA for 0470d30 - Browse repository at this point
Copy the full SHA 0470d30View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 330fd9a...0470d30