Commit e00d5fd
committed
Fix PG CI: relocate calc_redo_mb to genci, escape start cmd
Two bugs surfaced during WSL Ubuntu 24 E2E validation of the PG CI port:
1. calc_redo_mb was defined only in src/mariadb/mariaci.tcl, so loading
src/postgresql/pgci.tcl without mariaci.tcl caused the start step to
emit 'max_wal_size=MB' (empty value) and fail pg_ctl. Move
calc_redo_mb to src/generic/genci.tcl next to calc_buffer_pool_mb so
it is available to every RDBMS port.
2. In postgresql_start the pg_ctl command was passed to 'bash -c'
without escaping the embedded double quotes (used by -D/-l/-o),
producing a Tcl list-parse error. Apply the same string map escape
pattern used by every other 'open |bash -c' invocation in pgci.tcl.
Validated end-to-end on WSL Ubuntu 24.04 against postgres/postgres master:
CLONE -> BUILD -> PACKAGE -> INSTALL -> INIT -> START ->
PING -> CHANGE_PASSWORD -> TPROC-C OLTP -> SHUTDOWN all succeeded.
Result: 71,999 NOPM / 165,731 PostgreSQL TPM (16 vusers).1 parent c547d44 commit e00d5fd
3 files changed
Lines changed: 20 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1336 | 1336 | | |
1337 | 1337 | | |
1338 | 1338 | | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1339 | 1357 | | |
1340 | 1358 | | |
1341 | 1359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 13 | | |
32 | 14 | | |
33 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
| 765 | + | |
765 | 766 | | |
766 | | - | |
| 767 | + | |
767 | 768 | | |
768 | 769 | | |
769 | 770 | | |
| |||
0 commit comments