From 6ba47af51ea4f63381bfc9dbd2d387ef8819ba27 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Mon, 12 Oct 2026 09:11:25 +0200 Subject: [PATCH 1/3] feat: add a job timeout to the Python unit tests workflow --- .github/workflows/python_unit_tests.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/python_unit_tests.yaml b/.github/workflows/python_unit_tests.yaml index bad2410..71ec962 100644 --- a/.github/workflows/python_unit_tests.yaml +++ b/.github/workflows/python_unit_tests.yaml @@ -43,6 +43,11 @@ on: required: false type: string default: auto + timeout_minutes: + description: Maximum minutes a single matrix job may run before it is cancelled, so a hung test fails fast. + required: false + type: number + default: 60 jobs: unit_tests: @@ -53,6 +58,7 @@ jobs: os: ${{ fromJSON(inputs.operating_systems) }} python-version: ${{ fromJSON(inputs.python_versions) }} runs-on: ${{ matrix.os }} + timeout-minutes: ${{ inputs.timeout_minutes }} env: HTTPBIN_URL: ${{ secrets.APIFY_HTTPBIN_TOKEN && format('https://httpbin.apify.actor?token={0}', secrets.APIFY_HTTPBIN_TOKEN) || 'https://httpbin.org' }} TESTS_CONCURRENCY: ${{ inputs.tests_concurrency }} From 54029299c96b8d5edb4298e8758475f1ea9b0e8f Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Mon, 12 Oct 2026 09:22:56 +0200 Subject: [PATCH 2/3] ci: remove repo-level PR toolkit workflows covered by the org ruleset --- .github/workflows/local_pr_toolkit.yaml | 23 --------------------- .github/workflows/pull_request_toolkit.yaml | 23 --------------------- 2 files changed, 46 deletions(-) delete mode 100644 .github/workflows/local_pr_toolkit.yaml delete mode 100644 .github/workflows/pull_request_toolkit.yaml diff --git a/.github/workflows/local_pr_toolkit.yaml b/.github/workflows/local_pr_toolkit.yaml deleted file mode 100644 index 04ed7d8..0000000 --- a/.github/workflows/local_pr_toolkit.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# For more info see: https://github.com/apify/pull-request-toolkit-action/ -name: Apify PR toolkit - -on: - pull_request: - branches: - - main - types: ['opened', 'reopened', 'synchronize', 'labeled', 'unlabeled', 'edited', 'ready_for_review'] # The first 3 are default. - -concurrency: # This is to make sure that it's executed only for the most recent changes of PR. - group: ${{ github.ref }} - cancel-in-progress: true - -jobs: - apify-pr-toolkit: - runs-on: ubuntu-latest - steps: - - name: run pull-request-toolkit action - uses: apify/pull-request-toolkit-action@main - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - org-token: ${{ secrets.PULL_REQUEST_TOOLKIT_ACTION_GITHUB_TOKEN }} - zenhub-token: ${{ secrets.PULL_REQUEST_TOOLKIT_ACTION_ZENHUB_TOKEN }} diff --git a/.github/workflows/pull_request_toolkit.yaml b/.github/workflows/pull_request_toolkit.yaml deleted file mode 100644 index 95b8c4d..0000000 --- a/.github/workflows/pull_request_toolkit.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# For more info see: https://github.com/apify/pull-request-toolkit-action/ -name: Apify pull request toolkit - -on: - pull_request: - types: ['opened', 'reopened', 'synchronize', 'labeled', 'unlabeled', 'edited', 'ready_for_review'] # The first 3 are default. - -concurrency: # This is to make sure that it's executed only for the most recent changes of PR. - group: ${{ github.ref }} - cancel-in-progress: true - -jobs: - apify-pr-toolkit: - # Commented out as it sometimes happens that once PR was in a draft the workflows are not being run later on. - # if: github.event.pull_request.draft == false - runs-on: ubuntu-22.04-arm64 - steps: - - name: run pull-request-toolkit action - uses: apify/pull-request-toolkit-action@main - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - org-token: ${{ secrets.PULL_REQUEST_TOOLKIT_ACTION_GITHUB_TOKEN }} - zenhub-token: ${{ secrets.PULL_REQUEST_TOOLKIT_ACTION_ZENHUB_TOKEN }} From b661bd4a2e6c5449bf1711141afa829a4beaf434 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Mon, 12 Oct 2026 09:24:37 +0200 Subject: [PATCH 3/3] ci: move PR toolkit workflow removal to its own PR --- .github/workflows/local_pr_toolkit.yaml | 23 +++++++++++++++++++++ .github/workflows/pull_request_toolkit.yaml | 23 +++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/local_pr_toolkit.yaml create mode 100644 .github/workflows/pull_request_toolkit.yaml diff --git a/.github/workflows/local_pr_toolkit.yaml b/.github/workflows/local_pr_toolkit.yaml new file mode 100644 index 0000000..04ed7d8 --- /dev/null +++ b/.github/workflows/local_pr_toolkit.yaml @@ -0,0 +1,23 @@ +# For more info see: https://github.com/apify/pull-request-toolkit-action/ +name: Apify PR toolkit + +on: + pull_request: + branches: + - main + types: ['opened', 'reopened', 'synchronize', 'labeled', 'unlabeled', 'edited', 'ready_for_review'] # The first 3 are default. + +concurrency: # This is to make sure that it's executed only for the most recent changes of PR. + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + apify-pr-toolkit: + runs-on: ubuntu-latest + steps: + - name: run pull-request-toolkit action + uses: apify/pull-request-toolkit-action@main + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + org-token: ${{ secrets.PULL_REQUEST_TOOLKIT_ACTION_GITHUB_TOKEN }} + zenhub-token: ${{ secrets.PULL_REQUEST_TOOLKIT_ACTION_ZENHUB_TOKEN }} diff --git a/.github/workflows/pull_request_toolkit.yaml b/.github/workflows/pull_request_toolkit.yaml new file mode 100644 index 0000000..95b8c4d --- /dev/null +++ b/.github/workflows/pull_request_toolkit.yaml @@ -0,0 +1,23 @@ +# For more info see: https://github.com/apify/pull-request-toolkit-action/ +name: Apify pull request toolkit + +on: + pull_request: + types: ['opened', 'reopened', 'synchronize', 'labeled', 'unlabeled', 'edited', 'ready_for_review'] # The first 3 are default. + +concurrency: # This is to make sure that it's executed only for the most recent changes of PR. + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + apify-pr-toolkit: + # Commented out as it sometimes happens that once PR was in a draft the workflows are not being run later on. + # if: github.event.pull_request.draft == false + runs-on: ubuntu-22.04-arm64 + steps: + - name: run pull-request-toolkit action + uses: apify/pull-request-toolkit-action@main + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + org-token: ${{ secrets.PULL_REQUEST_TOOLKIT_ACTION_GITHUB_TOKEN }} + zenhub-token: ${{ secrets.PULL_REQUEST_TOOLKIT_ACTION_ZENHUB_TOKEN }}