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

hyperledger / fabric-x-committer / 24174559968 / 2
91%
main: 92%

Build:
Build:
LAST BUILD BRANCH: admin-db-init
DEFAULT BRANCH: main
Ran 09 Apr 2026 05:49AM UTC
Files 81
Run time 3s
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 05:43AM UTC coverage: 76.201% (-0.03%) from 76.235%
24174559968.2

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

4489 of 5891 relevant lines covered (76.2%)

1108.74 hits per line

Source Files on job unit-test - 24174559968.2
  • Tree
  • List 81
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24174559968
  • 44a5bd30 on github
  • Prev Job for on dedup-templ (#24169319599.2)
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