X Tutup
Skip to content

fix(scaletest): handle ignored errors in llmmock and bridge#22850

Open
mafredri wants to merge 1 commit intomainfrom
fix/errcheck-scaletest
Open

fix(scaletest): handle ignored errors in llmmock and bridge#22850
mafredri wants to merge 1 commit intomainfrom
fix/errcheck-scaletest

Conversation

@mafredri
Copy link
Member

@mafredri mafredri commented Mar 9, 2026

Handle errors that were previously assigned to blank identifiers in the scaletest/ package tree.

Changes

llmmock/server.go (13 fixes)

  • Non-streaming handlers: Return HTTP 500 on json.Marshal failure, log the error.
  • Streaming handlers: Log and return early when SSE event marshaling fails, since we can't continue sending malformed data.

bridge/run.go

  • Include io.ReadAll error in the fallback body string instead of silently discarding it, so callers get useful error information about failed HTTP responses.

Part of the effort to enable errcheck.check-blank in golangci-lint.


🤖 This PR was created with the help of Coder Agents, and reviewed by a human 🏂🏻.

@mafredri mafredri requested a review from SasSwart March 9, 2026 16:49
@mafredri mafredri force-pushed the fix/errcheck-scaletest branch from 1a303df to ad09a54 Compare March 9, 2026 18:22
Surface the io.ReadAll error in the error message when an HTTP
request fails with a non-200 status, instead of silently
discarding it.
@mafredri mafredri force-pushed the fix/errcheck-scaletest branch from ad09a54 to a5126d1 Compare March 9, 2026 18:25
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.

1 participant

X Tutup