Skip to content

kubepkg tests fail #1000

@hoegaarden

Description

@hoegaarden

Running go test ./... fails for the package k8s.io/release/pkg/kubepkg over here.

time="2020-01-08T14:22:29Z" level=info msg="Setting version for  package..."
time="2020-01-08T14:22:29Z" level=info msg="Using Kubernetes version for  package"
time="2020-01-08T14:22:29Z" level=info msg="Setting version for  package..."
time="2020-01-08T14:22:29Z" level=info msg="Using Kubernetes version for  package"
time="2020-01-08T14:22:29Z" level=info msg="Setting version for kubernetes-cni package..."
time="2020-01-08T14:22:29Z" level=info msg="Getting CNI version..."
time="2020-01-08T14:22:29Z" level=info msg="Setting CNI version to 0.8.3"
time="2020-01-08T14:22:29Z" level=info msg="Setting version for cri-tools package..."
time="2020-01-08T14:22:29Z" level=info msg="Getting CRI version..."
--- FAIL: TestGetPackageVersionSuccess (0.66s)
    kubepkg_test.go:68: did not expect an error: GET https://github.com/api/repos/kubernetes-sigs/cri-tools/releases: 403 API rate limit exceeded for <redacted>. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) [rate reset in 22m17s]
time="2020-01-08T14:22:30Z" level=info msg="Using Kubernetes version (1.17.0) for  package"
time="2020-01-08T14:22:31Z" level=info msg="Retrieved Kubernetes version: 1.14.10"
time="2020-01-08T14:22:31Z" level=info msg="Retrieved Kubernetes version: 1.14.11-beta.1"
time="2020-01-08T14:22:31Z" level=info msg="Getting CNI version..."
time="2020-01-08T14:22:31Z" level=info msg="Kubernetes version earlier than 1.17 must use CNI version <= 0.7.5"
time="2020-01-08T14:22:31Z" level=info msg="Setting CNI version to 0.7.5"
time="2020-01-08T14:22:31Z" level=info msg="Getting CNI version..."
time="2020-01-08T14:22:31Z" level=info msg="Setting CNI version to 0.8.3"
time="2020-01-08T14:22:31Z" level=info msg="Getting CNI version..."
time="2020-01-08T14:22:31Z" level=info msg="Setting CNI version to 0.7.5"
time="2020-01-08T14:22:31Z" level=info msg="Getting CRI version..."
--- FAIL: TestGetCRIToolsVersionSuccess (0.14s)
    kubepkg_test.go:252: did not expect an error: GET https://github.com/api/repos/kubernetes-sigs/cri-tools/releases: 403 API rate limit exceeded for <redacted>. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) [rate reset in 22m16s]
time="2020-01-08T14:22:31Z" level=info msg="Breaking out of kubelet check"
time="2020-01-08T14:22:31Z" level=info msg="Breaking out of release check"
time="2020-01-08T14:22:31Z" level=info msg="Breaking out of testing check"
time="2020-01-08T14:22:31Z" level=info msg="Adding 'fakearch' (type: string) to not supported"
time="2020-01-08T14:22:31Z" level=info msg="Breaking out of amd64 check"
time="2020-01-08T14:22:31Z" level=info msg="The following options are not supported: [fakearch]"
FAIL
FAIL    k8s.io/release/pkg/kubepkg      2.197s

This indicates IMHO that we should take more care about our tests and split them into different types (static, unit, integration, e2e).

Metadata

Metadata

Assignees

Labels

area/release-engIssues or PRs related to the Release Engineering subprojectkind/failing-testCategorizes issue or PR as related to a consistently or frequently failing test.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions