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

opendatahub-io / trainer / 24082207630
55%
main: 54%

Build:
Build:
LAST BUILD BRANCH: stable
DEFAULT BRANCH: main
Ran 07 Apr 2026 12:53PM 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 12:48PM UTC coverage: 55.21% (+0.2%) from 54.988%
24082207630

Pull #139

github

sutaakar
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>
Pull Request #139: Sanitize NaN/Infinity in metrics JSON before parsing

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 24082207630.1 07 Apr 2026 12:53PM UTC 32
55.21
GitHub Action Run
Source Files on build 24082207630
  • Tree
  • List 32
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #139
  • PR Base - main (#23903097620)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc