ubuntu_k8s_unit_tests failed to build with cannot find package "context"

Bug #1850105 reported by Po-Hsu Lin on 2019-10-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
linux-signed-gcp (Ubuntu)
Undecided
Unassigned

Bug Description

Issue found on Xenial GCP testing.

Test failed with:
  vendor/k8s.io/client-go/rest/request.go:21:2: cannot find package "context" in any of:
   /tmp/kubernetes.git/_output/local/go/src/k8s.io/kubernetes/vendor/context (vendor tree)
   /usr/lib/go-1.6/src/context (from $GOROOT)
   /tmp/kubernetes.git/_output/local/go/src/context (from $GOPATH)

Complete test log:
 Running 'make test'
  +++ [1023 18:04:28] Building the toolchain targets:
  k8s.io/kubernetes/hack/cmd/teststale
  k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata
  +++ [1023 18:04:30] Generating bindata:
  test/e2e/generated/gobindata_util.go
  /tmp/kubernetes.git /tmp/kubernetes.git/test/e2e/generated
  /tmp/kubernetes.git/test/e2e/generated
  +++ [1023 18:04:31] Building go targets for linux/amd64:
  cmd/libs/go2idl/deepcopy-gen
  +++ [1023 18:04:41] Building the toolchain targets:
  k8s.io/kubernetes/hack/cmd/teststale
  k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata
  +++ [1023 18:04:41] Generating bindata:
  test/e2e/generated/gobindata_util.go
  /tmp/kubernetes.git /tmp/kubernetes.git/test/e2e/generated
  /tmp/kubernetes.git/test/e2e/generated
  +++ [1023 18:04:41] Building go targets for linux/amd64:
  cmd/libs/go2idl/defaulter-gen
  +++ [1023 18:04:49] Building the toolchain targets:
  k8s.io/kubernetes/hack/cmd/teststale
  k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata
  +++ [1023 18:04:49] Generating bindata:
  test/e2e/generated/gobindata_util.go
  /tmp/kubernetes.git /tmp/kubernetes.git/test/e2e/generated
  /tmp/kubernetes.git/test/e2e/generated
  +++ [1023 18:04:50] Building go targets for linux/amd64:
  cmd/libs/go2idl/conversion-gen
  +++ [1023 18:04:59] Building the toolchain targets:
  k8s.io/kubernetes/hack/cmd/teststale
  k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata
  +++ [1023 18:04:59] Generating bindata:
  test/e2e/generated/gobindata_util.go
  /tmp/kubernetes.git /tmp/kubernetes.git/test/e2e/generated
  /tmp/kubernetes.git/test/e2e/generated
  +++ [1023 18:04:59] Building go targets for linux/amd64:
  cmd/libs/go2idl/openapi-gen
  Running tests for APIVersion: v1,apps/v1beta1,authentication.k8s.io/v1,authentication.k8s.io/v1beta1,authorization.k8s.io/v1,authorization.k8s.io/v1beta1,autoscaling/v1,autoscaling/v2alpha1,batch/v1,batch/v2alpha1,certificates.k8s.io/v1beta1,extensions/v1beta1,imagepolicy.k8s.io/v1alpha1,policy/v1beta1,rbac.authorization.k8s.io/v1beta1,rbac.authorization.k8s.io/v1alpha1,settings.k8s.io/v1alpha1,storage.k8s.io/v1beta1,storage.k8s.io/v1,federation/v1beta1
  +++ [1023 18:05:14] Running tests without code coverage
  vendor/k8s.io/client-go/rest/request.go:21:2: cannot find package "context" in any of:
  /tmp/kubernetes.git/_output/local/go/src/k8s.io/kubernetes/vendor/context (vendor tree)
  /usr/lib/go-1.6/src/context (from $GOROOT)
  /tmp/kubernetes.git/_output/local/go/src/context (from $GOPATH)
  !!! [1023 18:05:16] Call tree:
  Makefile:164: recipe for target 'test' failed
  !!! [1023 18:05:16] 1: hack/make-rules/test.sh:343 runTests(...)
  make: *** [test] Error 1

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.15.0-1047-gcp 4.15.0-1047.50
ProcVersionSignature: Ubuntu 4.15.0-1047.50-gcp 4.15.18
Uname: Linux 4.15.0-1047-gcp x86_64
ApportVersion: 2.20.1-0ubuntu2.19
Architecture: amd64
Date: Mon Oct 28 04:54:34 2019
SourcePackage: linux-signed-gcp
UpgradeStatus: No upgrade log present (probably fresh install)

Po-Hsu Lin (cypressyew) wrote :
tags: added: sru-20191021 ubuntu-k8s-unit-tests
tags: added: 4.15
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers