Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python lint check to travis and fix python lint issues #91

Merged
merged 15 commits into from
Oct 27, 2017

Conversation

jlewi
Copy link
Contributor

@jlewi jlewi commented Oct 25, 2017

@jlewi jlewi changed the title Fix travis for presubmits. Add python lint check to travis and fix python lint issues Oct 26, 2017
@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

/test all

@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

@krzyzacy The prow job is reported as failed but the data in Gubernator indicates success. How does Prow determine success? Is it determined by the exit code of the prow job?

I will try fixing #82 so that we get actual logs. My guess is there's a problem with running the lint check I added in this PR.

@krzyzacy
Copy link

/retest

@krzyzacy
Copy link

the build log is missing though, that might be the failure

@krzyzacy
Copy link

2017/10/26 20:17:51 Step 'helm install --set image=gcr.io/mlkube-testing/tf_operator:v20171026-d1ec26d /go/src/github.com/tensorflow/k8s/tf-job-operator-chart --namespace default --name dnz --wait' finished in 6.647918167s
2017/10/26 20:17:51 Running: helm test dnz
2017/10/26 20:20:46 RUNNING: dnz-tfjob-test-risxyt
PASSED: dnz-tfjob-test-risxyt
2017/10/26 20:20:46 Step 'helm test dnz' finished in 2m55.071202959s
2017/10/26 20:20:46 Running: helm delete dnz --purge
2017/10/26 20:20:49 release "dnz" deleted
2017/10/26 20:20:49 Step 'helm delete dnz --purge' finished in 3.672653442s
2017/10/26 20:20:49 Saved XML output to /tmp/tmpTfCrdTestkPhSuN/junit_01.xml.
INFO:root:Running: lint.sh
INFO:root:Uploading file /tmp/tmpTfCrdTestkPhSuN/build_info.yaml.
INFO:root:Uploading file /tmp/tmpTfCrdTestkPhSuN/junit_01.xml.
INFO:googleapiclient.discovery:URL being requested: DELETE https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/clusters/v20171026-d5bb?alt=json
INFO:root:Response {u'status': u'RUNNING', u'name': u'operation-1509049250665-298dbe8b', u'zone': u'us-central1-f', u'startTime': u'2017-10-26T20:20:50.66589927Z', u'targetLink': u'https://container.googleapis.com/v1/projects/323197036272/zones/us-central1-f/clusters/v20171026-d5bb', u'operationType': u'DELETE_CLUSTER', u'selfLink': u'https://container.googleapis.com/v1/projects/323197036272/zones/us-central1-f/operations/operation-1509049250665-298dbe8b'}
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:googleapiclient.discovery:URL being requested: GET https://container.googleapis.com/v1/projects/mlkube-testing/zones/us-central1-f/operations/operation-1509049250665-298dbe8b?alt=json
INFO:root:Cluster deletion done.
 {u'status': u'DONE', u'name': u'operation-1509049250665-298dbe8b', u'zone': u'us-central1-f', u'startTime': u'2017-10-26T20:20:50.66589927Z', u'targetLink': u'https://container.googleapis.com/v1/projects/323197036272/zones/us-central1-f/clusters/v20171026-d5bb', u'operationType': u'DELETE_CLUSTER', u'endTime': u'2017-10-26T20:22:12.864525794Z', u'selfLink': u'https://container.googleapis.com/v1/projects/323197036272/zones/us-central1-f/operations/operation-1509049250665-298dbe8b'}
Traceback (most recent call last):
  File "/go/src/github.com/tensorflow/k8s/test-infra/runner.py", line 540, in <module>
    main()
  File "/go/src/github.com/tensorflow/k8s/test-infra/runner.py", line 528, in main
    lint_success = run_lint(args.src_dir)
  File "/go/src/github.com/tensorflow/k8s/test-infra/runner.py", line 424, in run_lint
    run(["lint.sh"], cwd=src_dir)
  File "/go/src/github.com/tensorflow/k8s/test-infra/runner.py", line 63, in run
    subprocess.check_call(command, cwd=cwd)
  File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/workspace/bootstrap.py", line 145, in <module>
d1ec26d7ec4bad894f1b6a87e8ac8a9ec165c9a5

    main()
  File "/workspace/bootstrap.py", line 140, in main
    run(["python", runner, "--src_dir=" + src_dir, "--sha=" + sha])
  File "/workspace/bootstrap.py", line 39, in run
    subprocess.check_call(command, cwd=cwd)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['python', '/go/src/github.com/tensorflow/k8s/test-infra/runner.py', '--src_dir=/go/src/github.com/tensorflow/k8s', u'--sha=d1ec26d7ec4bad894f1b6a87e8ac8a9ec165c9a5\n']' returned non-zero exit status 1

@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

@krzyzacy Thanks.

@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

/test tf-k8s-presubmit

@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

/test all

@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

/test all

5 similar comments
@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

/test all

@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

/test all

@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

/test all

@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

/test all

@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

/test all

@jlewi
Copy link
Contributor Author

jlewi commented Oct 26, 2017

/test all

@jlewi jlewi merged commit 16fc3d0 into kubeflow:master Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runner.py needs to create build-log.txt with stdout/stderr of test
2 participants