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

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

Build:
Build:
LAST BUILD BRANCH: stable
DEFAULT BRANCH: main
Ran 07 Apr 2026 07:59AM 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 07:55AM UTC coverage: 55.062% (+0.07%) from 54.988%
24070722781

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

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

70 existing lines in 1 file now uncovered.

1675 of 3042 relevant lines covered (55.06%)

0.65 hits per line

Coverage Regressions

Lines Coverage ∆ File
70
64.59
0.35% pkg/rhai/progression/progression.go
Jobs
ID Job ID Ran Files Coverage
1 24070722781.1 07 Apr 2026 07:58AM UTC 32
55.06
GitHub Action Run
Source Files on build 24070722781
  • 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