PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
FIX (ci): Size Namespace runners per job and keep Podman e2e and the filesystem suite on GitHub runners, where Namespace's container sandbox cannot run them
Rostislav Dugin7d5b3978a6d8
diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.ymlindex c8867771..608a667c 100644--- a/.github/workflows/ci-release.yml+++ b/.github/workflows/ci-release.yml@@ -24,7 +24,7 @@ concurrency:jobs:lint-backend:if: github.ref != 'refs/heads/develop' && github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-4vcpu-8ram-ubuntu-26-x64timeout-minutes: 15steps:- name: Check out code@@ -72,7 +72,7 @@ jobs:lint-frontend:if: github.ref != 'refs/heads/develop' && github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-4vcpu-8ram-ubuntu-26-x64timeout-minutes: 15steps:- name: Check out code@@ -105,7 +105,7 @@ jobs:dockerfile-scan:if: github.ref != 'refs/heads/develop' && github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 15permissions:contents: read@@ -129,7 +129,7 @@ jobs:test-frontend:if: github.ref != 'refs/heads/develop' && github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 15needs: [lint-frontend]steps:@@ -163,7 +163,7 @@ jobs:lint-verification-agent:if: github.ref != 'refs/heads/develop' && github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-4vcpu-8ram-ubuntu-26-x64timeout-minutes: 15steps:- name: Check out code@@ -203,7 +203,7 @@ jobs:test-verification-agent:if: github.ref != 'refs/heads/develop' && github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-4vcpu-8ram-ubuntu-26-x64timeout-minutes: 15needs: [lint-verification-agent]steps:@@ -233,7 +233,7 @@ jobs:e2e-verification-agent:if: github.ref != 'refs/heads/develop' && github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-4vcpu-8ram-ubuntu-26-x64timeout-minutes: 30needs: [lint-verification-agent]steps:@@ -259,7 +259,9 @@ jobs:e2e-verification-agent-podman:if: github.ref != 'refs/heads/develop' && github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ # Namespace runners are containers without systemd whose seccomp profile denies+ # pivot_root, so rootful Podman cannot start containers there.+ runs-on: ubuntu-24.04timeout-minutes: 30needs: [lint-verification-agent]steps:@@ -407,12 +409,17 @@ jobs:test-filesystems:if: github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ # The Docker engine on Namespace runners has no CIFS or NFS kernel support, so+ # the network filesystem cases can only mount their volumes on GitHub runners.+ runs-on: ubuntu-24.04timeout-minutes: 45steps:- name: Check out codeuses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1+ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0+- name: Install network filesystem clientsrun: sudo apt-get update && sudo apt-get install -y cifs-utils nfs-common@@ -423,6 +430,8 @@ jobs:push: falseload: trueplatforms: linux/amd64+ cache-to: type=gha,mode=max,scope=storage-build-amd64+ cache-from: type=gha,scope=storage-build-amd64build-args: |APP_VERSION=storage-${{ github.sha }}tags: databasus-storage-test:${{ github.sha }}@@ -438,7 +447,7 @@ jobs:run: just test-filesystembuild-dev-image:- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-4vcpu-8ram-ubuntu-26-x64timeout-minutes: 45if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}steps:@@ -578,10 +587,10 @@ jobs:include:- arch: amd64platform: linux/amd64- runner: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-x64- arch: arm64platform: linux/arm64- runner: namespace-profile-8vcpu-16ram-ubuntu-26-arm+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-armsteps:- name: Check out codeuses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1@@ -617,7 +626,7 @@ jobs:retention-days: 1merge-dev-image-manifest:- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 10needs: [push-dev-image]if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}@@ -652,7 +661,7 @@ jobs:build-image:if: github.ref != 'refs/heads/develop' && github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-4vcpu-8ram-ubuntu-26-x64timeout-minutes: 45needs: [lint-backend, lint-frontend, lint-verification-agent, dockerfile-scan]steps:@@ -781,7 +790,7 @@ jobs:build-verification-image:if: github.ref != 'refs/heads/develop' && github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 45needs: [lint-verification-agent, dockerfile-scan]permissions:@@ -802,7 +811,7 @@ jobs:PG_MAJOR=16determine-version:- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 10needs: [lint-backend, test-backend, test-frontend, test-verification-agent, e2e-verification-agent, e2e-verification-agent-podman, test-filesystems]if: ${{ github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, '[skip-release]') }}@@ -904,10 +913,10 @@ jobs:include:- arch: amd64platform: linux/amd64- runner: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-x64- arch: arm64platform: linux/arm64- runner: namespace-profile-8vcpu-16ram-ubuntu-26-arm+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-armsteps:- name: Check out codeuses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1@@ -943,7 +952,7 @@ jobs:retention-days: 1merge-image-manifest:- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 10needs: [determine-version, push-image]if: ${{ needs.determine-version.outputs.should_release == 'true' }}@@ -1010,10 +1019,10 @@ jobs:include:- arch: amd64platform: linux/amd64- runner: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-x64- arch: arm64platform: linux/arm64- runner: namespace-profile-8vcpu-16ram-ubuntu-26-arm+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-armsteps:- name: Check out codeuses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1@@ -1058,7 +1067,7 @@ jobs:retention-days: 1merge-verification-image-manifest:- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 10needs: [determine-version, push-verification-image]if: ${{ needs.determine-version.outputs.should_release == 'true' }}@@ -1098,7 +1107,7 @@ jobs:"${platform_image_refs[@]}"release:- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 10needs: [determine-version, merge-image-manifest]if: ${{ needs.determine-version.outputs.should_release == 'true' }}@@ -1224,7 +1233,7 @@ jobs:prerelease: falsepublish-helm-chart:- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 10needs: [determine-version, merge-image-manifest]if: ${{ needs.determine-version.outputs.should_release == 'true' }}diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.ymlindex f086fc9c..d83545e8 100644--- a/.github/workflows/codeql.yml+++ b/.github/workflows/codeql.yml@@ -22,7 +22,7 @@ jobs:name: Analyze (${{ matrix.language }})# A pull request from develop is analyzed by the push to main after its merge.if: github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-4vcpu-8ram-ubuntu-26-x64permissions:security-events: writeactions: read@@ -66,7 +66,7 @@ jobs:name: Secret scan (gitleaks)# A pull request from develop is scanned by the push to main after its merge.if: github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 15permissions:contents: read@@ -94,7 +94,7 @@ jobs:name: Analyze (semgrep)# A pull request from develop is scanned by the push to main after its merge.if: github.head_ref != 'develop'- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 15permissions:contents: readdiff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.ymlindex 48355691..017f76af 100644--- a/.github/workflows/dependency-review.yml+++ b/.github/workflows/dependency-review.yml@@ -10,7 +10,7 @@ permissions:jobs:dependency-review:- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64steps:- name: Check out codeuses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.ymlindex 8403f6af..c93df594 100644--- a/.github/workflows/deploy-website.yml+++ b/.github/workflows/deploy-website.yml@@ -18,7 +18,7 @@ concurrency:jobs:build:- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 15defaults:run:@@ -71,7 +71,7 @@ jobs:permissions:pages: writeid-token: write- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64timeout-minutes: 15needs: buildsteps:diff --git a/e2e/docker-storage/run.sh b/e2e/docker-storage/run.shindex b07c31b7..d90a6165 100755--- a/e2e/docker-storage/run.sh+++ b/e2e/docker-storage/run.sh@@ -502,10 +502,12 @@ run_read_only() {local data_root="${case_root}/read-only"prepare_bind_tree "${data_root}" 999 999+ # The Docker engine on Namespace CI runners drops the readonly key of --mount+ # and mounts the directory writable, while it honours the :ro suffix of --volume.start_failing_databasus "${container_name}" \--env PUID=999 \--env PGID=999 \- --mount "type=bind,source=${data_root},target=/databasus-data,readonly"+ --volume "${data_root}:/databasus-data:ro"assert_storage_permission_failure "${container_name}"}