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

hyperledger / fabric-x-common / 23434305087
82%

Build:
DEFAULT BRANCH: main
Ran 23 Mar 2026 11:10AM UTC
Jobs 1
Files 181
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

23 Mar 2026 11:08AM UTC coverage: 82.222% (+0.002%) from 82.22%
23434305087

push

github

web-flow
[grpc logger] reduce GRPC log level by default for tests (#95)

#### Type of change

- Bug fix
- Test update

#### Description

- This PR adds `-race` flag for the tests and fix the race conditions
- Fix minor race condition in test
- Use `gotestsum` to shorten the logs
- Reduce GRPC log level by default using environment variable instead of
manually

**Root Cause Analysis: Two Data Races Fixed by This PR**

**1. Test Data Race in `TestLoadPrivateKey_BadPEM`**
- **Cause:** Multiple parallel subtests shared a parent-scope `err`
variable
- **Manifestation:** Write-write and read-write conflicts at lines 86-87
- **Fix:** Changed `_, err =` to `_, loadErr :=` to create local
variable per subtest

**2. gRPC Logger Initialization Race**
- **Cause:** `grpclog.SetLoggerV2()` is not thread-safe; multiple
goroutines could call it concurrently during package initialization
- **Manifestation:** Concurrent writes to gRPC's global logger state
when multiple packages import flogging simultaneously

#### Related issues

- https://github.com/hyperledger/fabric-x-committer/issues/448

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

8 of 8 new or added lines in 5 files covered. (100.0%)

14606 of 17764 relevant lines covered (82.22%)

0.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23434305087.1 23 Mar 2026 11:10AM UTC 181
82.22
GitHub Action Run
Source Files on build 23434305087
  • Tree
  • List 181
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8302dfcb on github
  • Prev Build on main (#23400179155)
  • Next Build on main (#23531958197)
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