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

Fix builds #1143

Closed
wants to merge 3 commits into from
Closed

Fix builds #1143

wants to merge 3 commits into from

Conversation

dhui
Copy link
Member

@dhui dhui commented Aug 26, 2024

Multiple changes are need to fix builds, so batching them up in this branch

@joschi
Copy link
Contributor

joschi commented Aug 26, 2024

@dhui
Copy link
Member Author

dhui commented Aug 30, 2024

@joschi Thanks for all of your efforts to fix builds! I've isolated the failing test (redshift) and have a better fix for it (e.g. doesn't run a forked container). If you'd like, I can push just the redshift test fix, you can rebase your changes, and we can merge your changes so you get credit.

@coveralls
Copy link

coveralls commented Aug 30, 2024

Coverage Status

coverage: 56.319% (-0.02%) from 56.335%
when pulling d273136 on dhui:fix-builds
into f44379d on golang-migrate:master.

@joschi
Copy link
Contributor

joschi commented Aug 31, 2024

e.g. doesn't run a forked container

The reason why I cloned the original postgres:8 Docker image instead of bumping to the latest PostgreSQL version (and updating the test) is that Amazon Redshift is a fork of PostgreSQL 8.x and PostgreSQL 16 might contain features or behave slightly different than Redshift.

Of course this is still an imperfect test abstraction but given that copying/cloning the image was a one-time thing, I think it makes sense going this way.

What do you think?

@dhui
Copy link
Member Author

dhui commented Sep 4, 2024

e.g. doesn't run a forked container

The reason why I cloned the original postgres:8 Docker image instead of bumping to the latest PostgreSQL version (and updating the test) is that Amazon Redshift is a fork of PostgreSQL 8.x and PostgreSQL 16 might contain features or behave slightly different than Redshift.

Of course this is still an imperfect test abstraction but given that copying/cloning the image was a one-time thing, I think it makes sense going this way.

What do you think?

@joschi Thanks for calling this out! I downgraded the redshift tests to use pg8 and tests pass now. This may be short-lived since I got a deprecation warning about the image format version. I'm not opposed to forking the postgres:8 docker image but would like that fork to live in the golang-migrate org for security purposes.

@joschi
Copy link
Contributor

joschi commented Sep 4, 2024

but would like that fork to live in the golang-migrate org for security purposes

Perfectly understandable and I would do the same thing. 😅

The README in https://hub.docker.com/r/joschi/postgres8 describes how the image was pushed.

If you're logged into Docker Hub locally with permissions to push to the migrate organization, you can use these commands to clone the image with updated manifest versions:

# docker pull postgres:8
# docker tag postgres:8 migrate/postgres8:8
# docker push migrate/postgres8:8

# docker pull postgres:8.4
# docker tag postgres:8.4 migrate/postgres8:8.4
# docker push migrate/postgres8:8.4

# docker pull postgres:8.4.22
# docker tag postgres:8.4.22 migrate/postgres8:8.4.22
# docker push migrate/postgres8:8.4.22

dhui added a commit that referenced this pull request Sep 6, 2024
dhui added a commit to dhui/migrate that referenced this pull request Sep 6, 2024
@dhui
Copy link
Member Author

dhui commented Sep 8, 2024

Closing in favor of @joschi's PRs. Thanks @joschi for your help and patience in fixing builds and updating dependencies!

@dhui dhui closed this Sep 8, 2024
@dhui dhui deleted the fix-builds branch September 8, 2024 18:38
ramya-bangera pushed a commit to ramya-bangera/migrate that referenced this pull request Oct 17, 2024
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.

3 participants