: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(desktop): skip live-model e2e in the merge queue (#102547)
Georges-Antoine Assi3b85e432a289
diff --git a/.github/workflows/desktop-test.yml b/.github/workflows/desktop-test.ymlindex d6d315e16856..398d40284aef 100644--- a/.github/workflows/desktop-test.yml+++ b/.github/workflows/desktop-test.yml@@ -275,9 +275,17 @@ jobs:# gate on the gateway config being present: if the POSTHOG_CODE_E2E_*# secret/vars are missing, the fail-loud guard# (products/desktop/packages/agent/e2e/guard.e2e.test.ts) REDS the run rather than- # skipping to green. Only fork PRs are skipped, since they never receive the+ # skipping to green. Fork PRs are skipped, since they never receive the# gateway secret and would red spuriously.- if: ${{ (needs.changes.outputs.packages == 'true' || needs.changes.outputs.workflow == 'true') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}+ #+ # The merge queue is skipped as well. Trunk bases its shadow PR on a stale+ # master, so the paths filter sees every file merged since that base and+ # reports `packages` true for a PR that touches no packages file. These tests+ # drive live models, so they measure model behavior rather than whether this+ # batch merges cleanly, which is what a queue run is for. A model timeout there+ # removes a PR that changes no desktop code from the queue. The PR's own run+ # still covers every branch that really changes products/desktop/packages/.+ if: ${{ (needs.changes.outputs.packages == 'true' || needs.changes.outputs.workflow == 'true') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && !startsWith(github.head_ref, 'trunk-merge/') }}runs-on: depot-ubuntu-24.04-4timeout-minutes: 30permissions:diff --git a/products/desktop/packages/agent/vitest.e2e.config.ts b/products/desktop/packages/agent/vitest.e2e.config.tsindex 9e69a65eb7b3..131f9ae69ca1 100644--- a/products/desktop/packages/agent/vitest.e2e.config.ts+++ b/products/desktop/packages/agent/vitest.e2e.config.ts@@ -1,10 +1,11 @@import { resolve } from "node:path";import { defineConfig } from "vitest/config";-// Live, opt-in e2e suite. Separate from the default `vitest.config.ts` (which-// only includes `src/**`), so these never run under `pnpm test` or per-PR CI;-// run them manually with `pnpm test:e2e` (no CI job invokes them). Sequential,-// generous timeouts: each test drives two real model turns end to end.+// Live e2e suite. Separate from the default `vitest.config.ts` (which only+// includes `src/**`), so `pnpm test` never runs it. The `e2e` job in+// desktop-test.yml runs it on a branch that changes products/desktop/packages/,+// and skips it in the merge queue. Run it by hand with `pnpm test:e2e`.+// Sequential, generous timeouts: each test drives two real model turns end to end.export default defineConfig({resolve: {alias: {