Skip to content

fix: patch pgmq using Nix instead of supautils custom scripts #1531

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

Closed
wants to merge 3 commits into from

Conversation

steve-chavez
Copy link
Member

@steve-chavez steve-chavez commented Apr 7, 2025

This is just to prove the test failure when the patch is not applied. Essentially the drop_queue is not patched to remove the partitioned argument:

- pgmq                   | pgmq                     | drop_queue                                       | queue_name text                                                                   >
+ pgmq                   | pgmq                     | drop_queue                                       | queue_name text, partitioned boolean                                              >

See failure on https://github.com/supabase/postgres/actions/runs/14321609982/job/40139470008

Reapplies the patch. Uses Nix to patch the pgmq extension instead of supautils custom scripts. Gets the tests passing again.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
This is just to prove the test failure. Essentially the `drop_queue` is
not patched to remove the partitioned argument:

- pgmq                   | pgmq                     | drop_queue                                       | queue_name text                                                                   >
+ pgmq                   | pgmq                     | drop_queue                                       | queue_name text, partitioned boolean                                              >
@steve-chavez steve-chavez changed the title remove supautils custom script for pgmq fix: patch pgmq using Nix Apr 7, 2025
@steve-chavez steve-chavez marked this pull request as ready for review April 7, 2025 23:55
@steve-chavez steve-chavez requested review from a team as code owners April 7, 2025 23:55
@steve-chavez steve-chavez changed the title fix: patch pgmq using Nix fix: patch pgmq using Nix instead of supautils custom scripts Apr 7, 2025
Copy link
Collaborator

@samrose samrose left a comment

Choose a reason for hiding this comment

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

Just going to run through local infra testing on this prior to merge

Copy link
Member

@soedirgo soedirgo left a comment

Choose a reason for hiding this comment

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

Hold off for now - there's still some discussion on this internally

@steve-chavez steve-chavez marked this pull request as draft April 9, 2025 16:58
@steve-chavez
Copy link
Member Author

This is now fixed on supautils itself, see supabase/supautils#134

I've left #1533 open in case we want to reconsider moving patches to Nix.

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.

None yet

3 participants