From 52e267c1bda529e9566637d82da42f68b7375991 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Thu, 27 Mar 2025 12:51:05 -0500 Subject: [PATCH 1/2] chore: run regress tests before migration tests This is to get more valuable feedback earlier in case of failure --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 19a20146f..a26baf9bd 100644 --- a/flake.nix +++ b/flake.nix @@ -807,9 +807,6 @@ exit 1 fi - echo "Running migrations tests" - pg_prove -p 5435 -U supabase_admin -h localhost -d postgres -v ${./migrations/tests}/test.sql - mkdir -p $out/regression_output if ! pg_regress \ --use-existing \ @@ -825,6 +822,9 @@ exit 1 fi + echo "Running migrations tests" + pg_prove -p 5435 -U supabase_admin -h localhost -d postgres -v ${./migrations/tests}/test.sql + # Copy logs to output for logfile in $(find /tmp -name postgresql.log -type f); do cp "$logfile" $out/postgresql.log From 3c6fb0da88a9e8f008d34fb6da07464faa1a6ad0 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Thu, 27 Mar 2025 20:27:26 -0500 Subject: [PATCH 2/2] bump to supautils 2.7.0 Provides event trigger support https://github.com/supabase/supautils/releases/tag/v2.7.0 --- nix/ext/supautils.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/ext/supautils.nix b/nix/ext/supautils.nix index f3f5f1482..b137d2664 100644 --- a/nix/ext/supautils.nix +++ b/nix/ext/supautils.nix @@ -2,7 +2,7 @@ stdenv.mkDerivation rec { pname = "supautils"; - version = "2.6.0"; + version = "2.7.0"; buildInputs = [ postgresql ]; @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { owner = "supabase"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-QNfUpQjqHNzbNqBvjb5a3GtNH9hjbBMDUK19xUU3LpI="; + hash = "sha256-rlmpzSqwLNiYgqzwPuoU0UKwZR/7WaLCqHkWw/uOfw8="; }; installPhase = ''