• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperledger / fabric-x-committer / 29749692684
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: bench-report-metrics
DEFAULT BRANCH: main
Ran 20 Jul 2026 02:16PM UTC
Jobs 3
Files 128
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Jul 2026 02:11PM UTC coverage: 91.451% (-0.09%) from 91.545%
29749692684

Pull #688

github

liran-funaro
[loadgen] Remove the workload distribution

#### Type of change

- Improvement

#### Description

- The load generator's `Distribution` descriptor supported five variants
(`const`, `uniform`, `normal`, `bernoulli`, `discrete`), but only `const`
was ever used. Load generation holds each parameter at a fixed value so
results are deterministic and comparable across runs, so the unused
variants only added config surface, sample-YAML documentation, generator
types, and tests with no realized benefit. This collapses `Distribution`
down to plain constant values.

#### Changes

- Delete `distributions.go` and the orphaned
`Const`/`FloatToInt`/`FloatToPositiveInt`/`FloatToBoolean` generators;
`MultiGenerator.Count` is now a plain `int`.
- Replace the `*Distribution` profile fields with plain scalars:
read/read-write/blind-write counts and query size become `uint32`, the
minimal invalid-keys portion becomes `Probability`, and the dependency
gap becomes `uint64` (min 1).
- Keep per-transaction conflict injection (invalid signatures and
dependency probability) via a small `bernoulliGenerator`
(`rnd.Float64() < p`) with identical semantics to the previous
Bernoulli-based path.
- Update the sample `loadgen.yaml` and the `loadgen_shared.yaml.tmpl`
config template to the plain-number syntax, plus the affected tests.

#### Related issues

- Resolves #682

Signed-off-by: Liran Funaro <liran.funaro@gmail.com>

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #688: [loadgen] Remove the workload distribution

22 of 22 new or added lines in 4 files covered. (100.0%)

26 existing lines in 8 files now uncovered.

10333 of 11299 relevant lines covered (91.45%)

34222.42 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
84.7
-1.64% service/vc/database.go
5
94.17
-4.17% mock/coordinator.go
4
88.05
-1.77% service/coordinator/validator_committer_manager.go
4
88.31
-2.6% service/vc/committer.go
3
91.27
-1.31% service/vc/validator_committer_service.go
2
97.83
-2.17% service/verifier/verifier_server.go
1
86.42
-1.23% loadgen/adapters/verifier.go
1
96.63
-1.12% mock/sigverifier.go
Jobs
ID Job ID Ran Files Coverage
1 unit-test - 29749692684.1 20 Jul 2026 02:19PM UTC 92
84.45
GitHub Action Run
2 core-db-test - 29749692684.2 20 Jul 2026 02:16PM UTC 99
45.58
GitHub Action Run
3 db-test - 29749692684.3 20 Jul 2026 02:18PM UTC 128
79.64
GitHub Action Run
Source Files on build 29749692684
  • Tree
  • List 128
  • Changed 19
  • Source Changed 0
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #688
  • PR Base - main (#29747335649)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc