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

hyperledger / fabric-x-committer / 24192692814
91%

Build:
DEFAULT BRANCH: main
Ran 09 Apr 2026 01:31PM UTC
Jobs 2
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

09 Apr 2026 01:26PM UTC coverage: 91.352% (-0.07%) from 91.417%
24192692814

push

github

web-flow
[config] Reduce duplicates in config templates (#535)

#### Type of change

- Improvement (improvement to code, performance, etc)
 
#### Description

The config templates had identical blocks (TLS, endpoint, monitoring,
logging, database) copy-pasted across 14 files. While these blocks
don't change often, when they do, every copy must be updated in sync —
a tedious and error-prone process. More importantly, reading any single
template required wading through boilerplate to find the
service-specific
config that actually differs.

This refactoring extracts shared patterns into named template blocks.
Each service template now reads as a concise list of composed blocks
plus its unique config, making the service-specific parts immediately
visible. When a shared pattern does need to change, it's updated in
one place.

#### Additional details (Optional)

- Extract shared template blocks into shared.yaml.tmpl:
  tlsConfig, endpointWithTLS, endpointListWithIndividualTLS,
  endpointListWithSharedTLS, monitoring, logging, rateLimit,
  ordererClientConfig, and database
- Extract loadgen-specific shared block into loadgen_shared.yaml.tmpl:
  loadgenConfig
- Add custom "include" template function to enable piping template
  output through sprig's "indent" for correct YAML nesting at any level
- Restructure loadgen templates: replace string concatenation with
  define/template composition, each loadgen variant is now a standalone
  main template referencing shared blocks
- Switch from html/template to text/template (correct for YAML
generation)

#### Related issues

 - resolves #326

---------

Signed-off-by: Senthilnathan <cendhu@gmail.com>

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

18 existing lines in 6 files now uncovered.

9972 of 10916 relevant lines covered (91.35%)

42035.1 hits per line

Coverage Regressions

Lines Coverage ∆ File
10
59.66
-8.4% service/sidecar/block_delivery.go
2
97.87
-2.13% service/verifier/verifier_server.go
2
90.18
-0.6% mock/orderer.go
2
93.14
-1.96% mock/vcservice.go
1
97.5
2.5% mock/coordinator.go
1
88.99
-0.92% loadgen/adapters/broadcast.go
Jobs
ID Job ID Ran Files Coverage
1 db-test - 24192692814.1 09 Apr 2026 01:31PM UTC 128
84.3
GitHub Action Run
2 unit-test - 24192692814.2 09 Apr 2026 01:31PM UTC 81
76.12
GitHub Action Run
Source Files on build 24192692814
  • Tree
  • List 128
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5d2d7c4d on github
  • Prev Build on main (#24190596698)
  • Next Build on main (#24196411793)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc