Skip to content

Commit 86055e0

Browse files
authored
Merge branch 'release/15.6' into fix/reserved-memberships
2 parents cd98730 + 19ac493 commit 86055e0

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/common.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -541,16 +541,6 @@ $$;
541541
542542
alter database postgres connection limit -1;
543543
544-
-- #incident-2024-09-12-project-upgrades-are-temporarily-disabled
545-
do $$
546-
begin
547-
if exists (select from pg_authid where rolname = 'pg_read_all_data') then
548-
execute('grant pg_read_all_data to postgres');
549-
end if;
550-
end
551-
$$;
552-
grant pg_signal_backend to postgres;
553-
554544
set session authorization supabase_admin;
555545
drop role supabase_tmp;
556546
commit;

ansible/files/admin_api_scripts/pg_upgrade_scripts/complete.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ EOF
7878

7979
run_sql -c "$RECREATE_PG_CRON_QUERY"
8080
fi
81+
82+
# #incident-2024-09-12-project-upgrades-are-temporarily-disabled
83+
run_sql -c "grant pg_read_all_data, pg_signal_backend to postgres"
8184
}
8285

8386
function complete_pg_upgrade {

ebssurrogate/scripts/surrogate-bootstrap-nix.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ function format_and_mount_rootfs {
110110
fi
111111

112112
mkfs.ext4 /dev/xvdh
113+
114+
# Explicitly reserving 100MiB worth of blocks for the data volume
115+
RESERVED_DATA_VOLUME_BLOCK_COUNT=$((100 * 1024 * 1024 / 4096))
116+
tune2fs -r $RESERVED_DATA_VOLUME_BLOCK_COUNT /dev/xvdh
117+
113118
mkdir -p /mnt/data
114119
mount -o defaults,discard /dev/xvdh /mnt/data
115120
}

scripts/90-cleanup.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ elif [ -n "$(command -v apt-get)" ]; then
3636
libicu-dev \
3737
libcgal-dev \
3838
libgcc-9-dev \
39-
libgcc-8-dev
39+
libgcc-8-dev \
40+
ansible
41+
42+
add-apt-repository --yes --remove ppa:ansible/ansible
4043

4144
source /etc/os-release
4245
apt-get -y remove --purge linux-headers-5.11.0-1021-aws

scripts/nix-provision.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ EOF
3838
$ARGS
3939
}
4040

41+
function cleanup_packages {
42+
apt-get -y remove --purge ansible
43+
add-apt-repository --yes --remove ppa:ansible/ansible
44+
}
4145

4246
install_packages
4347
install_nix
4448
execute_stage2_playbook
45-
49+
cleanup_packages

0 commit comments

Comments
 (0)