Repository navigation
test(cloudflare): Add Workers AI E2E test for Clairic - #25625
andreiborza wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4b85e32. Configure here.
| 'gen_ai.response.model': expect.stringContaining('clairic'), | ||
| 'gen_ai.input.messages': expect.stringContaining('Northwind Supply'), | ||
| 'gen_ai.output.messages': expect.stringContaining('INV-2291'), | ||
| }); |
There was a problem hiding this comment.
E2E test uses hardcoded attribute names
Low Severity
The new Clairic E2E assertions hard-code span attribute keys such as gen_ai.operation.name, gen_ai.request.model, gen_ai.response.model, gen_ai.input.messages, and gen_ai.output.messages. Testing conventions require those keys to come from @sentry/conventions constants rather than string literals.
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit 4b85e32. Configure here.
size-limit report 📦Compared: 0907510 (PR test merge using develop at 6e6e13f) Against: 6fb6b07 (develop) · base run #62924
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4b85e32 to
67c87cb
Compare


What
Adds a real Worker E2E test that calls Clairic and checks the
gen_ai.extractspan in Sentry.Why
The E2E test calls the real model, so it confirms the response shape that the binding returns.
Closes: #25615