Commit 5ff9c69
committed
ci(postgresql): stop installing system PG before tests so issue #112 path is exercised
The PostgreSQL integration jobs (postgresql-test, the ts-PostgreSQL step,
and proxysql-postgresql) previously did:
sudo apt-get install -y postgresql-16 postgresql-client-16
cp -a /usr/lib/postgresql/16/bin/. ~/opt/postgresql/<v>/bin/
cp -a /usr/lib/postgresql/16/lib/. ~/opt/postgresql/<v>/lib/
cp -a /usr/share/postgresql/16/. ~/opt/postgresql/<v>/share/
This created /usr/share/postgresql/16/ on the runner as a side effect of
installing the server package. When PG's make_relative_path() failed to
relocate SHAREDIR (the issue #112 bug), it fell back to that absolute
compiled-in path — which happened to exist because of the install — and
the tests passed. The CI was silently testing the wrong layout.
This change switches all three jobs to the documented user flow:
sudo apt-get install -y libpq5 # only psql's dynamic dep
apt-get download postgresql-NN postgresql-client-NN
./dbdeployer unpack --provider=postgresql ...
Plus an explicit guard: each step now fails if /usr/share/postgresql/NN/
exists after setup, so this masking can't silently recur.
Depends on the fix in PR #117. Without that, the postgresql-test job
fails with the timezonesets error — which is exactly the regression
this CI change is designed to catch.1 parent a0d3dff commit 5ff9c69
2 files changed
Lines changed: 61 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
| 523 | + | |
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
532 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
533 | 538 | | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
539 | 549 | | |
540 | 550 | | |
541 | 551 | | |
| |||
586 | 596 | | |
587 | 597 | | |
588 | 598 | | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
603 | 625 | | |
604 | 626 | | |
605 | 627 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
406 | 406 | | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
415 | 423 | | |
416 | 424 | | |
417 | 425 | | |
| |||
0 commit comments