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.

fix(ci): run queue mypy on the 16 gb runner (#125116)

Raúl Negrón-Otero7ee32e85de52
diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml
index ab9917752fd4..9257d3f88378 100644
--- a/.github/workflows/ci-python.yml
+++ b/.github/workflows/ci-python.yml
@@ -246,8 +246,8 @@ jobs:
timeout-minutes: 30
name: Python code quality (depot-ubuntu-24.04)
- # Master runs mypy cold after a dependency change, which needs more than 8 GB.
- runs-on: ${{ github.event_name == 'pull_request' && 'depot-ubuntu-24.04' || 'depot-ubuntu-24.04-4' }}
+ # Master and the merge queue run mypy cold after a dependency change, which needs more than 8 GB.
+ runs-on: ${{ github.event_name == 'pull_request' && !startsWith(github.head_ref, 'trunk-merge/') && 'depot-ubuntu-24.04' || 'depot-ubuntu-24.04-4' }}
# Read by shell guards on the pytest steps below. Those steps sit in a
# `parallel:` block, where step-level `if:` is untested in this repo.
env: