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

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

Build:
Build:
LAST BUILD BRANCH: skill-dev
DEFAULT BRANCH: main
Ran 19 Jul 2026 07:10AM 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 07:06AM UTC coverage: 91.683% (+0.05%) from 91.63%
29677560172

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%)

13 existing lines in 3 files now uncovered.

10461 of 11410 relevant lines covered (91.68%)

43264.39 hits per line

Uncovered Changes

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

Coverage Regressions

Lines Coverage ∆ File
10
78.88
-1.36% service/sidecar/sidecar.go
2
97.83
-2.17% service/verifier/verifier_server.go
1
98.88
1.12% mock/sigverifier.go
Jobs
ID Job ID Ran Files Coverage
1 db-test - 29677560172.1 19 Jul 2026 07:12AM UTC 129
79.98
GitHub Action Run
2 core-db-test - 29677560172.2 19 Jul 2026 07:10AM UTC 100
45.16
GitHub Action Run
3 unit-test - 29677560172.3 19 Jul 2026 07:12AM UTC 93
83.74
GitHub Action Run
Source Files on build 29677560172
  • Tree
  • List 129
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ce0a7025 on github
  • Prev Build on loadgen-const-distribution-shorthand (#29504965343)
  • Next Build on loadgen-const-distribution-shorthand (#29686598346)
  • 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