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

liran-funaro / fabric-x-committer / 29686598346
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: skill-dev
DEFAULT BRANCH: main
Ran 19 Jul 2026 12:18PM UTC
Jobs 3
Files 129
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

19 Jul 2026 12:09PM UTC coverage: 91.579% (-0.1%) from 91.683%
29686598346

push

github

liran-funaro
[loadgen] Allow bare number as const distribution shorthand

- New feature

Add a mapstructure decode hook so a bare number is accepted as a
shorthand for a const distribution. For example:

    read-write-count: 2

is now equivalent to:

    read-write-count:
      const: 2

The hook targets the workload.Distribution type, so the shorthand
applies uniformly to every distribution config field (read/write
counts, query-size, min-invalid-keys-portion, dependency gap).
Non-numeric values (maps, strings, booleans) are left untouched, so
the full distribution forms (const, uniform, normal, discrete,
bernoulli) keep working.

- Documented the shorthand in the loadgen sample config and switched
  the read-write-count example to it, which makes the existing
  sample-loading test cover the shorthand end-to-end through the real
  config loader.
- Added decoder unit tests for the shorthand (int/float/negative/zero),
  regression tests for the explicit forms, and a guard test ensuring a
  non-numeric scalar surfaces a decode error rather than being coerced.

 - resolves #673

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

13 of 15 new or added lines in 1 file covered. (86.67%)

27 existing lines in 9 files now uncovered.

10451 of 11412 relevant lines covered (91.58%)

43806.62 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.59
0.0% cmd/config/config_decoder.go

Coverage Regressions

Lines Coverage ∆ File
6
94.67
0.0% service/coordinator/coordinator.go
6
85.25
-1.09% service/vc/database.go
4
88.11
-1.76% service/coordinator/validator_committer_manager.go
3
78.29
-0.58% service/sidecar/sidecar.go
2
94.74
-5.26% utils/dbconn/database_connection.go
2
92.35
-0.53% mock/orderer.go
2
96.63
-2.25% mock/sigverifier.go
1
86.42
-1.23% loadgen/adapters/verifier.go
1
94.95
-1.01% loadgen/adapters/common.go
Jobs
ID Job ID Ran Files Coverage
1 unit-test - 29686598346.1 19 Jul 2026 12:20PM UTC 93
83.62
GitHub Action Run
2 db-test - 29686598346.2 19 Jul 2026 12:20PM UTC 129
79.96
GitHub Action Run
3 core-db-test - 29686598346.3 19 Jul 2026 12:18PM UTC 100
45.1
GitHub Action Run
Source Files on build 29686598346
  • Tree
  • List 129
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b317e39c on github
  • Prev Build on loadgen-const-distribution-shorthand (#29677560172)
  • Delete
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