commit | 23ad28bcab6a4158b5124a527867ae5124a97d25 | [log] [tgz] |
---|---|---|
author | Brendan Higgins <brendanhiggins@google.com> | Thu Jan 10 15:20:25 2019 -0800 |
committer | Brendan Higgins <brendanhiggins@google.com> | Thu Jan 10 15:20:25 2019 -0800 |
tree | 9c94589b81c2dd6b962c7b9dbd90331399038c6a | |
parent | 647d5ec54af6858612f40cd15e6a46128b000451 [diff] |
Add proper license headers for upstreaming Add missing Apache license headers. Signed-off-by: Brendan Higgins <brendanhiggins@google.com> Change-Id: Ic53d21b8121005037ac5acfde23ddbe23a9b9f44
KUnit is an in-tree unit testing framework for the Linux kernel. In the Linux kernel community, mailing lists are commonly used to propose and discuss patches. In order to foster the utilization of KUnit, we are making a presubmit server for patches on linux kernel mailing lists. Given that we currently have a prowjob image for running KUnit against gerrit repos, Prow is the logical choice for expanding this functionality for the mailing lists. This project will add the ability to trigger presubmit for Linux Kernel Mailing List patches on Prow using KUnit and report back to the mailing lists.
First need:
config.yaml : contains the job configuration for the patches to be run against should be the same as regular kunit except you should specify the mailing list instead of the repo as the key for the job.
service-account.json : need to include service account of gcloud account in secret called ‘service-account’. Needed for uploading to the gcloud bucket. see kunit/prow-presubmit for more details
deployment.yaml : standard barebones prow deployment
service.yaml: exposes external port for smtp server and internal for git. Need to see deployed environment for external ip address assigned. Then by adding an mx record for the ip in your domain's dns configuration, you can send emails to {anyusername}@{yourdomain} and it will arrive at this component.
lkml.yaml: Deploys lkml component. Need to specify repo, branch, and mailing list address associated with the job in config.
crier.yaml: Deploys custom crier component for mail reporting at kunit/test-infra-prow. Need to specify from and to addresses and domain of msa agent. Provide a secret named “smtpsecret” mapping “password” to email password. For gmail, you can setup a custom app password independant of your login / two-factor authentication that will allow you to authenticate over smtp.
First, set up cluster, mx records to forward emails to a specific domain to cluster's smtp load balancer, access to an email account for sending reports back.
If debugging general cluster issues with lkml or crier, you can simply delete the replicaset for the corresponding deployment kubectl delete replicaset lkml-{autocomplete}
to relaunch pods, repulling the latest images from gcr.io/kunit-presubmit.
If debugging lkml specifically, it might be wise to setup to clone a smaller repo if testing job triggering / reporting. For job execution, if lkml can be relied on to keep a valid repo at deployed persistentVolumeClaim, then just deleting the replicaset should be sufficient. Otherwise, you should also recreate the volume.
Sinker automatically clears out stale jobs / pods after a specified interval. You can alternatively manually delete prowjobs and job pods.