From 22d58da3f9d2a91b6a271ff24e75bf1cced3b320 Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Mon, 26 Aug 2024 16:08:43 +0200 Subject: [PATCH] Add timeouts to CI jobs --- .github/workflows/check.yml | 3 +++ .github/workflows/code-coverage-test.yml | 2 ++ .github/workflows/pgxn-release.yml | 1 + .github/workflows/postgresql-12-build.yml | 2 ++ .github/workflows/postgresql-12-pgdg-package.yml | 2 ++ .github/workflows/postgresql-12-ppg-package.yml | 1 + .github/workflows/postgresql-13-build.yml | 1 + .github/workflows/postgresql-13-pgdg-package.yml | 1 + .github/workflows/postgresql-13-ppg-package.yml | 1 + .github/workflows/postgresql-14-build.yml | 1 + .github/workflows/postgresql-14-pgdg-package.yml | 1 + .github/workflows/postgresql-14-ppg-package.yml | 1 + .github/workflows/postgresql-15-build.yml | 1 + .github/workflows/postgresql-15-pgdg-package.yml | 1 + .github/workflows/postgresql-15-ppg-package.yml | 1 + .github/workflows/postgresql-16-build.yml | 1 + .github/workflows/postgresql-16-pgdg-package.yml | 1 + .github/workflows/postgresql-16-ppg-package.yml | 1 + .github/workflows/postgresql-17-build.yml | 1 + .github/workflows/postgresql-17-pgdg-package.yml | 1 + 20 files changed, 25 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 69370c7d..972dd8e9 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -6,6 +6,7 @@ jobs: cppcheck: name: Cppcheck runs-on: ubuntu-22.04 + timeout-minutes: 5 steps: - name: Checkout sources @@ -38,6 +39,7 @@ jobs: format: name: Format runs-on: ubuntu-22.04 + timeout-minutes: 5 steps: - name: Clone postgres repository @@ -81,6 +83,7 @@ jobs: license: name: License runs-on: ubuntu-22.04 + timeout-minutes: 5 steps: - name: Checkout sources diff --git a/.github/workflows/code-coverage-test.yml b/.github/workflows/code-coverage-test.yml index f968a7c8..1b1e200d 100644 --- a/.github/workflows/code-coverage-test.yml +++ b/.github/workflows/code-coverage-test.yml @@ -9,6 +9,8 @@ jobs: build: name: coverage-test runs-on: ubuntu-22.04 + timeout-minutes: 30 + steps: - name: Clone postgres repository uses: actions/checkout@v4 diff --git a/.github/workflows/pgxn-release.yml b/.github/workflows/pgxn-release.yml index 2f94a3c7..0a58f352 100644 --- a/.github/workflows/pgxn-release.yml +++ b/.github/workflows/pgxn-release.yml @@ -11,6 +11,7 @@ jobs: release: name: Release runs-on: ubuntu-22.04 + timeout-minutes: 10 container: pgxn/pgxn-tools steps: - name: Validate version tag diff --git a/.github/workflows/postgresql-12-build.yml b/.github/workflows/postgresql-12-build.yml index 39afc747..94a0ce93 100644 --- a/.github/workflows/postgresql-12-build.yml +++ b/.github/workflows/postgresql-12-build.yml @@ -11,6 +11,8 @@ jobs: build: name: pg-12-build-test runs-on: ubuntu-22.04 + timeout-minutes: 30 + steps: - name: Clone postgres repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-12-pgdg-package.yml b/.github/workflows/postgresql-12-pgdg-package.yml index 82594316..6c859231 100644 --- a/.github/workflows/postgresql-12-pgdg-package.yml +++ b/.github/workflows/postgresql-12-pgdg-package.yml @@ -11,6 +11,8 @@ jobs: build: name: pg-12-pgdg-package-test runs-on: ubuntu-22.04 + timeout-minutes: 30 + steps: - name: Clone pg_stat_monitor repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-12-ppg-package.yml b/.github/workflows/postgresql-12-ppg-package.yml index eaea69f3..41177cab 100644 --- a/.github/workflows/postgresql-12-ppg-package.yml +++ b/.github/workflows/postgresql-12-ppg-package.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-12-ppg-package-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone pg_stat_monitor repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-13-build.yml b/.github/workflows/postgresql-13-build.yml index aab99436..3c51df20 100644 --- a/.github/workflows/postgresql-13-build.yml +++ b/.github/workflows/postgresql-13-build.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-13-build-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone postgres repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-13-pgdg-package.yml b/.github/workflows/postgresql-13-pgdg-package.yml index 45ae2849..42798413 100644 --- a/.github/workflows/postgresql-13-pgdg-package.yml +++ b/.github/workflows/postgresql-13-pgdg-package.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-13-pgdg-package-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone pg_stat_monitor repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-13-ppg-package.yml b/.github/workflows/postgresql-13-ppg-package.yml index 03d2a9b0..559eaeda 100644 --- a/.github/workflows/postgresql-13-ppg-package.yml +++ b/.github/workflows/postgresql-13-ppg-package.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-13-ppg-package-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone pg_stat_monitor repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-14-build.yml b/.github/workflows/postgresql-14-build.yml index cfecc54c..cb839724 100644 --- a/.github/workflows/postgresql-14-build.yml +++ b/.github/workflows/postgresql-14-build.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-14-build-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone postgres repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-14-pgdg-package.yml b/.github/workflows/postgresql-14-pgdg-package.yml index 8ddbe5da..4f3a5987 100644 --- a/.github/workflows/postgresql-14-pgdg-package.yml +++ b/.github/workflows/postgresql-14-pgdg-package.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-14-pgdg-package-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone pg_stat_monitor repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-14-ppg-package.yml b/.github/workflows/postgresql-14-ppg-package.yml index 6253bead..6088721d 100644 --- a/.github/workflows/postgresql-14-ppg-package.yml +++ b/.github/workflows/postgresql-14-ppg-package.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-14-ppg-package-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone pg_stat_monitor repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-15-build.yml b/.github/workflows/postgresql-15-build.yml index b5f424d3..33093d32 100644 --- a/.github/workflows/postgresql-15-build.yml +++ b/.github/workflows/postgresql-15-build.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-15-build-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone postgres repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-15-pgdg-package.yml b/.github/workflows/postgresql-15-pgdg-package.yml index 27f391ae..c84172bb 100644 --- a/.github/workflows/postgresql-15-pgdg-package.yml +++ b/.github/workflows/postgresql-15-pgdg-package.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-15-pgdg-package-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone pg_stat_monitor repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-15-ppg-package.yml b/.github/workflows/postgresql-15-ppg-package.yml index 55ae03ef..e52abdf5 100644 --- a/.github/workflows/postgresql-15-ppg-package.yml +++ b/.github/workflows/postgresql-15-ppg-package.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-15-ppg-package-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone pg_stat_monitor repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-16-build.yml b/.github/workflows/postgresql-16-build.yml index 9a9f3c3f..47d252b5 100644 --- a/.github/workflows/postgresql-16-build.yml +++ b/.github/workflows/postgresql-16-build.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-16-build-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone postgres repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-16-pgdg-package.yml b/.github/workflows/postgresql-16-pgdg-package.yml index b19404cd..3291e0e1 100644 --- a/.github/workflows/postgresql-16-pgdg-package.yml +++ b/.github/workflows/postgresql-16-pgdg-package.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-16-pgdg-package-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone pg_stat_monitor repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-16-ppg-package.yml b/.github/workflows/postgresql-16-ppg-package.yml index 226fd069..8f4fd81f 100644 --- a/.github/workflows/postgresql-16-ppg-package.yml +++ b/.github/workflows/postgresql-16-ppg-package.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-16-ppg-package-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone pg_stat_monitor repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-17-build.yml b/.github/workflows/postgresql-17-build.yml index c0834610..8ed9d01d 100644 --- a/.github/workflows/postgresql-17-build.yml +++ b/.github/workflows/postgresql-17-build.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-17-build-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone postgres repository uses: actions/checkout@v4 diff --git a/.github/workflows/postgresql-17-pgdg-package.yml b/.github/workflows/postgresql-17-pgdg-package.yml index 2ba82b1a..99175ab7 100644 --- a/.github/workflows/postgresql-17-pgdg-package.yml +++ b/.github/workflows/postgresql-17-pgdg-package.yml @@ -11,6 +11,7 @@ jobs: build: name: pg-17-pgdg-package-test runs-on: ubuntu-22.04 + timeout-minutes: 30 steps: - name: Clone pg_stat_monitor repository uses: actions/checkout@v4