Skip to content

feat(java): add actor and data batch generator for java bench#3218

Open
slbotbm wants to merge 3 commits intoapache:masterfrom
slbotbm:java-benchmarking-2
Open

feat(java): add actor and data batch generator for java bench#3218
slbotbm wants to merge 3 commits intoapache:masterfrom
slbotbm:java-benchmarking-2

Conversation

@slbotbm
Copy link
Copy Markdown
Contributor

@slbotbm slbotbm commented May 6, 2026

Which issue does this PR close?

Closes #

Rationale

This PR adds an actor for tcp async pinned producer benchmark, a data batch generator, and some enums. Also reorders the directory structure to create multiple benchmarks.

What changed?

  • added tcp async pinned producer actor. (benchmarks/actors/tcp/async/*)
  • added actor kind, benchmark kind, group kind, transport kind enums. (common/enums/*)
  • added batch generator class to generate data batches to send to server. (common/generator/, models/common/generator/)
  • moved provision/* to common/provision/, benchmarks/tcp/async/ to benchmarks/runners/tcp/async/, exception/ to common/exception/*

Local Execution

  • Passed
  • Pre-commit hooks ran

AI Usage

  1. Which tools? codex
  2. Scope of usage? code generation based upon my instructions.
  3. How did you verify the generated code works correctly? Manually read through and verified all code, and ran it.
  4. Can you explain every line of the code if asked? yes

@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

❌ Patch coverage is 0% with 172 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.01%. Comparing base (611fca0) to head (65a050f).
⚠️ Report is 14 commits behind head on master.

Files with missing lines Patch % Lines
.../actors/tcp/async/TcpAsyncPinnedProducerActor.java 0.00% 42 Missing ⚠️
...gy/bench/common/provision/ResourceProvisioner.java 0.00% 40 Missing ⚠️
...arks/runners/tcp/async/TcpAsyncPinnedProducer.java 0.00% 25 Missing ⚠️
...ench/common/generator/BenchmarkBatchGenerator.java 0.00% 22 Missing ⚠️
.../apache/iggy/bench/common/enums/BenchmarkKind.java 0.00% 14 Missing ⚠️
.../org/apache/iggy/bench/common/enums/GroupKind.java 0.00% 10 Missing ⚠️
.../org/apache/iggy/bench/common/enums/ActorKind.java 0.00% 9 Missing ⚠️
.../apache/iggy/bench/common/enums/TransportKind.java 0.00% 8 Missing ⚠️
...g/apache/iggy/bench/cli/PinnedProducerCommand.java 0.00% 1 Missing ⚠️
.../iggy/bench/models/common/generator/DataBatch.java 0.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3218      +/-   ##
============================================
- Coverage     74.10%   74.01%   -0.09%     
  Complexity      943      943              
============================================
  Files          1159     1166       +7     
  Lines        102033   102153     +120     
  Branches      79083    79092       +9     
============================================
  Hits          75607    75607              
- Misses        23765    23885     +120     
  Partials       2661     2661              
Components Coverage Δ
Rust Core 75.33% <ø> (ø)
Java SDK 58.49% <0.00%> (-1.66%) ⬇️
C# SDK 69.38% <ø> (ø)
Python SDK 81.43% <ø> (ø)
Node SDK 91.53% <ø> (ø)
Go SDK 39.43% <ø> (ø)
Files with missing lines Coverage Δ
...ggy/bench/common/exception/BenchmarkException.java 0.00% <ø> (ø)
...rg/apache/iggy/bench/models/cli/GlobalCliArgs.java 0.00% <ø> (ø)
...e/iggy/bench/models/cli/PinnedProducerCliArgs.java 0.00% <ø> (ø)
.../models/common/provision/ProvisionedResources.java 0.00% <ø> (ø)
...g/apache/iggy/bench/cli/PinnedProducerCommand.java 0.00% <0.00%> (ø)
.../iggy/bench/models/common/generator/DataBatch.java 0.00% <0.00%> (ø)
.../apache/iggy/bench/common/enums/TransportKind.java 0.00% <0.00%> (ø)
.../org/apache/iggy/bench/common/enums/ActorKind.java 0.00% <0.00%> (ø)
.../org/apache/iggy/bench/common/enums/GroupKind.java 0.00% <0.00%> (ø)
.../apache/iggy/bench/common/enums/BenchmarkKind.java 0.00% <0.00%> (ø)
... and 4 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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