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

kubeflow / tf-operator / 1165
71%

Build:
DEFAULT BRANCH: master
Ran 26 Mar 2018 01:15AM UTC
Jobs 3
Files 10
Run time 6min
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

pending completion
1165

push

travis-ci

k8s-ci-robot
Fix bug with jobs not being marked as completed. (#501)

* Fix bug with jobs not being marked as completed.

* A bug was introduced with getting the replica status in #344 which
switched to creating pods directly.

* Our presubmits/postsubmits were failing but this went unnoticed because
the git status check was improperly reported as succeeded.

* The bug is because we try to get the pod status by name but the name
doesn't include the random salt in the pod name.

* The code in question is a legacy of when we were using job controllers and
we first got the status of the job controller. We incorrectly changed that
code to get the pod. The correct thing is to just list pods by label; we
already do that in the code below so we just need to delete some code.

* Don't create any resources if the DeletionTimestamp is set.
  Creating resources at this point would end blocking deletion of the object
  because the controller would create resources while we are trying to delete
  them.

* Use logrus in controller.go, trainer.go, and replicas.go to log
  with fields providing information about the job and repliac.
  This makes it easy to filter logs for a particular job.

* Use logrus to log the name of the job in a field.

* Checking the deletiontime stamp doesn't appear to be sufficient.

Use the Phase to determine whether we should create resources.

* Run gofmt.

* * Reset the rate limiter after every successful sync.
* Otherwise the ratelimiter will end up delaying processing subsequent
  events which isn't what we want.

* Run goimports to fix lint issues.

* * Reconcile needs to update the TFJob stored in TrainingJob. This ensures
  TrainingJob has an up to date representation of the job.

* Otherwise changes made to the spec won't be available to TrainingJob. For
  example, if the job is deleted by the user, the deletion timestamp will
  be set. But if we don't update the TFJob stored in TrainingJob this
  change won't be propogated.

* * TrainingJob.up... (continued)

113 of 113 new or added lines in 3 files covered. (100.0%)

470 of 1037 relevant lines covered (45.32%)

5.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1165.1 26 Mar 2018 01:21AM UTC 0
47.06
Travis Job 1165.1
2 1165.2 26 Mar 2018 01:21AM UTC 0
47.25
Travis Job 1165.2
3 1165.3 26 Mar 2018 01:15AM UTC 0
61.65
Travis Job 1165.3
Source Files on build 1165
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1165
  • b72f47e4 on github
  • Prev Build on master (#1140)
  • Next Build on master (#1176)
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