Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

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.yml
index 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-x64
timeout-minutes: 15
steps:
- 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-x64
timeout-minutes: 15
steps:
- 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-x64
timeout-minutes: 15
permissions:
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-x64
timeout-minutes: 15
needs: [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-x64
timeout-minutes: 15
steps:
- 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-x64
timeout-minutes: 15
needs: [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-x64
timeout-minutes: 30
needs: [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.04
timeout-minutes: 30
needs: [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.04
timeout-minutes: 45
steps:
- name: Check out code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
+
- name: Install network filesystem clients
run: sudo apt-get update && sudo apt-get install -y cifs-utils nfs-common
@@ -423,6 +430,8 @@ jobs:
push: false
load: true
platforms: linux/amd64
+ cache-to: type=gha,mode=max,scope=storage-build-amd64
+ cache-from: type=gha,scope=storage-build-amd64
build-args: |
APP_VERSION=storage-${{ github.sha }}
tags: databasus-storage-test:${{ github.sha }}
@@ -438,7 +447,7 @@ jobs:
run: just test-filesystem
build-dev-image:
- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64
+ runs-on: namespace-profile-4vcpu-8ram-ubuntu-26-x64
timeout-minutes: 45
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
steps:
@@ -578,10 +587,10 @@ jobs:
include:
- arch: amd64
platform: linux/amd64
- runner: namespace-profile-8vcpu-16ram-ubuntu-26-x64
+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-x64
- arch: arm64
platform: linux/arm64
- runner: namespace-profile-8vcpu-16ram-ubuntu-26-arm
+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-arm
steps:
- name: Check out code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -617,7 +626,7 @@ jobs:
retention-days: 1
merge-dev-image-manifest:
- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64
+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64
timeout-minutes: 10
needs: [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-x64
timeout-minutes: 45
needs: [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-x64
timeout-minutes: 45
needs: [lint-verification-agent, dockerfile-scan]
permissions:
@@ -802,7 +811,7 @@ jobs:
PG_MAJOR=16
determine-version:
- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64
+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64
timeout-minutes: 10
needs: [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: amd64
platform: linux/amd64
- runner: namespace-profile-8vcpu-16ram-ubuntu-26-x64
+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-x64
- arch: arm64
platform: linux/arm64
- runner: namespace-profile-8vcpu-16ram-ubuntu-26-arm
+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-arm
steps:
- name: Check out code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -943,7 +952,7 @@ jobs:
retention-days: 1
merge-image-manifest:
- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64
+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64
timeout-minutes: 10
needs: [determine-version, push-image]
if: ${{ needs.determine-version.outputs.should_release == 'true' }}
@@ -1010,10 +1019,10 @@ jobs:
include:
- arch: amd64
platform: linux/amd64
- runner: namespace-profile-8vcpu-16ram-ubuntu-26-x64
+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-x64
- arch: arm64
platform: linux/arm64
- runner: namespace-profile-8vcpu-16ram-ubuntu-26-arm
+ runner: namespace-profile-2vcpu-4ram-ubuntu-26-arm
steps:
- name: Check out code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -1058,7 +1067,7 @@ jobs:
retention-days: 1
merge-verification-image-manifest:
- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64
+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64
timeout-minutes: 10
needs: [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-x64
timeout-minutes: 10
needs: [determine-version, merge-image-manifest]
if: ${{ needs.determine-version.outputs.should_release == 'true' }}
@@ -1224,7 +1233,7 @@ jobs:
prerelease: false
publish-helm-chart:
- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64
+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64
timeout-minutes: 10
needs: [determine-version, merge-image-manifest]
if: ${{ needs.determine-version.outputs.should_release == 'true' }}
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 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-x64
permissions:
security-events: write
actions: 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-x64
timeout-minutes: 15
permissions:
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-x64
timeout-minutes: 15
permissions:
contents: read
diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml
index 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-x64
steps:
- name: Check out code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml
index 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-x64
timeout-minutes: 15
defaults:
run:
@@ -71,7 +71,7 @@ jobs:
permissions:
pages: write
id-token: write
- runs-on: namespace-profile-8vcpu-16ram-ubuntu-26-x64
+ runs-on: namespace-profile-2vcpu-4ram-ubuntu-26-x64
timeout-minutes: 15
needs: build
steps:
diff --git a/e2e/docker-storage/run.sh b/e2e/docker-storage/run.sh
index 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}"
}