Skip to content

[chore] Extract batcher worker pool, cleanup unit tests #13164

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

Merged
merged 1 commit into from
Jun 6, 2025

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Jun 5, 2025

No description provided.

@bogdandrutu bogdandrutu requested review from dmitryax and a team as code owners June 5, 2025 17:56
@bogdandrutu bogdandrutu force-pushed the extract-worker-pool branch 3 times, most recently from d712954 to 8639327 Compare June 5, 2025 19:28
@bogdandrutu bogdandrutu enabled auto-merge June 5, 2025 19:28
Copy link

codecov bot commented Jun 5, 2025

Codecov Report

Attention: Patch coverage is 97.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.29%. Comparing base (c9aaed8) to head (82274c3).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...xporterhelper/internal/queuebatch/multi_batcher.go 83.33% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13164   +/-   ##
=======================================
  Coverage   91.29%   91.29%           
=======================================
  Files         509      509           
  Lines       28735    28737    +2     
=======================================
+ Hits        26233    26235    +2     
  Misses       1988     1988           
  Partials      514      514           

☔ 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.

@bogdandrutu bogdandrutu marked this pull request as draft June 5, 2025 20:02
auto-merge was automatically disabled June 5, 2025 20:02

Pull request was converted to draft

@bogdandrutu bogdandrutu force-pushed the extract-worker-pool branch from 8639327 to 79cbb36 Compare June 5, 2025 20:13
@bogdandrutu bogdandrutu marked this pull request as ready for review June 5, 2025 20:13
@bogdandrutu bogdandrutu changed the title [chore] Extract batcher worker pool as interface, cleanup unit tests [chore] Extract batcher worker pool, cleanup unit tests Jun 5, 2025
@@ -36,24 +36,17 @@ type multiBatcher struct {
var _ Batcher[request.Request] = (*multiBatcher)(nil)

func newMultiBatcher(bCfg BatchConfig, bSet batcherSettings[request.Request]) *multiBatcher {
var workerPool chan struct{}
if bSet.maxWorkers != 0 {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bogdandrutu bogdandrutu enabled auto-merge June 5, 2025 20:20
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu force-pushed the extract-worker-pool branch from 79cbb36 to 82274c3 Compare June 5, 2025 21:55
@bogdandrutu bogdandrutu added this pull request to the merge queue Jun 6, 2025
Merged via the queue into open-telemetry:main with commit 56433bc Jun 6, 2025
56 checks passed
@bogdandrutu bogdandrutu deleted the extract-worker-pool branch June 6, 2025 18:19
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy