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

kubeflow / tf-operator / 1921
71%

Build:
DEFAULT BRANCH: master
Ran 01 Sep 2018 05:24AM UTC
Jobs 3
Files 8
Run time 17min
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

01 Sep 2018 05:19AM UTC coverage: 61.009% (+2.8%) from 58.242%
1921

push

travis-ci

k8s-ci-robot
If a TFJob spec is invalid mark the job as failed with an appropriate condition. (#815)

* If a TFJob spec is invalid (e.g. can't be marshaled to TFJob YAML) we
  want to update the TFJob status to indicate it failed.

* We need to use the REST API to update the TFJob status because we won't
  be able to deserialize the json to TFJob.

* Related to #755

* I created invalid-tfjob.jsonnet which can be used in an E2E test but
  I haven't included the E2E test in this PR.

* I tested it manually and got the following result

apiVersion: kubeflow.org/v1alpha2
kind: TFJob
metadata:
  clusterName: ""
  creationTimestamp: 2018-08-31T23:37:14Z
  generation: 1
  labels:
    app.kubernetes.io/deploy-manager: ksonnet
    ksonnet.io/component: invalid-tfjob
  name: invalid-tfjob
  namespace: kubeflow
  resourceVersion: "1826961"
  selfLink: /apis/kubeflow.org/v1alpha2/namespaces/kubeflow/tfjobs/invalid-tfjob
  uid: ca7b4b02-ad76-11e8-be57-42010a8e0084
spec:
  notTheActualField:
    Ps:
      replicas: 2
      restartPolicy: Never
      template:
        spec:
          containers:
          - image: busybox
            name: tensorflow
    Worker:
      replicas: 4
      restartPolicy: Never
      template:
        spec:
          containers:
          - image: busybox
            name: tensorflow
status:
  conditions:
  - lastTransitionTime: 2018-08-31T23:37:14Z
    lastUpdateTime: 2018-08-31T23:37:14Z
    message: 'Failed to marshal the object to TFJob; the spec is invalid: Failed to
      marshal the object to TFJob'
    reason: FailedInvalidTFJobSpec
    status: "True"
    type: Failed
  tfReplicaStatuses: null

* Add an E2E test; test_runner.py was getting overly complicated so I created
  a new main file to run the test and just call methods in test_runner.py as
  needed.

266 of 436 relevant lines covered (61.01%)

19.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1921.1 01 Sep 2018 05:38AM UTC 0
56.86
Travis Job 1921.1
2 1921.2 01 Sep 2018 05:39AM UTC 0
56.93
Travis Job 1921.2
3 1921.3 01 Sep 2018 05:24AM UTC 0
61.65
Travis Job 1921.3
Source Files on build 1921
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1921
  • 454c5c1a on github
  • Prev Build on master (#1911)
  • Next Build on master (#1924)
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