fix: ensuring vroom permission should be skipped on errors-only (#3911)

* fix: ensuring vroom permission should be skipped on errors-only

* feat: enable swap on all runners

* feat: don't exit on install script
This commit is contained in:
Reinaldy Rafli 2025-09-02 21:35:33 +07:00 committed by GitHub
parent 67c32e883d
commit de2139890d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 9 deletions

View File

@ -144,8 +144,8 @@ runs:
- name: Setup swapfile
shell: bash
if: runner.arch == 'X64' || runner.arch == 'X86'
run: |
sudo swapoff -a
sudo fallocate -l 16G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile

View File

@ -2,13 +2,16 @@
# TODO: Remove this after the next hard-stop
echo "${_group}Ensuring correct permissions on profiles directory ..."
# Should only run when `$COMPOSE_PROFILES` is set to `feature-complete`
if [[ "$COMPOSE_PROFILES" == "feature-complete" ]]; then
echo "${_group}Ensuring correct permissions on profiles directory ..."
# Check if the parent directory of /var/vroom/sentry-profiles is already owned by vroom:vroom
if [ "$($dcr --no-deps --entrypoint /bin/bash --user root vroom -c "stat -c '%U:%G' /var/vroom/sentry-profiles" 2>/dev/null)" = "vroom:vroom" ]; then
echo "Ownership of /var/vroom/sentry-profiles is already set to vroom:vroom. Skipping chown."
else
$dcr --no-deps --entrypoint /bin/bash --user root vroom -c 'chown -R vroom:vroom /var/vroom/sentry-profiles && chmod -R o+rwx /var/vroom/sentry-profiles'
# Check if the parent directory of /var/vroom/sentry-profiles is already owned by vroom:vroom
if [ "$($dcr --no-deps --entrypoint /bin/bash --user root vroom -c "stat -c '%U:%G' /var/vroom/sentry-profiles" 2>/dev/null)" = "vroom:vroom" ]; then
echo "Ownership of /var/vroom/sentry-profiles is already set to vroom:vroom. Skipping chown."
else
$dcr --no-deps --entrypoint /bin/bash --user root vroom -c 'chown -R vroom:vroom /var/vroom/sentry-profiles && chmod -R o+rwx /var/vroom/sentry-profiles'
fi
echo "${_endgroup}"
fi
echo "${_endgroup}"