Skip to content

Commit 03c7bdc

Browse files
author
Kenichi Omichi
committed
Enable import-boss check for integration test
Integration tests imported e2e test code and the dependency made two drawbacks: - Hard to move test/e2e/framework into staging (kubernetes#74352) - Need to run integration tests always even if PRs are just changing e2e test code This enables import-boss check for blocking such dependency.
1 parent 933c303 commit 03c7bdc

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

hack/verify-import-boss.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ kube::golang::setup_env
3030

3131
make -C "${KUBE_ROOT}" WHAT=vendor/k8s.io/code-generator/cmd/import-boss
3232

33-
packages=("k8s.io/kubernetes/pkg/..." "k8s.io/kubernetes/cmd/..." "k8s.io/kubernetes/plugin/..." "k8s.io/kubernetes/test/e2e/framework/...")
33+
packages=(
34+
"k8s.io/kubernetes/pkg/..."
35+
"k8s.io/kubernetes/cmd/..."
36+
"k8s.io/kubernetes/plugin/..."
37+
"k8s.io/kubernetes/test/e2e/framework/..."
38+
"k8s.io/kubernetes/test/integration/..."
39+
)
3440
for d in staging/src/k8s.io/*/; do
3541
if [ -d "$d" ]; then
3642
packages+=("./vendor/${d#"staging/src/"}...")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"Rules": [
3+
{
4+
"SelectorRegexp": "k8s[.]io/kubernetes/test/e2e",
5+
"AllowedPrefixes": []
6+
}
7+
]
8+
}

0 commit comments

Comments
 (0)