Change:
What happened: There is to manage import ways under but that doesn't work at our upstream CI. We can enable it by But if doing that, we will face the following error with What you expected to happen: I hope the check is always running to block invalid import ways at upstream CI system. How to reproduce it (as minimally and precisely as possible): As line into arguments.InputDirs of
/sig testing /area e2e-test-framework

Discussion:
"k8s.io/kubernetes/pkg/...", "k8s.io/kubernetes/cmd/...", "k8s.io/kubernetes/plugin/...", <ins> "k8s.io/kubernetes/test/e2e/framework/...", </ins> } pflag.CommandLine.BoolVar(&arguments.IncludeTestFiles, "include-test-files", false, "If true, include *_test.go files.")

"k8s.io/kubernetes/pkg/api/legacyscheme", "k8s.io/kubernetes/pkg/api/service", "k8s.io/kubernetes/pkg/api/v1/pod", <ins> "k8s.io/kubernetes/pkg/api/v1/resource", "k8s.io/kubernetes/pkg/api/v1/service", </ins> "k8s.io/kubernetes/pkg/apis/apps", "k8s.io/kubernetes/pkg/apis/apps/validation", "k8s.io/kubernetes/pkg/apis/autoscaling",

"k8s.io/kubernetes/pkg/apis/storage/v1/util", "k8s.io/kubernetes/pkg/capabilities", "k8s.io/kubernetes/pkg/client/conditions", <ins> "k8s.io/kubernetes/pkg/cloudprovider/providers", </ins> "k8s.io/kubernetes/pkg/controller", "k8s.io/kubernetes/pkg/controller/deployment/util", "k8s.io/kubernetes/pkg/controller/nodelifecycle",

"k8s.io/kubernetes/pkg/controller/util/node", "k8s.io/kubernetes/pkg/controller/volume/persistentvolume/util", "k8s.io/kubernetes/pkg/controller/volume/scheduling", <ins> "k8s.io/kubernetes/pkg/credentialprovider", "k8s.io/kubernetes/pkg/credentialprovider/aws", "k8s.io/kubernetes/pkg/credentialprovider/azure", "k8s.io/kubernetes/pkg/credentialprovider/gcp", "k8s.io/kubernetes/pkg/credentialprovider/secrets", </ins> "k8s.io/kubernetes/pkg/features", "k8s.io/kubernetes/pkg/fieldpath", "k8s.io/kubernetes/pkg/kubectl",

