Skip to content

Commit

Permalink
Merge pull request #28755 from saschagrunert/cri-o-verify-job
Browse files Browse the repository at this point in the history
Add CRI-O job verification presubmit
  • Loading branch information
k8s-ci-robot authored Feb 15, 2023
2 parents ee136bf + 5221a41 commit 510886f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
21 changes: 21 additions & 0 deletions config/jobs/kubernetes/test-infra/test-infra-presubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,24 @@ presubmits:
annotations:
testgrid-dashboards: presubmits-test-infra
testgrid-tab-name: verify-test
- name: pull-test-infra-verify-cri-o
branches:
- master
run_if_changed: '^jobs/e2e_node/crio/'
decorate: true
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230207-192d5afee3-test-infra
command:
- runner.sh
args:
- make
- verify
- -C
- jobs/e2e_node/crio
annotations:
testgrid-dashboards: presubmits-test-infra
testgrid-tab-name: verify-cri-o
4 changes: 4 additions & 0 deletions jobs/e2e_node/crio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@

all:
templates/generate

.PHONY: verify
verify: all
./tree_status
13 changes: 13 additions & 0 deletions jobs/e2e_node/crio/tree_status
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e

STATUS=$(git status --porcelain)
if [[ -z $STATUS ]]; then
echo "tree is clean"
else
echo "tree is dirty, please commit all changes"
echo ""
echo "$STATUS"
git diff
exit 1
fi

0 comments on commit 510886f

Please sign in to comment.