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

added prow job for depstat #22137

Merged
merged 12 commits into from
May 14, 2021
28 changes: 28 additions & 0 deletions config/jobs/kubernetes/sig-arch/kubernetes-depstat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
presubmits:
kubernetes/kubernetes:
- name: check-dependency-stats
decorate: true
always_run: false
optional: true
spec:
containers:
- image: golang
command:
- /bin/bash
args:
- -c
- |
set -euo; \
mkdir -p "${ARTIFACTS}"; \
pushd "$ARTIFACTS"; \
go install github.com/kubernetes-sigs/depstat@latest; \
popd; \
cd /go/src/k8s.io/kubernetes; \
depstat stats --json > "${ARTIFACTS}/stats.json"; \
git checkout -b base "${PULL_BASE_SHA}"; \
depstat stats --json > "${ARTIFACTS}/stats-base.json"; \
diff -s --ignore-all-space "${ARTIFACTS}"/stats-base.json "${ARTIFACTS}"/stats.json || true;
annotations:
testgrid-create-test-group: "true"
testgrid-dashboards: sig-testing-misc
description: Generates dependency statistics by running depstat for base and current PR