-
Notifications
You must be signed in to change notification settings - Fork 364
[feat][render preview][codecane] benchify integration #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f095671 to
bd8e5eb
Compare
7cbf997 to
dfe75f1
Compare
…ration error handling; implement batch execution for deferred str_replace operations to improve reliability and observability. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
… validation and streaming integration Consolidates recent improvements to Benchify post-processing and batched str_replace execution. Reworks validateBenchifyResponse to use structural pattern match with clear business logic checks (no nested matches/continues), simplifies stream-parser integration, and expands tests for reliability. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
…ENCHIFY_API_KEY. This replaces brittle spy usage and ensures resilience when Benchify is disabled. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
…rting getBenchifyClient for easier mocking; this prevents brittle failures when BENCHIFY_API_KEY is missing and stabilizes batch-str-replace tests. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
02ad02f to
b717bec
Compare
Co-authored-by: brandonkachen <brandonchenjiacheng@gmail.com> Co-authored-by: Codebuff <noreply@codebuff.com>
|
|
||
| const BENCHIFY_FILE_TYPES = ['tsx', 'ts', 'jsx', 'js'] | ||
| const BENCHIFY_TIMEOUT_MS = 3000 // 3 second timeout for Benchify calls | ||
| const BENCHIFY_MAX_FILES = 10 // Maximum files to send to Benchify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually could do quite a bit more than this potentially. For one of our app-builder customers we often get requests with 70+ files, and Juan's deploying blob support currently to make this quite a bit more network-efficient. So maybe worth revisiting.
| if (benchifyResult && benchifyResult.length > 0) { | ||
| logger.info( | ||
| { | ||
| benchifyResultCount: benchifyResult.length, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this makes sense to log. It's the length of a resolved string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would think this was added previously when we were giving you ALL_FILES before we moved to DIFF.
No description provided.