"k8s.io/kubernetes/pkg/kubectl/util/resource", "k8s.io/kubernetes/pkg/kubectl/util/slice", "k8s.io/kubernetes/pkg/kubectl/util/storage", <ins> "k8s.io/kubernetes/pkg/kubelet", </ins> "k8s.io/kubernetes/pkg/kubelet/apis", "k8s.io/kubernetes/pkg/kubelet/apis/config", "k8s.io/kubernetes/pkg/kubelet/apis/stats/v1alpha1", <ins> "k8s.io/kubernetes/pkg/kubelet/cadvisor", "k8s.io/kubernetes/pkg/kubelet/certificate", "k8s.io/kubernetes/pkg/kubelet/certificate/bootstrap", </ins> "k8s.io/kubernetes/pkg/kubelet/checkpoint", "k8s.io/kubernetes/pkg/kubelet/checkpointmanager", "k8s.io/kubernetes/pkg/kubelet/checkpointmanager/checksum", "k8s.io/kubernetes/pkg/kubelet/checkpointmanager/errors", <ins> "k8s.io/kubernetes/pkg/kubelet/cloudresource", "k8s.io/kubernetes/pkg/kubelet/cm", "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager", "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/containermap", "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state", "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/topology", "k8s.io/kubernetes/pkg/kubelet/cm/cpuset", "k8s.io/kubernetes/pkg/kubelet/cm/devicemanager", "k8s.io/kubernetes/pkg/kubelet/cm/devicemanager/checkpoint", "k8s.io/kubernetes/pkg/kubelet/cm/topologymanager", "k8s.io/kubernetes/pkg/kubelet/cm/topologymanager/bitmask", "k8s.io/kubernetes/pkg/kubelet/cm/util", "k8s.io/kubernetes/pkg/kubelet/config", </ins> "k8s.io/kubernetes/pkg/kubelet/configmap", "k8s.io/kubernetes/pkg/kubelet/container", <ins> "k8s.io/kubernetes/pkg/kubelet/dockershim", "k8s.io/kubernetes/pkg/kubelet/dockershim/cm", "k8s.io/kubernetes/pkg/kubelet/dockershim/libdocker", </ins> "k8s.io/kubernetes/pkg/kubelet/dockershim/metrics", <ins> "k8s.io/kubernetes/pkg/kubelet/dockershim/network", "k8s.io/kubernetes/pkg/kubelet/dockershim/network/cni", "k8s.io/kubernetes/pkg/kubelet/dockershim/network/hostport", "k8s.io/kubernetes/pkg/kubelet/dockershim/network/kubenet", "k8s.io/kubernetes/pkg/kubelet/dockershim/network/metrics", "k8s.io/kubernetes/pkg/kubelet/dockershim/remote", "k8s.io/kubernetes/pkg/kubelet/envvars", "k8s.io/kubernetes/pkg/kubelet/eviction", "k8s.io/kubernetes/pkg/kubelet/eviction/api", </ins> "k8s.io/kubernetes/pkg/kubelet/events", <ins> "k8s.io/kubernetes/pkg/kubelet/images", "k8s.io/kubernetes/pkg/kubelet/kubeletconfig", "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/checkpoint", "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/checkpoint/store", "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/configfiles", "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/status", "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/util/codec", "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/util/files", "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/util/log", "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/util/panic", "k8s.io/kubernetes/pkg/kubelet/kuberuntime", "k8s.io/kubernetes/pkg/kubelet/kuberuntime/logs", "k8s.io/kubernetes/pkg/kubelet/leaky", </ins> "k8s.io/kubernetes/pkg/kubelet/lifecycle", <ins> "k8s.io/kubernetes/pkg/kubelet/logs", </ins> "k8s.io/kubernetes/pkg/kubelet/metrics", <ins> "k8s.io/kubernetes/pkg/kubelet/network/dns", "k8s.io/kubernetes/pkg/kubelet/nodelease", "k8s.io/kubernetes/pkg/kubelet/nodestatus", "k8s.io/kubernetes/pkg/kubelet/oom", "k8s.io/kubernetes/pkg/kubelet/pleg", "k8s.io/kubernetes/pkg/kubelet/pluginmanager", "k8s.io/kubernetes/pkg/kubelet/pluginmanager/cache", "k8s.io/kubernetes/pkg/kubelet/pluginmanager/metrics", "k8s.io/kubernetes/pkg/kubelet/pluginmanager/operationexecutor", "k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher", "k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta1", "k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta2", "k8s.io/kubernetes/pkg/kubelet/pluginmanager/reconciler", </ins> "k8s.io/kubernetes/pkg/kubelet/pod", <ins> "k8s.io/kubernetes/pkg/kubelet/preemption", "k8s.io/kubernetes/pkg/kubelet/prober", "k8s.io/kubernetes/pkg/kubelet/prober/results", "k8s.io/kubernetes/pkg/kubelet/qos", "k8s.io/kubernetes/pkg/kubelet/remote", "k8s.io/kubernetes/pkg/kubelet/runtimeclass", "k8s.io/kubernetes/pkg/kubelet/server", "k8s.io/kubernetes/pkg/kubelet/server/metrics", "k8s.io/kubernetes/pkg/kubelet/server/portforward", "k8s.io/kubernetes/pkg/kubelet/server/remotecommand", "k8s.io/kubernetes/pkg/kubelet/server/stats", "k8s.io/kubernetes/pkg/kubelet/server/streaming", "k8s.io/kubernetes/pkg/kubelet/stats", "k8s.io/kubernetes/pkg/kubelet/stats/pidlimit", "k8s.io/kubernetes/pkg/kubelet/status", </ins> "k8s.io/kubernetes/pkg/kubelet/secret", "k8s.io/kubernetes/pkg/kubelet/sysctl", "k8s.io/kubernetes/pkg/kubelet/types", <ins> "k8s.io/kubernetes/pkg/kubelet/token", </ins> "k8s.io/kubernetes/pkg/kubelet/util", "k8s.io/kubernetes/pkg/kubelet/util/format", "k8s.io/kubernetes/pkg/kubelet/util/manager", "k8s.io/kubernetes/pkg/kubelet/util/store", <ins> "k8s.io/kubernetes/pkg/kubelet/volumemanager", "k8s.io/kubernetes/pkg/kubelet/volumemanager/cache", "k8s.io/kubernetes/pkg/kubelet/volumemanager/metrics", "k8s.io/kubernetes/pkg/kubelet/volumemanager/populator", "k8s.io/kubernetes/pkg/kubelet/volumemanager/reconciler", "k8s.io/kubernetes/pkg/kubemark", </ins> "k8s.io/kubernetes/pkg/master/ports", <ins> "k8s.io/kubernetes/pkg/probe", "k8s.io/kubernetes/pkg/probe/exec", "k8s.io/kubernetes/pkg/probe/http", "k8s.io/kubernetes/pkg/probe/tcp", "k8s.io/kubernetes/pkg/proxy", "k8s.io/kubernetes/pkg/proxy/apis", "k8s.io/kubernetes/pkg/proxy/apis/config", "k8s.io/kubernetes/pkg/proxy/apis/config/scheme", "k8s.io/kubernetes/pkg/proxy/apis/config/v1alpha1", "k8s.io/kubernetes/pkg/proxy/apis/config/validation", "k8s.io/kubernetes/pkg/proxy/config", "k8s.io/kubernetes/pkg/proxy/healthcheck", "k8s.io/kubernetes/pkg/proxy/iptables", "k8s.io/kubernetes/pkg/proxy/ipvs", "k8s.io/kubernetes/pkg/proxy/metaproxier", "k8s.io/kubernetes/pkg/proxy/metrics", "k8s.io/kubernetes/pkg/proxy/userspace", "k8s.io/kubernetes/pkg/proxy/util", </ins> "k8s.io/kubernetes/pkg/registry/core/service/allocator", "k8s.io/kubernetes/pkg/registry/core/service/portallocator", "k8s.io/kubernetes/pkg/scheduler/algorithm/priorities/util", "k8s.io/kubernetes/pkg/scheduler/api", <ins> "k8s.io/kubernetes/pkg/scheduler/framework/plugins/helper", "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeaffinity", "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodename", "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeports", "k8s.io/kubernetes/pkg/scheduler/framework/plugins/noderesources", "k8s.io/kubernetes/pkg/scheduler/framework/v1alpha1", "k8s.io/kubernetes/pkg/scheduler/listers", </ins> "k8s.io/kubernetes/pkg/scheduler/metrics", "k8s.io/kubernetes/pkg/scheduler/nodeinfo", "k8s.io/kubernetes/pkg/scheduler/util", "k8s.io/kubernetes/pkg/scheduler/volumebinder", "k8s.io/kubernetes/pkg/security/apparmor", "k8s.io/kubernetes/pkg/security/podsecuritypolicy/seccomp", <ins> "k8s.io/kubernetes/pkg/security/podsecuritypolicy/sysctl", </ins> "k8s.io/kubernetes/pkg/security/podsecuritypolicy/util", <ins> "k8s.io/kubernetes/pkg/securitycontext", </ins> "k8s.io/kubernetes/pkg/serviceaccount", "k8s.io/kubernetes/pkg/ssh", <ins> "k8s.io/kubernetes/pkg/util/async", "k8s.io/kubernetes/pkg/util/bandwidth", "k8s.io/kubernetes/pkg/util/config", "k8s.io/kubernetes/pkg/util/configz", "k8s.io/kubernetes/pkg/util/conntrack", "k8s.io/kubernetes/pkg/util/ebtables", "k8s.io/kubernetes/pkg/util/env", </ins> "k8s.io/kubernetes/pkg/util/filesystem", <ins> "k8s.io/kubernetes/pkg/util/flag", "k8s.io/kubernetes/pkg/util/flock", "k8s.io/kubernetes/pkg/util/goroutinemap", "k8s.io/kubernetes/pkg/util/goroutinemap/exponentialbackoff", </ins> "k8s.io/kubernetes/pkg/util/hash", <ins> "k8s.io/kubernetes/pkg/util/ipset", "k8s.io/kubernetes/pkg/util/iptables", "k8s.io/kubernetes/pkg/util/ipvs", </ins> "k8s.io/kubernetes/pkg/util/labels", "k8s.io/kubernetes/pkg/util/node", <ins> "k8s.io/kubernetes/pkg/util/oom", </ins> "k8s.io/kubernetes/pkg/util/parsers", <ins> "k8s.io/kubernetes/pkg/util/pod", "k8s.io/kubernetes/pkg/util/procfs", "k8s.io/kubernetes/pkg/util/removeall", </ins> "k8s.io/kubernetes/pkg/util/resizefs", <ins> "k8s.io/kubernetes/pkg/util/rlimit", "k8s.io/kubernetes/pkg/util/selinux", </ins> "k8s.io/kubernetes/pkg/util/slice", <ins> "k8s.io/kubernetes/pkg/util/sysctl", </ins> "k8s.io/kubernetes/pkg/util/system", <ins> "k8s.io/kubernetes/pkg/util/tail", </ins> "k8s.io/kubernetes/pkg/util/taints", "k8s.io/kubernetes/pkg/volume", "k8s.io/kubernetes/pkg/volume/util",

