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

kubeflow / trainer / 33005941951
70%

Build:
DEFAULT BRANCH: master
Ran 26 Aug 2026 07:40PM UTC
Jobs 1
Files 43
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

26 Aug 2026 07:35PM UTC coverage: 69.598% (+1.1%) from 68.52%
33005941951

push

github

web-flow
chore(controller): unit test TrainJob deadline reconciliation with a fake clock (#3915)

reconcileDeadline returns a ctrl.Result whose RequeueAfter drives the next
deadline check, but nothing asserted that value. The integration tests poll
with Eventually/Consistently and only observe the resulting conditions, so
the requeue arithmetic, the one-second floor, the zero start time guard and
the resume-transition start time were all uncovered.

They were also not assertable, because reconcileDeadline read the wall clock
directly. Give TrainJobReconciler a clock.PassiveClock, defaulted to
clock.RealClock in the constructor, so tests can substitute a fake one and
compare the result exactly. This mirrors what TrainJobDefaulter already does
in pkg/webhooks. time.Until is replaced by deadline.Sub(now) so both reads
come from the same source.

Behaviour is unchanged with a real clock.

Fixes #3914


Assisted-by: Claude Opus 5

Signed-off-by: sumedh charjan <sumedhcharjan321@gmail.com>

2 of 3 new or added lines in 1 file covered. (66.67%)

2667 of 3832 relevant lines covered (69.6%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
23.2
23.2% pkg/controller/trainjob_controller.go
Jobs
ID Job ID Ran Files Coverage
1 33005941951.1 26 Aug 2026 07:40PM UTC 43
69.6
GitHub Action Run
Source Files on build 33005941951
  • Tree
  • List 43
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ef20a3bf on github
  • Prev Build on master (#33003377893)
  • Next Build on master (#33006312598)
  • 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