Skip to content

Conversation

@fabriziomello
Copy link
Member

@fabriziomello fabriziomello commented May 23, 2024

It's long we need to have binary upgrade tests in our CI. One example is #6935 (and others) that can be prevented if we have such kind of test in our CI.

To implement the pg_upgrade test we used the python Testing Framework for PostgreSQL (https://github.com/postgrespro/testgres).

Unfortunately the testing framework don't have the ability to retain the pg_upgrade log files after a successful execution, then we created a PR to make it possible and we'll use this patched version until we get the code merged and released on upstream.

postgrespro/testgres#125

Closes #3868 #4428

Disable-check: force-changelog-file

@fabriziomello fabriziomello self-assigned this May 23, 2024
@fabriziomello fabriziomello force-pushed the ci_add_pg_upgrade_test_workflow branch 2 times, most recently from 9ed50ae to 842fd69 Compare May 23, 2024 23:28
@codecov-commenter
Copy link

codecov-commenter commented May 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.68%. Comparing base (59f50f2) to head (3adbab2).
Report is 178 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6951      +/-   ##
==========================================
+ Coverage   80.06%   81.68%   +1.61%     
==========================================
  Files         190      198       +8     
  Lines       37181    36849     -332     
  Branches     9450     9631     +181     
==========================================
+ Hits        29770    30099     +329     
+ Misses       2997     2872     -125     
+ Partials     4414     3878     -536     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fabriziomello fabriziomello force-pushed the ci_add_pg_upgrade_test_workflow branch 15 times, most recently from f6c4f9b to b49315c Compare May 24, 2024 18:51
@fabriziomello fabriziomello added ci pg-upgrade Issues related to upgrading the Postgres version labels May 24, 2024
@fabriziomello fabriziomello force-pushed the ci_add_pg_upgrade_test_workflow branch 2 times, most recently from 274abfe to eee6bd3 Compare May 24, 2024 19:03
@fabriziomello fabriziomello marked this pull request as ready for review May 24, 2024 19:03
@fabriziomello fabriziomello force-pushed the ci_add_pg_upgrade_test_workflow branch 2 times, most recently from 00a649a to 2288d96 Compare May 24, 2024 19:07
@svenklemm
Copy link
Member

LGTM

@fabriziomello fabriziomello force-pushed the ci_add_pg_upgrade_test_workflow branch from 2288d96 to 09a5a50 Compare May 24, 2024 20:03
@fabriziomello fabriziomello force-pushed the ci_add_pg_upgrade_test_workflow branch 5 times, most recently from 40ce12e to 8cb9e44 Compare May 24, 2024 21:42
It's long we need to have binary upgrade tests in our CI. One example
is timescale#6935 (and others) that can be prevented if we have such kind of
test in our CI.

To implement the `pg_upgrade` test we used the python Testing Framework
for PostgreSQL (https://github.com/postgrespro/testgres).

Unfortunately the testing framework don't have the ability to retain the
pg_upgrade log files after a successful execution, then we created a PR
to make it possible and we'll use this patched version until we get the
code merged and released on upstream.

postgrespro/testgres#125

Closes timescale#3868 timescale#4428
@fabriziomello fabriziomello force-pushed the ci_add_pg_upgrade_test_workflow branch from 8cb9e44 to 3adbab2 Compare May 25, 2024 15:16
Copy link
Member

@antekresic antekresic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor question, otherwise lgmt

pip list
pip list --user
# Using e375302a until 1.10.1 get released including the following PR
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the reason for putting this into code style workflow?

Copy link
Member Author

@fabriziomello fabriziomello May 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because pylint complains due to the change I've made on upstream (postgrespro/testgres@e375302). Once it get released we can just use the pip package.

@fabriziomello fabriziomello merged commit 4c4513b into timescale:main May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci pg-upgrade Issues related to upgrading the Postgres version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for binary postgres upgrade to CI

4 participants