Conversation
Ruby works perfectly fine on ARMs nowadays, no need to keep all this stuff in dockerfile
| - { ruby: 3.1, postgres: 13, gemfile: rails_7.2 } | ||
| - { ruby: 3.2, postgres: 13, gemfile: rails_7.2 } | ||
| - { ruby: 3.0.7, postgres: 14, gemfile: rails_6.0 } | ||
| - { ruby: 3.0.7, postgres: 15, gemfile: rails_6.0 } |
There was a problem hiding this comment.
seems like postgres 15+ will explodes on dump version mismatch 🤔
There was a problem hiding this comment.
pg_dump does not want to be working with a server version from the future -- the other way around is mostly fine.
You could use ubuntu-22.04 for a runs_on target which installs v16 by default (this will relatively soon be the target for ubuntu-latest — see actions/runner-images#10636)
Alternatively, manually installing an updated version of the PostgreSQL client libraries would help:
- name: Update postgres
run: |
sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update && sudo apt-get install postgresql-client-16
|
I kinda forgot about this, but I came to realization that maintaining what is pretty much moneypatch on top of Rails will be rather cumbersome. This year (welp, my ETAs are... optimistic 😆 ) I hope to try to asses if maybe we could try to port this whole behavior into rails so devs could choose structure versioning via configuration option - I think that would be pretty sweet 🤔 Selling this idea to maintainer-gods might be most tricky part tho 😆 To be continued edit: discussion thread |
This pull request includes several updates to the CI configuration, dependencies, and documentation. The most important changes involve updating the CI matrix for Ruby and PostgreSQL versions, removing outdated Dockerfiles, and updating the
CHANGELOG.mdandgemspecfor versioning.CI Configuration Updates:
v4in the CI workflow.Dependency and Docker Updates:
Dockerfile-2.6.6andDockerfile-3.1.0. [1] [2]docker-compose.ymlto use PostgreSQL 16.4-alpine and removed Ruby service configuration.Documentation and Versioning:
CHANGELOG.mdto reflect the new version 0.2.0, adding support for Rails 7.0, 7.1, and 7.2.conflict_free_schema.gemspec.README.mdto correct the instructions for spinning up the PostgreSQL test dependency.