ubuntu_k8s_unit_tests failed to build with cannot find package "context"

Bug #1850105 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Po-Hsu Lin
linux-signed-gcp (Ubuntu)
Invalid
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)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
tags: added: sru-20191021 ubuntu-k8s-unit-tests
tags: added: 4.15
Po-Hsu Lin (cypressyew)
tags: added: sru-20200127
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Still visible in gcp-4.15.0-1088.101~16.04.1

tags: added: sru-20201109
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Spotted 4.15.0-1110.124~16.04.1 GCP

tags: added: sru-20210927
Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Changed in linux-signed-gcp (Ubuntu):
status: New → Invalid
Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.