Skip to content

Conversation

@brandonkachen
Copy link
Collaborator

No description provided.

@brandonkachen brandonkachen temporarily deployed to brandon/benchify - web PR #312 September 24, 2025 01:20 — with Render Destroyed
@brandonkachen brandonkachen temporarily deployed to brandon/benchify - web PR #312 September 24, 2025 01:21 — with Render Destroyed
@brandonkachen brandonkachen temporarily deployed to brandon/benchify - web PR #312 September 24, 2025 01:26 — with Render Destroyed
@brandonkachen brandonkachen temporarily deployed to brandon/benchify - web PR #312 September 25, 2025 07:44 — with Render Destroyed
@brandonkachen brandonkachen temporarily deployed to brandon/benchify - web PR #312 September 25, 2025 20:54 — with Render Destroyed
brandonkachen and others added 7 commits September 29, 2025 14:55
…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>
Co-authored-by: brandonkachen <brandonchenjiacheng@gmail.com>
Co-authored-by: Codebuff <noreply@codebuff.com>
@brandonkachen brandonkachen changed the title [feat][render preview][codecane] benchify integration attempt 2 [feat][render preview][codecane] benchify integration Sep 29, 2025
@brandonkachen brandonkachen temporarily deployed to brandon/benchify - web PR #312 September 30, 2025 23:52 — with Render Destroyed
@brandonkachen brandonkachen temporarily deployed to brandon/benchify - backend PR #312 September 30, 2025 23:52 — with Render Destroyed
@brandonkachen brandonkachen temporarily deployed to brandon/benchify - backend PR #312 October 1, 2025 00:18 — with Render Destroyed
@brandonkachen brandonkachen merged commit b38d63f into main Oct 6, 2025
18 checks passed
@brandonkachen brandonkachen deleted the brandon/benchify branch October 6, 2025 20:04

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

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,

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.

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.

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.

3 participants