From 9520ed268d4a201aa10ce780b17c0a5ff10abc18 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Sat, 8 Oct 2022 18:38:49 +0530 Subject: [PATCH 1/3] chore: default timeout experiment Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .github/workflows/ci-cd.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index e83ba9921f..4c665a3d4f 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -19,6 +19,9 @@ on: - "scripts/cypress/**" - "packages/nocodb/**" - ".github/workflows/ci-cd.yml" +defaults: + run: + timeout-minutes: 10 jobs: cypress-restTableOps-run-cache: runs-on: ubuntu-20.04 From 6b8e9607c941dbfd86f45f38dea54297a96a70d0 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Sat, 8 Oct 2022 18:42:45 +0530 Subject: [PATCH 2/3] test: default timeout correction Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .github/workflows/ci-cd.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 4c665a3d4f..3cd1294b6d 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -19,12 +19,10 @@ on: - "scripts/cypress/**" - "packages/nocodb/**" - ".github/workflows/ci-cd.yml" -defaults: - run: - timeout-minutes: 10 jobs: cypress-restTableOps-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -70,6 +68,7 @@ jobs: retention-days: 2 cypress-restViews-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -115,6 +114,7 @@ jobs: retention-days: 2 cypress-restRoles-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -160,6 +160,7 @@ jobs: retention-days: 2 cypress-restMisc-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -205,6 +206,7 @@ jobs: retention-days: 2 cypress-xcdb-restTableOps-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -250,6 +252,7 @@ jobs: retention-days: 2 cypress-xcdb-restViews-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -295,6 +298,7 @@ jobs: retention-days: 2 cypress-xcdb-restRoles-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -340,6 +344,7 @@ jobs: retention-days: 2 cypress-xcdb-restMisc-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -385,6 +390,7 @@ jobs: retention-days: 2 cypress-pg-restTableOps-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -430,6 +436,7 @@ jobs: retention-days: 2 cypress-pg-restViews-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -475,6 +482,7 @@ jobs: retention-days: 2 cypress-pg-restRoles-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -520,6 +528,7 @@ jobs: retention-days: 2 cypress-pg-restMisc-run-cache: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -565,6 +574,7 @@ jobs: retention-days: 2 cy-quick-sqlite: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -611,6 +621,7 @@ jobs: retention-days: 2 cy-quick-pg: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -656,6 +667,7 @@ jobs: retention-days: 2 unit-tests: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -696,6 +708,7 @@ jobs: run: npm run test:unit cypress-db-independent: runs-on: ubuntu-20.04 + timeout-minutes: 10 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node From 4c80c16035722fe567b0fa6a28806f47ccc08d75 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Sat, 8 Oct 2022 19:08:06 +0530 Subject: [PATCH 3/3] chore: set CICD timeout to 30 mins max Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .github/workflows/ci-cd.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 3cd1294b6d..7e8df26cf6 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -22,7 +22,7 @@ on: jobs: cypress-restTableOps-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -68,7 +68,7 @@ jobs: retention-days: 2 cypress-restViews-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -114,7 +114,7 @@ jobs: retention-days: 2 cypress-restRoles-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -160,7 +160,7 @@ jobs: retention-days: 2 cypress-restMisc-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -206,7 +206,7 @@ jobs: retention-days: 2 cypress-xcdb-restTableOps-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -252,7 +252,7 @@ jobs: retention-days: 2 cypress-xcdb-restViews-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -298,7 +298,7 @@ jobs: retention-days: 2 cypress-xcdb-restRoles-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -344,7 +344,7 @@ jobs: retention-days: 2 cypress-xcdb-restMisc-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -390,7 +390,7 @@ jobs: retention-days: 2 cypress-pg-restTableOps-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -436,7 +436,7 @@ jobs: retention-days: 2 cypress-pg-restViews-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -482,7 +482,7 @@ jobs: retention-days: 2 cypress-pg-restRoles-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -528,7 +528,7 @@ jobs: retention-days: 2 cypress-pg-restMisc-run-cache: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -574,7 +574,7 @@ jobs: retention-days: 2 cy-quick-sqlite: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -621,7 +621,7 @@ jobs: retention-days: 2 cy-quick-pg: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -667,7 +667,7 @@ jobs: retention-days: 2 unit-tests: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node @@ -708,7 +708,7 @@ jobs: run: npm run test:unit cypress-db-independent: runs-on: ubuntu-20.04 - timeout-minutes: 10 + timeout-minutes: 30 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: - name: Setup Node