Skip to content

fix(orchestrator): CollectionResult returns error on bad rawJSON#259

Merged
retr0h merged 1 commit intomainfrom
fix/bridge-rawjson-error
Mar 14, 2026
Merged

fix(orchestrator): CollectionResult returns error on bad rawJSON#259
retr0h merged 1 commit intomainfrom
fix/bridge-rawjson-error

Conversation

@retr0h
Copy link
Collaborator

@retr0h retr0h commented Mar 14, 2026

Summary

Change CollectionResult signature from *Result to (*Result, error)
so malformed response bodies propagate as task failures with a clear
error message instead of being silently discarded with _ = err.

All 30 example callers updated to propagate the error.

Test plan

  • go test ./... passes
  • All 30 orchestrator examples compile individually
  • New test case for invalid rawJSON verifies error return

🤖 Generated with Claude Code

Change CollectionResult signature from *Result to (*Result, error)
so malformed response bodies propagate as task failures instead of
being silently discarded. Update all 30 example callers.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link
Contributor

Thank you for contributing to this project! 😊🕹️

@codecov
Copy link

codecov bot commented Mar 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #259   +/-   ##
=======================================
  Coverage   99.94%   99.94%           
=======================================
  Files         222      222           
  Lines        9439     9441    +2     
=======================================
+ Hits         9434     9436    +2     
  Misses          3        3           
  Partials        2        2           
Files with missing lines Coverage Δ
pkg/sdk/orchestrator/bridge.go 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update feef75f...44f5c23. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@retr0h retr0h merged commit 9924cc5 into main Mar 14, 2026
9 checks passed
@retr0h retr0h deleted the fix/bridge-rawjson-error branch March 14, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant