Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,5 @@ jobs:
postgres/src/test/*/regression.out
postgres/src/test/*/results
postgres/src/test/*/tmp_check
/tmp/pg_tde_basebackup.out
retention-days: 3
150 changes: 75 additions & 75 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,87 +1,87 @@
name: Code coverage
on:
pull_request:
paths-ignore:
- documentation/**
push:
branches:
- main
paths-ignore:
- documentation/**
# name: Code coverage
# on:
# pull_request:
# paths-ignore:
# - documentation/**
# push:
# branches:
# - main
# paths-ignore:
# - documentation/**

env:
pg_version: 18
# Avoid failures on slow recovery
PGCTLTIMEOUT: 120
PG_TEST_TIMEOUT_DEFAULT: 300
# env:
# pg_version: 18
# # Avoid failures on slow recovery
# PGCTLTIMEOUT: 120
# PG_TEST_TIMEOUT_DEFAULT: 300

jobs:
collect:
name: Collect and upload
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Clone repository
uses: actions/checkout@v6
with:
path: src
submodules: recursive
# jobs:
# collect:
# name: Collect and upload
# runs-on: ubuntu-24.04
# timeout-minutes: 10
# steps:
# - name: Clone repository
# uses: actions/checkout@v6
# with:
# path: src
# submodules: recursive

- name: Clone postgres repository
uses: actions/checkout@v6
with:
path: postgres
repository: percona/postgres.git
ref: PSP_REL_${{ env.pg_version }}_STABLE
# - name: Clone postgres repository
# uses: actions/checkout@v6
# with:
# path: postgres
# repository: percona/postgres.git
# ref: PSP_REL_${{ env.pg_version }}_STABLE

# KMIP server don't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
- name: Downgrade python to 3.11
uses: actions/setup-python@v6
with:
python-version: 3.11
# # KMIP server don't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
# - name: Downgrade python to 3.11
# uses: actions/setup-python@v6
# with:
# python-version: 3.11

- name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh
# - name: Install dependencies
# run: src/ci_scripts/ubuntu-deps.sh

- name: Build postgres
run: src/ci_scripts/build-and-install-psp.sh coverage
# - name: Build postgres
# run: src/ci_scripts/build-and-install-psp.sh coverage

- name: Build pg_tde
run: src/ci_scripts/build.sh debug
# - name: Build pg_tde
# run: src/ci_scripts/build.sh debug

- name: Setup kmip and vault
run: src/ci_scripts/setup-keyring-servers.sh
# - name: Setup kmip and vault
# run: src/ci_scripts/setup-keyring-servers.sh

- name: Run pg_tde tests
run: src/ci_scripts/test.sh
# - name: Run pg_tde tests
# run: src/ci_scripts/test.sh

- name: Process coverage
run: |
geninfo -o coverage.info --no-external --rc lcov_branch_coverage=1 -i .
geninfo -o coverage.info --no-external --rc lcov_branch_coverage=1 .
working-directory: src
# - name: Process coverage
# run: |
# geninfo -o coverage.info --no-external --rc lcov_branch_coverage=1 -i .
# geninfo -o coverage.info --no-external --rc lcov_branch_coverage=1 .
# working-directory: src

- name: Upload coverage data to codecov.io
uses: codecov/codecov-action@v5
with:
verbose: true
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
disable_search: true
files: coverage.info
working-directory: src
# - name: Upload coverage data to codecov.io
# uses: codecov/codecov-action@v5
# with:
# verbose: true
# fail_ci_if_error: true
# token: ${{ secrets.CODECOV_TOKEN }}
# disable_search: true
# files: coverage.info
# working-directory: src

- name: Report on test fail
uses: actions/upload-artifact@v7
if: ${{ failure() }}
with:
name: coverage-testlog
path: |
src/regress_install
src/regress_install.log
src/regression.diffs
src/regression.out
src/results
src/t/results
src/tmp_check
retention-days: 3
# - name: Report on test fail
# uses: actions/upload-artifact@v7
# if: ${{ failure() }}
# with:
# name: coverage-testlog
# path: |
# src/regress_install
# src/regress_install.log
# src/regression.diffs
# src/regression.out
# src/results
# src/t/results
# src/tmp_check
# retention-days: 3
108 changes: 54 additions & 54 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ on:
- documentation/**

jobs:
main:
name: Main matrix
strategy:
fail-fast: false
matrix:
pg_version: [17, 18]
os: [ubuntu-24.04]
compiler: [gcc, clang]
build_type: [debugoptimized]
uses: ./.github/workflows/build-and-test.yml
with:
pg_version: ${{ matrix.pg_version }}
os: ${{ matrix.os }}
compiler: ${{ matrix.compiler }}
build_type: ${{ matrix.build_type }}
secrets: inherit
# main:
# name: Main matrix
# strategy:
# fail-fast: false
# matrix:
# pg_version: [17, 18]
# os: [ubuntu-24.04]
# compiler: [gcc, clang]
# build_type: [debugoptimized]
# uses: ./.github/workflows/build-and-test.yml
# with:
# pg_version: ${{ matrix.pg_version }}
# os: ${{ matrix.os }}
# compiler: ${{ matrix.compiler }}
# build_type: ${{ matrix.build_type }}
# secrets: inherit

macos:
name: MacOS matrix
Expand All @@ -45,42 +45,42 @@ jobs:
build_type: ${{ matrix.build_type }}
secrets: inherit

arm:
name: ARM matrix
if: github.event_name != 'pull_request'
strategy:
fail-fast: false
matrix:
pg_version: [17, 18]
os: [ubuntu-24.04-arm]
compiler: [gcc, clang]
build_type: [debugoptimized]
uses: ./.github/workflows/build-and-test.yml
with:
pg_version: ${{ matrix.pg_version }}
os: ${{ matrix.os }}
compiler: ${{ matrix.compiler }}
build_type: ${{ matrix.build_type }}
secrets: inherit
# arm:
# name: ARM matrix
# if: github.event_name != 'pull_request'
# strategy:
# fail-fast: false
# matrix:
# pg_version: [17, 18]
# os: [ubuntu-24.04-arm]
# compiler: [gcc, clang]
# build_type: [debugoptimized]
# uses: ./.github/workflows/build-and-test.yml
# with:
# pg_version: ${{ matrix.pg_version }}
# os: ${{ matrix.os }}
# compiler: ${{ matrix.compiler }}
# build_type: ${{ matrix.build_type }}
# secrets: inherit

slack-notification:
if: failure() && github.event_name == 'push'
needs: [main, arm]
name: Slack Notification
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Notify
uses: slackapi/slack-github-action@v2.1.1
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
blocks:
- type: "section"
text:
type: "mrkdwn"
text: "Workflow *${{ github.workflow }}* failed on branch *${{ github.ref_name }}*\n
Commit: <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>\n
\n
<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>"
# slack-notification:
# if: failure() && github.event_name == 'push'
# needs: [main, arm]
# name: Slack Notification
# runs-on: ubuntu-24.04
# timeout-minutes: 5
# steps:
# - name: Notify
# uses: slackapi/slack-github-action@v2.1.1
# with:
# webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
# webhook-type: incoming-webhook
# payload: |
# blocks:
# - type: "section"
# text:
# type: "mrkdwn"
# text: "Workflow *${{ github.workflow }}* failed on branch *${{ github.ref_name }}*\n
# Commit: <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>\n
# \n
# <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>"
90 changes: 45 additions & 45 deletions .github/workflows/pgindent.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: Format
on:
pull_request:
paths-ignore:
- documentation/**

env:
pg_version: 18

jobs:
check:
name: Check
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Clone repository
uses: actions/checkout@v6
with:
path: src
submodules: recursive

- name: Clone postgres repository
uses: actions/checkout@v6
with:
path: postgres
repository: percona/postgres.git
ref: PSP_REL_${{ env.pg_version }}_STABLE

- name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh

- name: Build postgres
run: src/ci_scripts/build-and-install-psp.sh debug

- name: Build pg_tde
run: src/ci_scripts/build.sh debug

- name: Update typedefs
run: src/ci_scripts/dump-typedefs.sh

- name: Run pgindent
run: src/ci_scripts/run-pgindent.sh --check --diff

- name: Run pgperltidy
run: src/ci_scripts/run-pgperltidy.sh --assert-tidy --standard-error-output
# name: Format
# on:
# pull_request:
# paths-ignore:
# - documentation/**

# env:
# pg_version: 18

# jobs:
# check:
# name: Check
# runs-on: ubuntu-24.04
# timeout-minutes: 5
# steps:
# - name: Clone repository
# uses: actions/checkout@v6
# with:
# path: src
# submodules: recursive

# - name: Clone postgres repository
# uses: actions/checkout@v6
# with:
# path: postgres
# repository: percona/postgres.git
# ref: PSP_REL_${{ env.pg_version }}_STABLE

# - name: Install dependencies
# run: src/ci_scripts/ubuntu-deps.sh

# - name: Build postgres
# run: src/ci_scripts/build-and-install-psp.sh debug

# - name: Build pg_tde
# run: src/ci_scripts/build.sh debug

# - name: Update typedefs
# run: src/ci_scripts/dump-typedefs.sh

# - name: Run pgindent
# run: src/ci_scripts/run-pgindent.sh --check --diff

# - name: Run pgperltidy
# run: src/ci_scripts/run-pgperltidy.sh --assert-tidy --standard-error-output
Loading
Loading