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

Integrate with Prow for Continuous Testing #46

Closed
jlewi opened this issue Oct 9, 2017 · 14 comments
Closed

Integrate with Prow for Continuous Testing #46

jlewi opened this issue Oct 9, 2017 · 14 comments

Comments

@jlewi
Copy link
Contributor

jlewi commented Oct 9, 2017

We would like to integrate with Prow, K8s, test infra to provide continuous testing.

After some initial discussion with @foxish and @krzyzacy the current plan is to have 2 prow jobs;

  • First job will checkout an build a container containing the CRD and E2E tests.
  • Second job will install the CRD and run the E2E tests.

The current plan is to not rely on helm test but just to write go tests as necessary.

First step is probably to create a prow job to build and push the Docker image.

Remaining Issues Blocking This Issue

@jlewi
Copy link
Contributor Author

jlewi commented Oct 13, 2017

Initial ProwJobs were defined in kubernetes/test-infra/pull/4951.

Next steps

  • Configure mlkube.io to send webhooks to Prow so that we trigger Pre/Postsubmits.
  • Actually bring up a GKE cluster and deploy the CRD as part of the test.

@jlewi
Copy link
Contributor Author

jlewi commented Oct 17, 2017

Status

  • A complete E2E test was submitted in E2E test for the CRD #49
  • Prow is running pre & post submit prow jobs
  • Periodic jobs don't appear to be running
  • No results are showing up in the Test Grid
  • K8s chatbot can't update test status on PRs; waiting on owner of chatbot account to accept invite to be an admin of the mlkube.io repository
  • Need to add repository to the PR dashboard instructions

@krzyzacy
Copy link

the periodic job was keep failing without logs - http://prow.k8s.io/?type=periodic&job=mlkube-build-periodic, I'll retrigger and see what is going on

pr/postsubmit jobs probably need a different log path in testgrid

@krzyzacy
Copy link

INFO:root:Image info:
{
  "image": "gcr.io/mlkube-testing/builder:v20171017-98ba4b8-dirty"
}
INFO:root:Environment variables REPO_OWNER and REPO_NAME not set; not checking out code.
Traceback (most recent call last):
  File "/workspace/bootstrap.py", line 118, in <module>
    main()
  File "/workspace/bootstrap.py", line 110, in main
    src_dir, sha = clone_repo()
  File "/workspace/bootstrap.py", line 64, in clone_repo
    raise ValueError("No code found at %s", dest)
ValueError: ('No code found at %s', '/go/src/github.com/jlewi/mlkube.io')

@jlewi
Copy link
Contributor Author

jlewi commented Oct 18, 2017

@krzyzacy ; thanks. I'll put together a fix for the periodic issue.

@jlewi
Copy link
Contributor Author

jlewi commented Oct 18, 2017

#56 hopefully fixes the periodic test; should run every 8 hours so should know tomorrow morning.

@jlewi
Copy link
Contributor Author

jlewi commented Oct 18, 2017

@krzyzacy My fix for the periodic jobs doesn't appear to have worked. Could you check the logs or tell me how I can check them?

@krzyzacy
Copy link

the job comes from http://prow.k8s.io/?job=mlkube-build-periodic, but since it failed early on, it did not upload any logs :-( and the failing pod will be deleted within next hour.. You can try click rerun and run the kubectl command it pops up. (I'll retrigger and check the log)

@jlewi
Copy link
Contributor Author

jlewi commented Oct 18, 2017

@krzyzacy Thanks; I was looking at the wrong tab; http://prow.k8s.io/?repo=jlewi%2Fmlkube.io. I realize now periodic jobs don't specify the repository so they wouldn't show up under the repository tab.

Here's the error; another bug on my end.

Traceback (most recent call last):
  File "/workspace/bootstrap.py", line 110, in <module>
    main()
  File "/workspace/bootstrap.py", line 106, in main
    run(["python", runner, "--src_dir=" + src_dir, "--sha=" + sha])
TypeError: cannot concatenate 'str' and 'NoneType' objects

@jlewi
Copy link
Contributor Author

jlewi commented Oct 18, 2017

k8s-bot integration is now working; see #50

@jlewi
Copy link
Contributor Author

jlewi commented Oct 18, 2017

Filed #59 to fix an issue with presubmits.

@jlewi
Copy link
Contributor Author

jlewi commented Oct 19, 2017

#59 is fixed

Periodic jobs are fixed. http://prow.k8s.io/?job=mlkube-build-periodic

@jlewi
Copy link
Contributor Author

jlewi commented Oct 23, 2017

Results are showing up in testgrid for postsubmit and periodic jobs but not presubmit jobs.

Filed #75

@jlewi
Copy link
Contributor Author

jlewi commented Nov 2, 2017

All blocking issues have been fixed. Prow integration is all setup.

@jlewi jlewi closed this as completed Nov 2, 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

No branches or pull requests

2 participants