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:31
Elapsed1m43s
Revision723f9481e3e6f89487c4a8fe843bb14bafac2a22
Refs 153

No Test Failures!


Error lines from build-log.txt

... skipping 5 lines ...
INFO: Invocation ID: 1d26bc97-be3c-4503-95b3-fc93fd82a465
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 issue34182 (issue34182.go) and conversions (conversions.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 (issue15920.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: 57.754s, Critical Path: 4.62s
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: 1cbd15d3-d4d9-427d-b26c-e81447bd39c6
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:
Verifying golangci-lint...
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"
ERROR: golangci-lint failed
================================================================================
INFO: Elapsed time: 42.053s, Critical Path: 23.01s
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.1s
//defs:test_gensha512sum                                        (cached) PASSED in 0.3s
//hack:verify-bazel                                                      PASSED in 4.0s
//hack:verify-deps                                                       PASSED in 18.3s
//hack:verify-gofmt                                                      PASSED in 5.2s
//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.