Skip to content

Commit

Permalink
Update gubernator unit tests and config
Browse files Browse the repository at this point in the history
  • Loading branch information
fejta committed Jul 6, 2020
1 parent 34e8728 commit f333a00
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
13 changes: 8 additions & 5 deletions gubernator/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,26 @@ jobs:
- ci-kubernetes-e2e-gce-scale-performance
- ci-kubernetes-e2e-gci-gce
- ci-kubernetes-e2e-gci-gce-slow
- ci-kubernetes-e2e-gci-gke
- ci-kubernetes-e2e-gci-gke-slow
- ci-kubernetes-e2e-kops-aws
- ci-kubernetes-integration-master
- ci-kubernetes-kubemark-500-gce
- ci-kubernetes-verify-master
kubernetes-jenkins/pr-logs/directory/:
- pull-kubernetes-bazel-build
- pull-kubernetes-bazel-test
- pull-kubernetes-e2e-aks-engine-azure
- pull-kubernetes-conformance-kind-ga-only-parallel
- pull-kubernetes-dependencies
- pull-kubernetes-dependencies-canary
- pull-kubernetes-e2e-gce
- pull-kubernetes-e2e-gce-100-performance
- pull-kubernetes-e2e-gce-device-plugin-gpu
- pull-kubernetes-e2e-kops-aws
- pull-kubernetes-e2e-gce-ubuntu-containerd
- pull-kubernetes-e2e-kind
- pull-kubernetes-e2e-kind-ipv6
- pull-kubernetes-files-remake
- pull-kubernetes-integration
- pull-kubernetes-kubemark-e2e-gce-big
- pull-kubernetes-node-e2e
- pull-kubernetes-node-e2e-containerd
- pull-kubernetes-typecheck
- pull-kubernetes-verify
recursive_artifacts: false
2 changes: 1 addition & 1 deletion gubernator/test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ webtest
nosegae
pylint==1.6.4
coverage
pyyaml
PyYAML==5.1.1
3 changes: 3 additions & 0 deletions gubernator/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def main(prow_config, prow_job_config, gubernator_config):
for config in configs:
prow_data = yaml.load(open(config))

if not prow_data:
continue

if 'presubmits' in prow_data and 'kubernetes/kubernetes' in prow_data['presubmits']:
for job in prow_data['presubmits']['kubernetes/kubernetes']:
if job.get('always_run'):
Expand Down
2 changes: 1 addition & 1 deletion gubernator/update_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# file to keep it in sync with Prow.

cd "$( dirname "${BASH_SOURCE[0]}" )"
./update_config.py ./../config/prow/config.yaml ./config.yaml
./update_config.py ../config/prow/config.yaml ../config/jobs ./config.yaml

0 comments on commit f333a00

Please sign in to comment.