Skip to content

test(e2e): Add a node-pi-durable end-to-end application - #24994

Draft
JPeer264 wants to merge 1 commit into
jp/pi-durable-instrumentationfrom
jp/pi-durable-e2e
Draft

JPeer264 wants to merge 1 commit into
jp/pi-durable-instrumentationfrom
jp/pi-durable-e2e

Conversation

@JPeer264

@JPeer264 JPeer264 commented Oct 2, 2026

Copy link
Copy Markdown
Member

Adds an E2E app for the pi-durable instrumentation. It covers what the node integration test cannot: the packed SDK loaded with --import, real model requests through OpenRouter, SQLite storage, a subagent, and a run that resumes after the server crashes during a tool call. A small supervisor restarts the server for that case, as a process manager would.

pi-ai sends anthropic/claude-haiku-4.5 through @anthropic-ai/sdk, so the first test also checks that each model request is reported once and that the provider's HTTP call nests inside its chat span.

The app is optional with a latest variant, because E2E_OPENROUTER_API_KEY is only available in the optional E2E job.

🤖 Generated with Claude Code

@JPeer264
JPeer264 added this pull request to stack #25002 October 2, 2026 13:14
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 29.52 kB - -
@sentry/browser - with treeshaking flags 27.68 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.57 kB - -
@sentry/browser (incl. Tracing) 51.45 kB -0.01% -1 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 51.46 kB -0.01% -1 B 🔽
@sentry/browser (incl. Tracing, Profiling) 54.46 kB - -
@sentry/browser (incl. Tracing, Replay) 91.04 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 80.03 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 95.74 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 108.71 kB +0.01% +1 B 🔺
@sentry/browser (incl. Feedback) 47.04 kB - -
@sentry/browser (incl. sendFeedback) 34.57 kB - -
@sentry/browser (incl. FeedbackAsync) 39.68 kB - -
@sentry/browser (incl. Metrics) 30.54 kB - -
@sentry/browser (incl. Logs) 30.82 kB - -
@sentry/browser (incl. Metrics & Logs) 31.48 kB - -
@sentry/react 31.36 kB - -
@sentry/react (incl. Tracing) 53.8 kB - -
@sentry/vue 37.51 kB - -
@sentry/vue (incl. Tracing) 54.33 kB - -
@sentry/svelte 29.55 kB - -
@sentry/remix (Remix 3 client bundle) 55.77 kB -0.02% -9 B 🔽
CDN Bundle 31.22 kB - -
CDN Bundle (incl. Tracing) 51.98 kB - -
CDN Bundle (incl. Logs, Metrics) 33.46 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 53.92 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.21 kB - -
CDN Bundle (incl. Tracing, Replay) 89.56 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 91.53 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 95.72 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 97.71 kB - -
CDN Bundle - uncompressed 92.14 kB - -
CDN Bundle (incl. Tracing) - uncompressed 154.49 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 98.71 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 160.45 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 228.28 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 274.22 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 280.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 287.93 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 293.86 kB - -
@sentry/nextjs (client) 56.32 kB -0.01% -1 B 🔽
@sentry/sveltekit (client) 51.87 kB - -
@sentry/core/server 40.59 kB - -
@sentry/core/browser 13.63 kB -0.01% -1 B 🔽
@sentry/node 148.02 kB +2.26% +3.27 kB 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.26 kB +0.05% +39 B 🔺
@sentry/node - without tracing 93.39 kB +0.08% +74 B 🔺
@sentry/node - without channel injection 126.26 kB +2.69% +3.3 kB 🔺
@sentry/aws-serverless 101.62 kB +0.04% +35 B 🔺
@sentry/cloudflare (withSentry) - minified 208.61 kB - -
@sentry/cloudflare (withSentry) 517.4 kB - -

View base workflow run

execute: async args => {
const marker = `${dataDir}flaky-${args.job}`;
if (!existsSync(marker)) {
writeFileSync(marker, 'crashed once');
@JPeer264
JPeer264 removed this pull request from stack #25002 October 2, 2026 13:31
@JPeer264
JPeer264 added this pull request to stack #25004 October 2, 2026 13:57
Covers what the node integration test cannot: the packed SDK, real
model requests through pi-ai's `@anthropic-ai/sdk` path, SQLite storage,
and a run that resumes after the server crashes during a tool call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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