Title: Share the OpenRouter client setup across AI e2e test apps · Issue #25175 · getsentry/sentry-javascript · GitHub
Open Graph Title: Share the OpenRouter client setup across AI e2e test apps · Issue #25175 · getsentry/sentry-javascript
X Title: Share the OpenRouter client setup across AI e2e test apps · Issue #25175 · getsentry/sentry-javascript
Description: Several AI e2e test apps repeat the same OpenRouter setup: read E2E_OPENROUTER_API_KEY, throw if it is missing, and call createOpenRouter({ apiKey }). Apps with this code: node-eve/agent/agent.ts cloudflare-mastra/src/mastra/agents/weath...
Open Graph Description: Several AI e2e test apps repeat the same OpenRouter setup: read E2E_OPENROUTER_API_KEY, throw if it is missing, and call createOpenRouter({ apiKey }). Apps with this code: node-eve/agent/agent.ts c...
X Description: Several AI e2e test apps repeat the same OpenRouter setup: read E2E_OPENROUTER_API_KEY, throw if it is missing, and call createOpenRouter({ apiKey }). Apps with this code: node-eve/agent/agent.ts c...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25175
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Share the OpenRouter client setup across AI e2e test apps","articleBody":"Several AI e2e test apps repeat the same OpenRouter setup: read `E2E_OPENROUTER_API_KEY`, throw if it is missing, and call `createOpenRouter({ apiKey })`.\n\nApps with this code:\n\n* `node-eve/agent/agent.ts`\n* `cloudflare-mastra/src/mastra/agents/weather-agent.ts`\n* `cloudflare-think/src/think-agent.ts`\n* `gen-ai-libraries/src/libraries.ts`\n\n`node-mastra` now has one shared `src/mastra/openrouter.ts` for all its scenarios. Do the same in the other apps, so that each app creates its OpenRouter client in one place. Each e2e app is a separate package, so the scope is one helper per app, unless a shared helper in `@sentry-internal/test-utils` is a good fit. The Cloudflare apps read the key from `env` per request, so a shared helper must take the key as an argument.\n\nFollow-up from review: [PR #25115 review comment](\u003chttps://github.com/getsentry/sentry-javascript/pull/25115#discussion_r4208467910>)","author":{"url":"https://github.com/andreiborza","@type":"Person","name":"andreiborza"},"datePublished":"2026-10-08T11:22:19Z","url":"https://github.com/getsentry/sentry-javascript/issues/25175"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3092e1db-c9f6-7714-ee16-ed8c0ead39ef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB72:E08F0:3FC058:59EC88:6B047072 |
| html-safe-nonce | 4eeeecf1605291036e1578e0972aeddb955ac0068fd449f4d3c9f281fce6b2f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjcyOkUwOEYwOjNGQzA1ODo1OUVDODg6NkIwNDcwNzIiLCJ2aXNpdG9yX2lkIjoiNjU5MzcyNzI3MDI4Mjg4MzE4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 788f48bd27c1c8834b1e260f530766be6de424420c5ea669d907a8138f95a5fb |
| hovercard-subject-tag | issue:5760844925 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/25175/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a8b942ab914b198bcb83cb7485a1014943521f2db31b867153cd32c7cb34e2df/getsentry/sentry-javascript/issues/25175 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8b942ab914b198bcb83cb7485a1014943521f2db31b867153cd32c7cb34e2df/getsentry/sentry-javascript/issues/25175 |
| og:image:alt | Several AI e2e test apps repeat the same OpenRouter setup: read E2E_OPENROUTER_API_KEY, throw if it is missing, and call createOpenRouter({ apiKey }). Apps with this code: node-eve/agent/agent.ts c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andreiborza |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width