{ "SelectorRegexp": "k8s[.]io/kubernetes/test/", "AllowedPrefixes": [ <ins> "k8s.io/kubernetes/test/e2e/framework", </ins> "k8s.io/kubernetes/test/e2e/framework/auth", "k8s.io/kubernetes/test/e2e/framework/ginkgowrapper", <ins> "k8s.io/kubernetes/test/e2e/framework/kubectl", </ins> "k8s.io/kubernetes/test/e2e/framework/log", "k8s.io/kubernetes/test/e2e/framework/metrics", <ins> "k8s.io/kubernetes/test/e2e/framework/network", </ins> "k8s.io/kubernetes/test/e2e/framework/node", "k8s.io/kubernetes/test/e2e/framework/pod", <ins> "k8s.io/kubernetes/test/e2e/framework/rc", </ins> "k8s.io/kubernetes/test/e2e/framework/resource", <ins> "k8s.io/kubernetes/test/e2e/framework/service", </ins> "k8s.io/kubernetes/test/e2e/framework/ssh", "k8s.io/kubernetes/test/e2e/framework/testfiles", "k8s.io/kubernetes/test/e2e/manifest", "k8s.io/kubernetes/test/e2e/perftype", <ins> "k8s.io/kubernetes/test/e2e/storage/utils", "k8s.io/kubernetes/test/e2e/system", </ins> "k8s.io/kubernetes/test/utils", "k8s.io/kubernetes/test/utils/image" ],

{ "SelectorRegexp": "k8s[.]io/kubernetes/third_party/", "AllowedPrefixes": [ <del> "k8s.io/kubernetes/third_party/forked/golang/expansion" </del> <ins> "k8s.io/kubernetes/third_party/forked/golang/expansion" </ins> ], "ForbiddenPrefixes": [] },

"AllowedPrefixes": [ "k8s.io/utils/buffer", "k8s.io/utils/exec", <ins> "k8s.io/utils/inotify", </ins> "k8s.io/utils/integer", <ins> "k8s.io/utils/io", "k8s.io/utils/keymutex", "k8s.io/utils/mount", </ins> "k8s.io/utils/net", "k8s.io/utils/nsenter", "k8s.io/utils/path",