Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump postgres version #428

Merged
merged 1 commit into from
Jan 13, 2023
Merged

Bump postgres version #428

merged 1 commit into from
Jan 13, 2023

Conversation

moisses89
Copy link
Member

The current django version don't support postgresql-10 :
FAILED gnosis/safe/tests/api/test_transaction_service_api.py::TestTransactionServiceAPI::test_get_balances - django.db.utils.NotSupportedError: PostgreSQL 11 or later is required (found 10.23).
The version 13 was chosen to be aligned with our github actions https://github.com/safe-global/safe-eth-py/blob/master/.github/workflows/python.yml#L41

@moisses89 moisses89 requested a review from a team as a code owner January 9, 2023 15:50
@moisses89 moisses89 requested review from fmrsabino, Uxio0 and hectorgomezv and removed request for a team January 9, 2023 15:50
@coveralls
Copy link

coveralls commented Jan 9, 2023

Pull Request Test Coverage Report for Build 3904382433

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 90.304%

Totals Coverage Status
Change from base Build 3901443457: 0.03%
Covered Lines: 3530
Relevant Lines: 3909

💛 - Coveralls

@@ -2,7 +2,7 @@ version: '3.5'

services:
db:
image: postgres:10-alpine
image: postgres:13-alpine
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use the latest stable? postgres:15-alpine

Copy link
Member Author

Choose a reason for hiding this comment

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

I only tried with the same version that is for github actions, I'm happy using the last version of postgres for locally tests. I just updated to postgres:15-alpine.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tested it locally also.

Copy link
Member

Choose a reason for hiding this comment

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

We were using postgres:13 just because is the last version supported by AWS, but postgres:15 should do it

@moisses89 moisses89 merged commit 3ed91b9 into master Jan 13, 2023
@moisses89 moisses89 deleted the bump_postgres13 branch January 13, 2023 11:29
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants