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

hyperledger / fabric-x-committer / 24173008415
91%
main: 92%

Build:
Build:
LAST BUILD BRANCH: admin-db-init
DEFAULT BRANCH: main
Ran 09 Apr 2026 04:55AM 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 04:29AM UTC coverage: 91.649% (+0.1%) from 91.513%
24173008415

Pull #535

github

cendhu
[config] deduplicate YAML config templates using Go template composition

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.

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

Signed-off-by: Senthilnathan <cendhu@gmail.com>
Pull Request #535: [config] Reduce duplicates in config templates

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

16 existing lines in 5 files now uncovered.

10020 of 10933 relevant lines covered (91.65%)

43184.66 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
92.2
-2.75% service/coordinator/signature_verifier_manager.go
5
94.17
-4.17% mock/coordinator.go
2
90.77
0.6% mock/orderer.go
2
91.23
-0.88% service/coordinator/validator_committer_manager.go
1
82.0
-2.0% loadgen/adapters/coordinator.go
Jobs
ID Job ID Ran Files Coverage
1 unit-test - 24173008415.1 09 Apr 2026 04:55AM UTC 81
76.2
GitHub Action Run
2 db-test - 24173008415.2 09 Apr 2026 04:55AM UTC 128
84.73
GitHub Action Run
Source Files on build 24173008415
  • Tree
  • List 128
  • Changed 16
  • Source Changed 0
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #535
  • PR Base - main (#24169319599)
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