This job view page is being replaced by Spyglass soon. Check out the new job view.
PRfejta: Migrate golangci-lint check to //hack:verify-golangci-lint target
ResultFAILURE
Tests 0 failed / 0 succeeded
Started2019-09-29 01:28
Elapsed2m44s
Revisionc622714d59a22d4015bafe41ea08eeb4020c3681
Refs 153

No Test Failures!


Error lines from build-log.txt

... skipping 5 lines ...
INFO: Invocation ID: e9aa447c-fec9-42ef-ae20-9a510ab7e8cc
DEBUG: /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/bazel_toolchains/rules/rbe_repo.bzl:421:5: Bazel 0.29.1 is used in rbe_default.
DEBUG: /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/bazel_gazelle/internal/go_repository.bzl:184:13: gazelle: gazelle: finding module path for import a: exit status 1: can't load package: package a: malformed module path "a": missing dot in first path element
DEBUG: /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/bazel_gazelle/internal/go_repository.bzl:184:13: gazelle: gazelle: finding module path for import foo/bar: exit status 1: can't load package: package foo/bar: malformed module path "foo/bar": missing dot in first path element
gazelle: finding module path for import grab-import/def: exit status 1: can't load package: package grab-import/def: malformed module path "grab-import/def": missing dot in first path element
gazelle: finding module path for import grab-import/def: exit status 1: can't load package: package grab-import/def: malformed module path "grab-import/def": missing dot in first path element
DEBUG: /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/bazel_gazelle/internal/go_repository.bzl:184:13: gazelle: gazelle: /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/org_golang_x_tools_random_extra_stuff/cmd/fiximports/testdata/src/old.com/bad/bad.go: error reading go file: /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/org_golang_x_tools_random_extra_stuff/cmd/fiximports/testdata/src/old.com/bad/bad.go:2:43: expected 'package', found 'EOF'
gazelle: found packages imports (imports.go) and nointerface (nointerface.go) in /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/org_golang_x_tools_random_extra_stuff/go/internal/gccgoimporter/testdata
gazelle: found packages p (p.go) and issue25301 (issue25301.go) in /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/org_golang_x_tools_random_extra_stuff/go/internal/gcimporter/testdata
gazelle: /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/org_golang_x_tools_random_extra_stuff/go/loader/testdata/badpkgdecl.go: error reading go file: /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/org_golang_x_tools_random_extra_stuff/go/loader/testdata/badpkgdecl.go:1:34: expected 'package', found 'EOF'
gazelle: finding module path for import domain.name/importdecl: exit status 1: can't load package: package domain.name/importdecl: cannot find module providing package domain.name/importdecl
gazelle: finding module path for import old.com/one: exit status 1: can't load package: package old.com/one: cannot find module providing package old.com/one
gazelle: finding module path for import titanic.biz/bar: exit status 1: can't load package: package titanic.biz/bar: cannot find module providing package titanic.biz/bar
gazelle: finding module path for import titanic.biz/foo: exit status 1: can't load package: package titanic.biz/foo: cannot find module providing package titanic.biz/foo
gazelle: finding module path for import fruit.io/pear: exit status 1: can't load package: package fruit.io/pear: cannot find module providing package fruit.io/pear
gazelle: finding module path for import fruit.io/banana: exit status 1: can't load package: package fruit.io/banana: cannot find module providing package fruit.io/banana
... skipping 73 lines ...
INFO: Elapsed time: 66.330s, Critical Path: 6.11s
INFO: 481 processes: 481 remote cache hit.
+ bazel test //...
$TEST_TMPDIR defined: output root default is '/bazel-scratch/.cache/bazel' and max_idle_secs default is '15'.
INFO: Invocation ID: 8f3148b0-bf20-4fd8-8a14-4eaa66c8feea
DEBUG: /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/bazel_toolchains/rules/rbe_repo.bzl:421:5: Bazel 0.29.1 is used in rbe_default.
WARNING: /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/remote_java_tools_linux/BUILD:683:1: in hdrs attribute of cc_library rule @remote_java_tools_linux//:combiners: Artifact 'external/remote_java_tools_linux/java_tools/src/tools/singlejar/zip_headers.h' is duplicated (through '@remote_java_tools_linux//:transient_bytes' and '@remote_java_tools_linux//:zip_headers'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implementation in /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/external/remote_java_tools_linux/BUILD:683:1
INFO: Analyzed 45 targets (97 packages loaded, 868 targets configured).
INFO: Found 37 targets and 8 test targets...
FAIL: //hack:verify-golangci-lint (see /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/execroot/io_k8s_repo_infra/bazel-out/k8-fastbuild/testlogs/hack/verify-golangci-lint/test.log)
INFO: From Testing //hack:verify-golangci-lint:
==================== Test output for //hack:verify-golangci-lint:
+ [[ -n io_k8s_repo_infra ]]
+ echo 'Verifying golangci-lint...'
Verifying golangci-lint...
+ trap 'echo ERROR: golangci-lint failed >&2' ERR
+ [[ ! -f .golangci.yml ]]
+ golangci_lint=external/com_github_golangci_golangci_lint/cmd/golangci-lint/linux_amd64_stripped/golangci-lint
+ export GO111MODULE=on
+ GO111MODULE=on
+ export GOPROXY=https://proxy.golang.org
+ GOPROXY=https://proxy.golang.org
+ export GOSUMDB=sum.golang.org
+ GOSUMDB=sum.golang.org
+ export HOME=/b/f/w/_tmp/c99d42864c98b4931fd4a74b6d71dbfc/home
+ HOME=/b/f/w/_tmp/c99d42864c98b4931fd4a74b6d71dbfc/home
+ external/com_github_golangci_golangci_lint/cmd/golangci-lint/linux_amd64_stripped/golangci-lint run
level=warning msg="Failed to discover go env: failed to run 'go env': exec: \"go\": executable file not found in $PATH"
level=error msg="Running error: context loading failed: failed to load program with go/packages: 'go list' driver requires 'go', but executable file not found in $PATH"
++ echo ERROR: golangci-lint failed
ERROR: golangci-lint failed
================================================================================
INFO: Elapsed time: 95.042s, Critical Path: 22.04s
INFO: 76 processes: 70 remote cache hit, 6 remote.
//cmd/kazel:go_default_test                                     (cached) PASSED in 0.2s
//defs:test_genmd5sum                                           (cached) PASSED in 0.1s
//defs:test_gensha1sum                                          (cached) PASSED in 0.2s
//defs:test_gensha512sum                                        (cached) PASSED in 0.2s
//hack:verify-bazel                                                      PASSED in 4.9s
//hack:verify-deps                                                       PASSED in 17.5s
//hack:verify-gofmt                                                      PASSED in 5.6s
//hack:verify-golangci-lint                                              FAILED in 4.6s
  /bazel-scratch/.cache/bazel/_bazel_root/f2dd6253bcf6792f3e86133712bc5112/execroot/io_k8s_repo_infra/bazel-out/k8-fastbuild/testlogs/hack/verify-golangci-lint/test.log

Executed 4 out of 8 tests: 7 tests pass and 1 fails remotely.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.