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

kubeflow / trainer / 38743319496
75%

Build:
DEFAULT BRANCH: master
Ran 15 Oct 2026 01:36PM UTC
Jobs 1
Files 46
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

15 Oct 2026 01:30PM UTC coverage: 74.223% (+1.0%) from 73.227%
38743319496

push

github

web-flow
chore(runtimes): add ValidateObjects test coverage for TrainingRuntime and ClusterTrainingRuntime (#3892)

* test(runtime): add test coverage for ValidateObjects methods

Add comprehensive test coverage for TrainingRuntime.ValidateObjects()
and ClusterTrainingRuntime.ValidateObjects() methods which previously
had zero test coverage.

Tests cover existing behavior only:
- Runtime exists and is valid (success path)
- Runtime does not exist (returns field error)
- Runtime in different namespace (returns field error for TrainingRuntime)
- Deprecated runtime (returns warning for ClusterTrainingRuntime)

All tests verify the current implementation without proposing new
validation rules.

Signed-off-by: Prateek Rai <prateekrai903@gmail.com>

* chore(test): address PR review comments for ValidateObjects tests

- Move ValidateObjects tests to per-type test files (trainingruntime_test.go and clustertrainingruntime_test.go) instead of standalone validateobjects_test.go
- Use cmp.Diff pattern for assertions instead of manual field error counting
- Remove duplicate test case for runtime in different namespace
- Simplify warnings handling by using []string type conversion

This addresses review comments from @robert-bell to improve test organization and consistency with existing test patterns in the codebase.

Signed-off-by: Prateek Rai <prateekrai903@gmail.com>

* Update pkg/runtime/core/trainingruntime_test.go

Co-authored-by: Andrey Velichkevich <andrey.velichkevich@gmail.com>
Signed-off-by: Prateek Rai <prateekrai903@gmail.com>

* Update pkg/runtime/core/trainingruntime_test.go

Co-authored-by: Andrey Velichkevich <andrey.velichkevich@gmail.com>
Signed-off-by: Prateek Rai <prateekrai903@gmail.com>

* Update pkg/runtime/core/trainingruntime_test.go

Co-authored-by: Andrey Velichkevich <andrey.velichkevich@gmail.com>
Signed-off-by: Prateek Rai <prateekrai903@gmail.com>

* Update pkg/runtime/core/trainingruntime_test.go

Co-authored-by: Andrey Velichkevich <andrey... (continued)

3202 of 4314 relevant lines covered (74.22%)

0.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38743319496.1 15 Oct 2026 01:35PM UTC 46
74.22
GitHub Action Run
Source Files on build 38743319496
  • Tree
  • List 46
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1bbebb15 on github
  • Prev Build on master (#38738721619)
  • Next Build on master (#38748911259)
  • 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