From 3e7632409eecd64486d92cc248934dc8051c1e4d Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Fri, 6 Jun 2025 20:27:49 +0200 Subject: [PATCH 1/2] PG-1486 Add ARM64 builds in CI Add ARM64 based builds to build and test CI workflow triggered on main branch. --- .../{psp-reusable.yml => build-and-test.yml} | 10 ++--- .github/workflows/matirx.yml | 41 +++++++++++++++++++ .github/workflows/pgindent.yml | 7 +--- .github/workflows/psp-matrix.yml | 24 ----------- 4 files changed, 47 insertions(+), 35 deletions(-) rename .github/workflows/{psp-reusable.yml => build-and-test.yml} (96%) create mode 100644 .github/workflows/matirx.yml delete mode 100644 .github/workflows/psp-matrix.yml diff --git a/.github/workflows/psp-reusable.yml b/.github/workflows/build-and-test.yml similarity index 96% rename from .github/workflows/psp-reusable.yml rename to .github/workflows/build-and-test.yml index c363deb437221..41af1a40686ba 100644 --- a/.github/workflows/psp-reusable.yml +++ b/.github/workflows/build-and-test.yml @@ -1,4 +1,4 @@ -name: PSP-Reusable +name: Reusable build and test on: workflow_call: inputs: @@ -21,7 +21,7 @@ env: jobs: build: - name: Build PSP + name: Build runs-on: ${{ inputs.os }} steps: - name: Clone repository @@ -50,7 +50,7 @@ jobs: retention-days: 1 test: - name: Test PSP + name: Test runs-on: ${{ inputs.os }} needs: build @@ -93,8 +93,8 @@ jobs: src/src/test/*/tmp_check retention-days: 3 - test_tde: - name: Test PSP with TDE + test-default-tde: + name: Test with TDE as default access method runs-on: ${{ inputs.os }} if: inputs.build_script == 'make' needs: build diff --git a/.github/workflows/matirx.yml b/.github/workflows/matirx.yml new file mode 100644 index 0000000000000..86ad984050bd1 --- /dev/null +++ b/.github/workflows/matirx.yml @@ -0,0 +1,41 @@ +name: Build and Test +on: + pull_request: + push: + branches: + - TDE_REL_17_STABLE + workflow_dispatch: + +jobs: + main: + name: Main matrix + strategy: + matrix: + os: [ubuntu-22.04] + compiler: [gcc, clang] + build_type: [debugoptimized] + build_script: [make, meson] + uses: ./.github/workflows/build-and-test.yml + with: + os: ${{ matrix.os }} + compiler: ${{ matrix.compiler }} + build_type: ${{ matrix.build_type }} + build_script: ${{ matrix.build_script }} + secrets: inherit + + arm: + name: ARM matrix + if: github.event_name != 'pull_request' + strategy: + matrix: + os: [ubuntu-22.04-arm] + compiler: [gcc, clang] + build_type: [debugoptimized] + build_script: [make, meson] + uses: ./.github/workflows/build-and-test.yml + with: + os: ${{ matrix.os }} + compiler: ${{ matrix.compiler }} + build_type: ${{ matrix.build_type }} + build_script: ${{ matrix.build_script }} + secrets: inherit diff --git a/.github/workflows/pgindent.yml b/.github/workflows/pgindent.yml index c65ee645a8ba2..c1a99c63082e7 100644 --- a/.github/workflows/pgindent.yml +++ b/.github/workflows/pgindent.yml @@ -1,12 +1,8 @@ -name: PgIndent +name: Format on: pull_request: workflow_dispatch: -defaults: - run: - working-directory: ./src - jobs: check: name: Check @@ -15,7 +11,6 @@ jobs: - name: Clone repository uses: actions/checkout@v4 with: - path: 'src' submodules: recursive - name: Install dependencies diff --git a/.github/workflows/psp-matrix.yml b/.github/workflows/psp-matrix.yml deleted file mode 100644 index 635ab9ed78454..0000000000000 --- a/.github/workflows/psp-matrix.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: PSP -on: - pull_request: - push: - branches: - - TDE_REL_17_STABLE - workflow_dispatch: - -jobs: - build: - name: PSP - strategy: - matrix: - os: ['ubuntu-22.04'] - compiler: [gcc, clang] - build_type: [debugoptimized] - build_script: [make, meson] - uses: ./.github/workflows/psp-reusable.yml - with: - os: ${{ matrix.os }} - compiler: ${{ matrix.compiler }} - build_type: ${{ matrix.build_type }} - build_script: ${{ matrix.build_script }} - secrets: inherit From 732059189d3e4cb3cb22ed816c81f13849227e5e Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Mon, 16 Jun 2025 20:01:34 +0200 Subject: [PATCH 2/2] Add Slack notifications on failed CI --- .github/workflows/matirx.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/matirx.yml b/.github/workflows/matirx.yml index 86ad984050bd1..39248232c4a4d 100644 --- a/.github/workflows/matirx.yml +++ b/.github/workflows/matirx.yml @@ -39,3 +39,24 @@ jobs: build_type: ${{ matrix.build_type }} build_script: ${{ matrix.build_script }} secrets: inherit + + slack-notification: + if: ${{ failure() }} && github.event_name == 'push' + needs: [ main, arm ] + name: Slack Notification + runs-on: ubuntu-24.04 + steps: + - name: Notify + uses: slackapi/slack-github-action@v2.1.0 + 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.head_ref }}*\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>"