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

kubeflow / sdk / 29604168366
84%

Build:
DEFAULT BRANCH: main
Ran 17 Jul 2026 06:33PM UTC
Jobs 2
Files 94
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

17 Jul 2026 06:32PM UTC coverage: 84.116% (+0.03%) from 84.091%
29604168366

push

github

web-flow
fix(trainer): validate polling_interval in wait_for_job_status (#554)

* fix(trainer): validate polling_interval in wait_for_job_status

Adds a ValueError guard in TrainerClient.wait_for_job_status() to reject non-positive polling_interval values before delegating to the backend. Previously this could cause a CPU busy-loop (polling_interval=0) or a cryptic stdlib error (negative values). Fixes #550

Signed-off-by: HarshPopat23 <musichk61@gmail.com>

* Potential fix for pull request finding add proper messages

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: HarshPopat23 <musichk61@gmail.com>

* test(trainer): update polling_interval test assertions to match new error messages

Signed-off-by: HarshPopat23 <musichk61@gmail.com>

* refactor(common): extract polling_interval/timeout validation to shared utils

Move polling_interval and timeout validation into a shared
common_utils.validate_wait_intervals() function, used by both
TrainerClient and OptimizerClient. Also renamed test function per
review feedback and fixed missing newline at end of test file.

Signed-off-by: HarshPopat23 <musichk61@gmail.com>

* Fix the formatting

Signed-off-by: HarshPopat23 <musichk61@gmail.com>

* fix: add missing newline at end of files

Signed-off-by: HarshPopat23 <musichk61@gmail.com>

* refactor(common): rename validate_wait_intervals to validate_wait_for_job_status

Per review feedback from @andreyvelich and @Goku2099, rename the shared
validation helper for clarity.

Signed-off-by: HarshPopat23 <musichk61@gmail.com>

* test(common): refactor validate_wait_for_job_status test to use TestCase pattern

Per review feedback from @andreyvelich:
- Refactor kubeflow/common/utils_test.py to use the repo's TestCase
  dataclass pattern for parametrized tests
- Remove redundant test_wait_for_job_status from trainer_client_test.py
  since validation logic is already covered in common/utils_test.py

Signed-off-by: HarshPopa... (continued)

21 of 23 new or added lines in 4 files covered. (91.3%)

3 existing lines in 2 files now uncovered.

5407 of 6428 relevant lines covered (84.12%)

1.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
60.0
-0.61% kubeflow/optimizer/api/optimizer_client.py
1
67.44
-0.85% kubeflow/trainer/api/trainer_client.py

Coverage Regressions

Lines Coverage ∆ File
2
60.0
-0.61% kubeflow/optimizer/api/optimizer_client.py
1
67.44
-0.85% kubeflow/trainer/api/trainer_client.py
Jobs
ID Job ID Ran Files Coverage
1 python-3.10 - 29604168366.1 17 Jul 2026 06:33PM UTC 94
84.12
GitHub Action Run
2 python-3.11 - 29604168366.2 17 Jul 2026 06:33PM UTC 94
84.12
GitHub Action Run
Source Files on build 29604168366
  • Tree
  • List 94
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29604168366
  • 35f274cf on github
  • Prev Build on main (#29588350252)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc