Skip to content

fix(pubsub): change error return type for publish to Arc#4620

Merged
suzmue merged 3 commits intogoogleapis:mainfrom
suzmue:arcerror
Feb 9, 2026
Merged

fix(pubsub): change error return type for publish to Arc#4620
suzmue merged 3 commits intogoogleapis:mainfrom
suzmue:arcerror

Conversation

@suzmue
Copy link
Copy Markdown
Collaborator

@suzmue suzmue commented Feb 9, 2026

To allow sharing the same crate::Error for multiple messages bundled in the same batch, we wrap the error in an Arc. This allows us to remove the code that wraps the originally Error in an Error::io.

The tests also needed to be updates since they were actually checking for the io error type.

Fixes #4619

@suzmue suzmue requested a review from a team February 9, 2026 19:15
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Feb 9, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.03%. Comparing base (037f744) to head (8d71c2c).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4620      +/-   ##
==========================================
+ Coverage   95.01%   95.03%   +0.01%     
==========================================
  Files         195      195              
  Lines        7465     7465              
==========================================
+ Hits         7093     7094       +1     
+ Misses        372      371       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@dbolduc
Copy link
Copy Markdown
Member

dbolduc commented Feb 9, 2026

/gcbrun

@suzmue suzmue requested a review from a team as a code owner February 9, 2026 23:14
@suzmue suzmue merged commit d471fb4 into googleapis:main Feb 9, 2026
34 checks passed
@suzmue suzmue deleted the arcerror branch February 9, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Return Arc<Error> directly for publish results

3 participants