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

opendatahub-io / trainer / 24092326438
55%
main: 55%

Build:
Build:
LAST BUILD BRANCH: stable
DEFAULT BRANCH: main
Ran 07 Apr 2026 04:28PM UTC
Jobs 1
Files 32
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

07 Apr 2026 01:01PM UTC coverage: 55.21% (+0.2%) from 54.988%
24092326438

push

github

abhijeet-dhumal
Sanitize NaN/Infinity in metrics JSON before parsing

Python's json.dumps() allows NaN and Infinity by default, but these
are not valid JSON per the spec. When training metrics contain these
values (e.g., grad_norm when loss=0, eval_loss with bf16 on ROCm),
Go's json.Unmarshal fails, causing the operator to never capture
training progress.

Add sanitizeJSON() to replace NaN/Infinity with null before parsing
in both PollTrainingProgress and CaptureMetricsFromTerminationMessage.
The regex patterns are anchored to trailing JSON delimiters to avoid
corrupting string values.

Ref: RHOAIENG-56898

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

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

1685 of 3052 relevant lines covered (55.21%)

0.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24092326438.1 07 Apr 2026 04:28PM UTC 32
55.21
GitHub Action Run
Source Files on build 24092326438
  • Tree
  • List 32
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a4e5b5a8 on github
  • Prev Build on main (#23903097620)
  • Next Build on stable (#24252917087)
  • Delete
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