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

kubeflow / trainer / 30268547324
68%
master: 68%

Build:
Build:
LAST BUILD BRANCH: fix/validate-numnodes-numprocpernode
DEFAULT BRANCH: master
Ran 27 Jul 2026 01:16PM UTC
Jobs 1
Files 42
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

27 Jul 2026 01:02PM UTC coverage: 68.256%. Remained the same
30268547324

Pull #3809

github

sanskar-singh-2403
fix(api): reject zero and negative numNodes and numProcPerNode

TrainJob.Spec.Trainer.NumNodes and NumProcPerNode had no lower-bound
validation, so values like numNodes: 0 or numProcPerNode: -5 were
accepted at every layer (CRD schema, validating webhook, runtime
plugins). The bad values then propagated into the pod spec, e.g. the
Torch plugin rendered PET_NPROC_PER_NODE=-5 and set the trainer PodSet
count to 0, failing at pod runtime instead of at admission.

Add +kubebuilder:validation:Minimum=1 to both fields and regenerate the
CRDs so the API server rejects non-positive values at admission. This
mirrors the FluxMLPolicySource.NumProcPerNode contract (self >= 1) and
covers all runtimes at once (Torch, PlainML, JAX, XGBoost, MPI).

A pre-existing Flux numProcPerNode < 1 integration case expected a
Forbidden error from the plugin webhook; the value is now rejected
earlier by the CRD schema, so its matcher is updated to Invalid.

Closes #3805

Signed-off-by: Sanskar Singh <sanskarsinghty1234@gmail.com>
Pull Request #3809: fix(api): reject zero and negative numNodes and numProcPerNode

2563 of 3755 relevant lines covered (68.26%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30268547324.1 27 Jul 2026 01:16PM UTC 42
68.26
GitHub Action Run
Source Files on build 30268547324
  • Tree
  • List 42
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3809
  • PR Base - master (#30209004604)
  • 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