Skip to content

test(e2e): route agent e2e through the ci gateway product#3206

Merged
joshsny merged 2 commits into
mainfrom
posthog-code/e2e-use-ci-gateway-product
Jul 6, 2026
Merged

test(e2e): route agent e2e through the ci gateway product#3206
joshsny merged 2 commits into
mainfrom
posthog-code/e2e-use-ci-gateway-product

Conversation

@joshsny

@joshsny joshsny commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Problem

The live agent e2e suite points at the llm-gateway's catch-all llm_gateway product. That works, but it mixes e2e traffic in with everything else that falls through to the default bucket, so e2e spend/usage can't be filtered cleanly by ai_product.

Changes

Switch the e2e suite to the dedicated ci gateway product. Like llm_gateway, ci accepts a personal API key (no OAuth mint), so auth is unchanged, but traffic is now attributed to its own ai_product bucket.

  • Default POSTHOG_CODE_E2E_GATEWAY_URL now points at .../ci
  • run-e2e.sh and the e2e README updated to match

Depends on the ci product being registered in the llm-gateway: PostHog/posthog#68767. That should merge (and deploy) first, otherwise a run without an explicit POSTHOG_CODE_E2E_GATEWAY_URL override would 400.

How did you test this?

Config and doc change only. The e2e suite needs a live local gateway plus a personal API key, which I (the PostHog Slack app, running Claude) did not run. Verified there are no remaining llm_gateway references in the e2e dir beyond the one intentional doc note explaining why ci exists.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog from a Slack thread

Switches the live agent e2e suite from the catch-all `llm_gateway` gateway product to the dedicated `ci` product. Both accept a personal API key (no OAuth mint), so auth is unchanged, but e2e traffic is now attributed to its own `ai_product` bucket. Updates the default gateway URL, run-e2e.sh, and the config docs.

Requires the `ci` product added to the llm-gateway in posthog/posthog.

Generated-By: PostHog Code
Task-Id: bec748f0-776a-4ab6-a4f0-15109b3740df
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 2f2325e.

@trunk-io

trunk-io Bot commented Jul 6, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@joshsny joshsny marked this pull request as ready for review July 6, 2026 20:36
Shortening the default gateway URL to the `ci` product let the expression fit on one line, so biome's formatter wanted it collapsed. Fixes the failing quality check.

Generated-By: PostHog Code
Task-Id: bec748f0-776a-4ab6-a4f0-15109b3740df
@joshsny joshsny requested a review from a team July 6, 2026 21:11
@joshsny joshsny enabled auto-merge (squash) July 6, 2026 21:11
@joshsny joshsny merged commit 522185f into main Jul 6, 2026
24 checks passed
@joshsny joshsny deleted the posthog-code/e2e-use-ci-gateway-product branch July 6, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants