Skip to content

bazel fetches fail randomly on Kokoro + macOS #11520

@devjgm

Description

@devjgm

I got a bazel error that told me to file an issue here.

Description of the problem / feature request:

Our CI build, running on macOS in Kokoro. The build log is here.

Here's a snippet of the relevant bazel error:

ERROR: An error occurred during the fetch of repository 'local_config_cc':
   Traceback (most recent call last):
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/cc_configure.bzl", line 123
		configure_osx_toolchain(<2 more arguments>)
	File "/Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/cpp/osx_cc_configure.bzl", line 138, in configure_osx_toolchain
		fail(<1 more arguments>)
wrapped_clang failed to generate. Please file an issue at https://github.com/bazelbuild/bazel/issues with the following:
return code 256, stderr: Timed out, stdout:
INFO: Call stack for the definition of repository 'remote_java_tools_darwin' which is a http_archive (rule definition at /Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 - /Volumes/BuildData/tmpfs/tmp/bazel/external/bazel_tools/tools/build_defs/repo/utils.bzl:205:9
 - /DEFAULT.WORKSPACE.SUFFIX:280:1

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

No easy way to reproduce. We occasionally see errors like this on our Kokoro CI builds (usually? always? on macOS).

What operating system are you running Bazel on?

macOS. not sure what version.

What's the output of bazel info release?

Maybe this:

Build label: 2.0.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Dec 19 12:33:30 2019 (1576758810)
Build timestamp: 1576758810
Build timestamp as int: 1576758810

What's the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?

Our repo is here: https://github.com/googleapis/google-cloud-cpp

The issue happens on any number of commits, but not consistently. It happens on our Kokoro CI runs.

Have you found anything relevant by searching the web?

No.

Any other information, logs, or outputs that you want to share?

The full error log:
https://source.cloud.google.com/results/invocations/d77fd19f-24ea-46c0-a3c1-da34656f63be/targets/cloud-cpp%2Fgithub%2Fgoogle-cloud-cpp%2Fmaster%2Fmacos%2Fbazel/log

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2We'll consider working on this in future. (Assignee optional)more data neededtype: bugz-team-AppleDeprecated. Send to rules_apple, or label team-Rules-CPP + platform:apple

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions