This collects test results scattered across a variety of GCS buckets, stores them in a local SQLite database, and outputs newline-delimited JSON files for import into BigQuery.
Results are stored in the k8s-gubernator:build BigQuery dataset, which is publicly accessible.
Kettle runs as a pod in the k8s-gubernator/g8r
cluster. To drop into it's context, run <root>$ make -C kettle get-cluster-credentials
If you change:
buckets.yaml
: do nothing, it's automatically fetched from GitHubdeployment.yaml
: deploy withmake push deploy
- any code: Run from root deploy with
make -C kettle push update
, revert withmake -C kettle rollback
if it failspush
builds the continer image and pushes it to the image registryupdate
sets the image of the existing kettle Pod which triggers a restart cycle- this will build the image to Pantheon Container Registry
- See Makefile for details
- If you make local changes in the branch prior to
make push/update
the image will be uploaded with-dirty
in the tag. Keep this in mind when seeting the image. If you see a Pod in aImagePullBackOff
loop, there is likely an issue whenkubectl image set
was run, where the image does not exist in the specified location.
eg: by looking at the logs
make get-cluster-credentials
kubectl logs -l app=kettle
# ...
==== 2018-07-06 08:19:05 PDT ========================================
PULLED 174
ACK irrelevant 172
EXTEND-ACK 2
gs://kubernetes-jenkins/pr-logs/pull/kubeflow_kubeflow/1136/kubeflow-presubmit/2385 True True 2018-07-06 07:51:49 PDT FAILED
gs://kubernetes-jenkins/logs/ci-cri-containerd-e2e-ubuntu-gce/5742 True True 2018-07-06 07:44:17 PDT FAILURE
ACK "finished.json" 2
Downloading JUnit artifacts.
Alternatively, navigate to Gubernator BigQuery page (click on “all” on the left and “Details”) and you can see a table showing last date/time the metrics were collected.
kubectl delete pod -l app=kettle
kubectl rollout status deployment/kettle # monitor pod restart status
kubectl get pod -l app=kettle # should show a new pod name
You can watch the pod startup and collect data from various GCS buckets by looking at its logs
kubectl logs -f $(kubectl get pod -l app=kettle -oname)
It might take a couple of hours to be fully functional and start updating BigQuery. You can always go back to the Gubernator BigQuery page and check to see if data collection has resumed. Backfill should happen automatically.
To add fields to the BQ table, Visit the k8s-gubernator:build BigQuery dataset and Select the table (Ex. Build > All). Schema -> Edit Schema -> Add field. As well as update schema.json
To add a new GCS bucket to Kettle, simply update buckets.yaml in master
, it will be auto pulled by Kettle on the next cycle.
gs://<bucket path>: #bucket url
contact: "username" #Git Hub Username
prefix: "abc:" #the identifier prefixed to jobs from this bucket (ends in :).
sequential: (bool) #an optional boolean that indicates whether test runs in this
# bucket are numbered sequentially
exclude_jobs: # list of jobs to explicitly exclude from kettle data collection
- job_name1
- job_name2
A postsubmit job runs that pushes Kettle on changes.
- Occasionally data from Kettle stops updating, we suspect this is due to a transient hang when contacting GCS (#8800). If this happens, restart kettle