-
Notifications
You must be signed in to change notification settings - Fork 76
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
Migration for 1.5.0 broken #362
Comments
Thanks for raising the issue @axelfontaine . There is a CI job that checks the upgrade path from v1.0.0, but what you've shown tells me there must be a bug in how that test is being executed, or we are just missing test coverage. |
@axelfontaine do you want to get a PR up to resolve this? We can release v1.5.1 quickly afterwards, then work on fixing how these tests work. |
@axelfontaine, I opened a PR, but I haven't been able to quite reproduce this yet. You're seeing this error when calling send and send_batch using one of the new 4 parameter variants, correct? If so, could you confirm exactly which values you are using? If you're having an issue with the |
No, I am seeing the error when running the 1.5.0 migration against a 1.4.5 schema. |
can you provide the output you get when you run it? something like:
|
@axelfontaine , can you confirm how you are executing the migration script? They are not meant to be executed directly, rather by |
@ChuckHend Sorry for the late reply. I've been busy with the launch of our new product https://sprinters.sh (10x cheaper GitHub Actions on your own AWS account). I'll get back to this in a few days. |
In https://github.com/tembo-io/pgmq/blob/main/pgmq-extension/sql/pgmq--1.4.5--1.5.0.sql
send
(https://github.com/tembo-io/pgmq/blob/main/pgmq-extension/sql/pgmq--1.4.5--1.5.0.sql#L610) should come before the simpler overloads at https://github.com/tembo-io/pgmq/blob/main/pgmq-extension/sql/pgmq--1.4.5--1.5.0.sql#L565send_batch
(https://github.com/tembo-io/pgmq/blob/main/pgmq-extension/sql/pgmq--1.4.5--1.5.0.sql#L678) should come before the simpler overloads at https://github.com/tembo-io/pgmq/blob/main/pgmq-extension/sql/pgmq--1.4.5--1.5.0.sql#L633WIthout this change applying it fails with
and
respectively.
What really should happen here, is that all the migrations should be automatically integration tested as part of the release process to prevent this from occurring again.
The text was updated successfully, but these errors were encountered: