Skip to content

test(cloudflare): Skip flaky DO RPC private-fields integration test#21544

Merged
JPeer264 merged 1 commit into
developfrom
test/skip-flaky-do-private-fields
Jun 15, 2026
Merged

test(cloudflare): Skip flaky DO RPC private-fields integration test#21544
JPeer264 merged 1 commit into
developfrom
test/skip-flaky-do-private-fields

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Skips the flaky Cloudflare integration test suites/tracing/durableobject/test.ts > allows RPC methods to access private class fields, which intermittently fails in CI.

Root cause

This is a wrangler-based Cloudflare integration test. Each test case spins up its own wrangler dev process, mock Sentry server, and Durable Object before exchanging requests, then waits for the expected transaction envelopes within the suite's 20s testTimeout (dev-packages/cloudflare-integration-tests/vite.config.mts). Under CI load, the combined cost of wrangler cold start + DO RPC round-trips + transaction flush occasionally exceeds that budget, so the test times out — matching the "Other / Unknown" flakiness reported here.

The test logic itself is deterministic: /custom-greeting calls setGreeting('Howdy') then sayHello('partner') on the same DO (idFromName('test')), and the harness matches the two RPC transactions in unordered() mode. There is no logic-level race in the SDK code path being exercised — the flake is environmental/timing.

This mirrors the existing precedent in the same package for flaky, timing-out DO RPC integration tests: suites/tracing/durableobject-spans/test.ts is already it.skip-ped with a // TODO: unskip - this test is flaky, timing out in CI comment. This change applies the same additive guard (and the same TODO comment, referencing this issue) so the regression coverage can be restored once the timing flake is addressed.

Fixes #21201

Fixes #21201

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot requested a review from a team as a code owner June 15, 2026 12:53
@github-actions github-actions Bot requested review from JPeer264 and mydea and removed request for a team June 15, 2026 12:53
@mydea

mydea commented Jun 15, 2026

Copy link
Copy Markdown
Member

@JPeer264 thoughts on this? 🤔

@JPeer264

Copy link
Copy Markdown
Member

That is a bad way of fixing a flaky test IMO. I'll try to reproduce that locally and fix it accordingly.

For now we can merge that in to unflake it

@JPeer264 JPeer264 enabled auto-merge (squash) June 15, 2026 16:29
@github-actions

Copy link
Copy Markdown
Contributor Author

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.4 kB - -
@sentry/browser - with treeshaking flags 25.84 kB - -
@sentry/browser (incl. Tracing) 45.7 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.94 kB - -
@sentry/browser (incl. Tracing, Profiling) 50.5 kB +0.01% +1 B 🔺
@sentry/browser (incl. Tracing, Replay) 84.92 kB +0.01% +1 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 74.53 kB +0.01% +1 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 89.61 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 102.3 kB - -
@sentry/browser (incl. Feedback) 44.56 kB - -
@sentry/browser (incl. sendFeedback) 32.2 kB - -
@sentry/browser (incl. FeedbackAsync) 37.31 kB - -
@sentry/browser (incl. Metrics) 28.47 kB +0.01% +1 B 🔺
@sentry/browser (incl. Logs) 28.71 kB - -
@sentry/browser (incl. Metrics & Logs) 29.4 kB - -
@sentry/react 29.2 kB - -
@sentry/react (incl. Tracing) 48 kB - -
@sentry/vue 32.42 kB - -
@sentry/vue (incl. Tracing) 47.59 kB - -
@sentry/svelte 27.42 kB - -
CDN Bundle 29.79 kB - -
CDN Bundle (incl. Tracing) 48.2 kB - -
CDN Bundle (incl. Logs, Metrics) 31.33 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.49 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.62 kB +0.01% +1 B 🔺
CDN Bundle (incl. Tracing, Replay) 85.52 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.77 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.37 kB +0.01% +1 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.62 kB - -
CDN Bundle - uncompressed 88.59 kB - -
CDN Bundle (incl. Tracing) - uncompressed 145.8 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 93.29 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 149.77 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 218.12 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 264.67 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 268.63 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 278.37 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 282.31 kB - -
@sentry/nextjs (client) 50.45 kB +0.01% +1 B 🔺
@sentry/sveltekit (client) 46.12 kB - -
@sentry/core/server 76.08 kB - -
@sentry/core/browser 63.22 kB - -
@sentry/node-core 61.72 kB - -
@sentry/node 130.45 kB - -
@sentry/node - without tracing 74.11 kB - -
@sentry/aws-serverless 86.29 kB -0.08% -63 B 🔽
@sentry/cloudflare (withSentry) - minified 173.69 kB -0.29% -500 B 🔽
@sentry/cloudflare (withSentry) 433.85 kB -0.36% -1.56 kB 🔽

View base workflow run

@JPeer264 JPeer264 merged commit aaf9d5b into develop Jun 15, 2026
43 checks passed
@JPeer264 JPeer264 deleted the test/skip-flaky-do-private-fields branch June 15, 2026 16:39
JPeer264 added a commit that referenced this pull request Jun 16, 2026
Hope to have a better reasoning on #21544 and re-enabling two skipped
tests.

With that PR there are two things happening

1. the timeout increases as I couldn't think of anything else other than
the worker is not fast enough to spin up.
2. When something crashes for some reason it fails fast rather than
waiting for the timeout to be over, including a better error description
with the code and the signal. Maybe then the reasoning is better of what
is actually happening (in case it fails before)
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.

[Flaky CI]: Cloudflare Integration Tests - suites/tracing/durableobject/test.ts > allows RPC methods to access private class fields

2 participants