Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

ci: give the jest and semgrep jobs a longer budget in a copy of the repository (#122318)

Georges-Antoine Assiaa8d922312b3
diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml
index bb596b50ad57..d4cc5dc7ec0b 100644
--- a/.github/workflows/ci-frontend.yml
+++ b/.github/workflows/ci-frontend.yml
@@ -881,8 +881,9 @@ jobs:
runs-on: ubuntu-24.04
# PRs run as many selective shards as the tests reachable from the changed
# files need under the file limit in .github/scripts/jest-select.js. The
- # merge queue runs the full four-shard fanout.
- timeout-minutes: 20
+ # merge queue runs the full four-shard fanout. A copy of the repository lands
+ # on a slower GitHub-hosted runner pool, so it gets a longer budget.
+ timeout-minutes: ${{ github.repository == 'PostHog/posthog' && 20 || 30 }}
needs: [changes, select-jest-tests]
# A status function is required because select-jest-tests is skipped on the
# merge queue's run and on master pushes, and a skipped need would otherwise
diff --git a/.github/workflows/ci-security.yaml b/.github/workflows/ci-security.yaml
index 09966f3de16a..c6042f7e610e 100644
--- a/.github/workflows/ci-security.yaml
+++ b/.github/workflows/ci-security.yaml
@@ -150,7 +150,9 @@ jobs:
needs: changes
if: needs.changes.outputs.python == 'true'
runs-on: ubuntu-24.04
- timeout-minutes: 45
+ # A copy of the repository lands on a slower GitHub-hosted runner pool, so
+ # it gets a longer budget for the full scan.
+ timeout-minutes: ${{ github.repository == 'PostHog/posthog' && 45 || 75 }}
env:
DOCKERHUB_USERNAME: ${{ vars.DOCKERHUB_USER }}