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(desktop): skip the macOS integration test on merge queue batches (#96546)

Julian Bezc5f9b45101f4
diff --git a/.github/workflows/desktop-test.yml b/.github/workflows/desktop-test.yml
index 2869a0c2bed3..3704fe06c6c4 100644
--- a/.github/workflows/desktop-test.yml
+++ b/.github/workflows/desktop-test.yml
@@ -130,7 +130,20 @@ jobs:
integration-test:
needs: changes
# Fail closed: if change detection itself failed, run instead of skipping.
- if: ${{ !cancelled() && github.event_name != 'merge_group' && (needs.changes.result != 'success' || needs.changes.outputs.code == 'true' || needs.changes.outputs.workflow == 'true') }}
+ #
+ # Also skipped on trunk-merge/** heads. Trunk's queue opens a real PR, so
+ # the merge_group arm never matches and this ran on every batch. Every
+ # batched PR already ran it in full, and depot-macos-26 is the suite's only
+ # macOS runner, where an hour-long wait at peak holds the queue instead of
+ # one author's PR. Scoped to same-repo heads so a fork cannot opt out by
+ # naming its branch trunk-merge/**. While the live-model `e2e` job still
+ # needs this one, it skips there too, the cascade merge_group relies on.
+ if: >-
+ !cancelled() &&
+ github.event_name != 'merge_group' &&
+ !(github.event.pull_request.head.repo.full_name == github.repository &&
+ startsWith(github.head_ref, 'trunk-merge/')) &&
+ (needs.changes.result != 'success' || needs.changes.outputs.code == 'true' || needs.changes.outputs.workflow == 'true')
runs-on: depot-macos-26
timeout-minutes: 45
permissions: