Skip to content

Maintenance#7

Draft
rwojsznis wants to merge 5 commits intomainfrom
rwojsznis/maintenance
Draft

Maintenance#7
rwojsznis wants to merge 5 commits intomainfrom
rwojsznis/maintenance

Conversation

@rwojsznis
Copy link
Member

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.md and gemspec for versioning.

CI Configuration Updates:

  • Updated the CI matrix to test on Ruby versions 3.0.7, 3.1.6, and 3.2.6, and PostgreSQL versions 14, 15, and 16.
  • Updated the GitHub Actions checkout version to v4 in the CI workflow.

Dependency and Docker Updates:

  • Removed outdated Dockerfile-2.6.6 and Dockerfile-3.1.0. [1] [2]
  • Updated docker-compose.yml to use PostgreSQL 16.4-alpine and removed Ruby service configuration.

Documentation and Versioning:

  • Updated CHANGELOG.md to reflect the new version 0.2.0, adding support for Rails 7.0, 7.1, and 7.2.
  • Bumped gem version to 0.2.0 in conflict_free_schema.gemspec.
  • Updated README.md to correct the instructions for spinning up the PostgreSQL test dependency.

@rwojsznis rwojsznis self-assigned this Nov 12, 2024
- { 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 }
Copy link
Member Author

Choose a reason for hiding this comment

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

seems like postgres 15+ will explodes on dump version mismatch 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

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

@rwojsznis
Copy link
Member Author

rwojsznis commented Feb 9, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants