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

kubeflow / trainer / 37816975342
72%

Build:
DEFAULT BRANCH: master
Ran 08 Oct 2026 05:33PM 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

08 Oct 2026 05:29PM UTC coverage: 72.192%. Remained the same
37816975342

push

github

web-flow
fix(runtimes): correct runtimeRef field path casing in ClusterTrainingRuntime error messages (#4194)

* fix(runtimes): correct runtimeRef field path casing in ClusterTrainingRuntime error messages

ValidateObjects in pkg/runtime/core/clustertrainingruntime.go builds
validation errors with field.NewPath("spec", "RuntimeRef") — capital R.
The actual JSON field name in the CRD spec is runtimeRef (lowercase r),
which is what TrainingRuntime.ValidateObjects already uses.

A user who references a missing or invalid ClusterTrainingRuntime gets
an error pointing at spec.RuntimeRef, which does not exist in the spec.
Tooling that maps field errors back to the source object (SDKs, UIs,
admission webhooks) will fail to match it.

Fix the three field.NewPath calls at lines 106, 115 and 119 to use
"runtimeRef" and add TestClusterTrainingRuntimeValidateObjectsFieldPath
to confirm the corrected path in both the missing-runtime and
invalid-snapshot cases.

Note: PR #3892 adds tests for ValidateObjects and currently expects the
old capital-R spelling. That expectation will need updating once this
fix lands.

Signed-off-by: Nikhil Bansiwal <nikhilbansiwal3495@gmail.com>

* test(webhooks): update TestValidateCreate to expect lowercase runtimeRef

The webhook test for the "unsupported runtime" case expected
spec.RuntimeRef (capital R), which matched the old incorrect spelling
in ClusterTrainingRuntime.ValidateObjects. Update it to expect
spec.runtimeRef to match the fix in this PR.

Signed-off-by: Nikhil Bansiwal <nikhilbansiwal3495@gmail.com>

* test(runtimes): remove redundant ValidateObjects field path test

Remove TestClusterTrainingRuntimeValidateObjectsFieldPath from
clustertrainingruntime_test.go. The field path is already covered
by TestValidateCreate/unsupported_runtime in trainjob_webhook_test.go,
which was updated in the previous commit to expect the corrected
spec.runtimeRef spelling.

Suggested by andreyvelich in PR review.

Signed-off-by: Nikhil Bansiwal <ni... (continued)

0 of 3 new or added lines in 1 file covered. (0.0%)

3336 of 4621 relevant lines covered (72.19%)

0.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
28.99
0.0% pkg/runtime/core/clustertrainingruntime.go
Jobs
ID Job ID Ran Files Coverage
1 37816975342.1 08 Oct 2026 05:33PM UTC 46
72.19
GitHub Action Run
Source Files on build 37816975342
  • Tree
  • List 46
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e823b190 on github
  • Prev Build on master (#37692903173)
  • 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