- Notifications
You must be signed in to change notification settings - Fork35
Commite1a5bb4
authored
Updating of CI-tests (#197)
* Test dockerfile for ubuntu 24.04 is added* Cleanup (Dockerfile--ubuntu-24_04)* Cleanup.Including of 'postgres' in 'sudo' group is not required.* [run_tests.sh] A right way for obtaining of BINDIR and PG_CONFIG is usedA problem was detected in container with Ubuntu 24.04tests works with "/usr/bin/pg_config" but real pg_config is "/usr/lib/postgresql/17/bin/pg_config"To resovle this problem we will call "pg_config --bindir" and use it result for BINDIR and PG_CONFIG.* Dockerfile--ubuntu-24_04 is updatedLet's use /pg/testgres/run_tests.sh directly.* Dockerfile--ubuntu-24_04 is updated (cleanup)curl is installing twice.* Dockerfile--ubuntu-24_04 is updated (cleanup)[del] musl-dev[del] mc* Dockerfile--ubuntu-24_04 is formatted* CI-test on Ubuntu 24.04 is added.* Dockerfile--std.tmpl is updated (refactoring)/pg/testgres/run_tests.sh is used directly.* Dockerfile--ubuntu-24_04.tmpl is updated* PostgresNode::pid is improved- We do multiple attempts to read pid file.- We process a case when we see that node is stopped between test and read.- We process a case when pid-file is empty.* PostgresNode::pid is updatedAssert is added.* execute_utility2 is updated (ignore_errors)- New parameters "ignore_errors" is added. Default value is False.- Asserts are added.* PostgresNode::_try_shutdown is rewrited (normalization)* PostgresNode::pid uses the data from "pg_ctl status" output.* PostgresNode::_try_shutdown is correct (return None)This method returns nothing (None).* [RemoteOperations] A call of mktemp is fixedWhen we define a template we have to use "-t" option. It forces mktemp to return a path instead name.The following methods of RemoteOperations are fixed: - mkdtemp - mkstemp* Total refactoring of os_ops::execute_commandMain - We check only an exit code to detect an error. - If someone utility returns a result through an exit code, a caller side should set ignore_errors=true and process this case itself. - If expect_error is true and no errors occurred, we raise an InvalidOperationException.* Dockerfile--ubuntu-24_04.tmpl is updatedThe folder "home/postgres" is not required now.* The old behaviour of RaiseError.UtilityExitedWithNonZeroCode is restoredLet's rollback the new code to avoid problems with probackup2' tests.* TestRemoteOperations::test_is_executable_true is correctedLet's test a real pg_config.* xxx::test_logging is corrected (local, remote)- these tests configure logging wrong and create the conflicts with root logger- these tests (local and remote) conflict with each other* TEST_FILTER is added* CI on Ubuntu 24.04 runs all the tests1 parent7abca7f commite1a5bb4
File tree
5 files changed
+86
-26
lines changed5 files changed
+86
-26
lines changedLines changed: 11 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
38 | 32 |
| |
39 | 33 |
| |
40 | 34 |
| |
41 |
| - | |
42 |
| - | |
| 35 | + | |
| 36 | + |
Lines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 | 14 |
| |
19 | 15 |
| |
20 | 16 |
| |
21 | 17 |
| |
22 | 18 |
| |
23 |
| - | |
| 19 | + |
Lines changed: 69 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + |
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
| |||
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
41 |
| - | |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
47 |
| - | |
| 48 | + | |
48 | 49 |
| |
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
53 |
| - | |
| 54 | + | |
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
|
0 commit comments
Comments
(0)