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): skip dev sandbox macOS self-test on merge-queue branches (#88586)

posthog[bot]26be65a3d185
diff --git a/.github/workflows/dev-sandbox-selftest.yml b/.github/workflows/dev-sandbox-selftest.yml
index b22268d4bb6b..d6cefdddf2b3 100644
--- a/.github/workflows/dev-sandbox-selftest.yml
+++ b/.github/workflows/dev-sandbox-selftest.yml
@@ -29,6 +29,11 @@ concurrency:
jobs:
selftest:
name: Verify dev sandbox profile
+ # Skip on merge-queue branches. The sandbox scripts already ran on the PR,
+ # and each trunk-merge/** batch is its own concurrency group that queues
+ # behind the fixed Depot macOS pool. Gate on the same-repo check so a fork
+ # cannot skip the test by naming its branch trunk-merge/*.
+ if: ${{ !(github.event.pull_request.head.repo.full_name == github.repository && startsWith(github.head_ref, 'trunk-merge/')) }}
# sandbox-exec (Seatbelt) is macOS-only. Depot macOS is a fixed FIFO pool
# (Startup+ plan); if it's unavailable, swap runs-on for `macos-14`.
runs-on: depot-macos-15